P2-01: sanitize_input() only blocks the FIRST injection pattern — multiple vectors pass through #11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: P2 (Medium)
File:
decider/util.pyline 34Problem
sanitize_input()iterates through injection patterns butbreaks after the first match:Sophisticated injection payloads with multiple attack vectors slip through partially. E.g.:
Only
ignore all previousis blocked.forget everythingpasses through unchanged.Fix
Remove
break. Continue scanning for all patterns. Also add more injection patterns to the list (table-flipping, base64 encoding, role-play injection, etc.)