T09 · Insecure Skill Coding Practices
- Location
scripts/lib/extract/html-to-markdown.ts:199- Finding
Automatic Remote Fallback Discloses Complete Target URLs to a Third Party
- Content
View full analysis
{ const response = await fetch(buildDefuddleApiUrl(targetUrl), { headers: { accept: "text/markdown,text/plain;q=0.9,*/*;q=0.1", }, redirect: "follow", }); if (!response.ok) { throw new Error(`defuddle.md returned ${response.status} ${response.statusText}`); } const rawMarkdown = (await response.text()).replace(/\r\n/g, "\n").trim(); ``` ```ts // scripts/lib/extract/html-to-markdown.ts:743-747 if (!shouldTryRemoteMarkdownFallback(selectedResult.markdown, cleanedHtml, options)) { return selectedResult; } const remoteDefuddleResult = await tryDefuddleApiConversion(cleanedHtml, url, baseMetadata); ``` ### Technical Analysis Generic Markdown conversion automatically enables a remote extraction fallback whenever the selected outpu ...[truncated 2619 chars]- Remediation
View remediation
