T09 · Insecure Skill Coding Practices
- Location
smart-scraper.js:107- Finding
SSRF Protection Can Be Bypassed Through DNS Resolution and the Exported Fetch Function
- Content
View full analysis
0) { const redirectValidation = validateUrl(url); if (!redirectValidation.valid) { throw new Error(`Redirect blocked: ${redirectValidation.error}`); } } return new Promise((resolve, reject) => { const isHttps = url.startsWith('https'); const client = isHttps ? https : http; const req = client.get(url, { headers: { 'User-Agent': 'Mozilla/5.0 (compatible; SmartScraper/1.0)' }, timeout: REQUEST_TIMEOUT }, (res) => { // ...[truncated 3474 chars]- Remediation
View remediation
