8000 Python: Add Server-side Request Forgery sinks by haby0 · Pull Request #8275 · github/codeql · GitHub
[go: up one dir, main page]

Skip to content

Python: Add Server-side Request Forgery sinks #8275

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Mar 8, 2022
Prev Previous commit
Next Next commit
Python: Avoid toString usage :O
  • Loading branch information
RasmusWL committed Mar 4, 2022
commit 75bc532d10ed28d758d4b1cf5bb92f88c3848344
2 changes: 1 addition & 1 deletion python/ql/lib/semmle/python/frameworks/Libtaxii.qll
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private module Libtaxii {
private class ParseCall extends HTTP::Client::Request::Range, DataFlow::CallCfgNode {
ParseCall() {
this = API::moduleImport("libtaxii").getMember("common").getMember("parse").getACall() and
this.getArgByName("allow_url").asExpr().toString() = "True"
this.getArgByName("allow_url").getALocalSource().asExpr() = any(True t)
}

override DataFlow::Node getAUrlPart() { result in [this.getArg(0), this.getArgByName("s")] }
Expand Down
0