T09 · Insecure Skill Coding Practices
- Location
scripts/utils/validator.js:3- Finding
Arbitrary URL Fetching Enables Server-Side Request Forgery and Internal Data Exfiltration
- Content
View full analysis
{ this.__response = response; if (!this.__isResumed) { this.__total = parseInt(response.headers["content-length"]) || null; this.__resetStats(); } if (this.__isResumed && response.statusCode === 200) { this.__isResumed = false; this.__total = parseInt(response.headers["content-length"]) || null; this.__resetStats(); } if (this.__isRequireRedirect(response)) { this.__redirectCount++; if (this.__redirectCount > this.__opts.maxRedirects) { const err = new Error("Too many redirects"); this.__setState(this.__states.FAILED); this.emit("error", err); return reject(err); } const redirectedURL = /^https?:\/\//.test(response.headers.location) ? response.he ...[truncated 3288 chars]- Remediation
View remediation
