feat(rules): add A10:2021 SSRF detection (#31) - #77
Merged
Conversation
- New native rule A10-SSRF for JavaScript/TypeScript and Python - Detects user-controlled URLs in fetch, axios, http/https.get, request - Detects Python requests.get/post and urllib.request.urlopen with Flask input - Fixtures: a10-ssrf.ts (JS), a10-ssrf-vuln.py, a10-ssrf-clean.ts - Tests updated: all 31 tests passing - README updated to reflect A10 coverage (7/10 OWASP categories) Closes #31 Refs #33
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
🛡️ OWASP.WTF self-scanTotal findings: 0 • Risk score: 100
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements native detection for OWASP A10:2021 — Server-Side Request Forgery (SSRF).
What's added
A10-SSRFinpackages/cli/src/rules/a10-ssrf.tsfetch(req.params.*),axios.get/post(req.*),http/https.get(req.*),request(req.*)requests.get/post(request.args...),urllib.request.urlopen(request.json()...)a10-ssrf.ts(JavaScript vulns)a10-ssrf-vuln.py(Python vulns)a10-ssrf-clean.ts(zero-finding control)native-rules.test.mjswith new fixture assertionsVerification
pnpm --filter @decoperations/owasp-wtf test→ 31/31 passingpnpm typecheck→ cleanReferences