-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Azure python sanitizer upstream2 #21288
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
Changes from 16 commits
9912aaa
b8ba905
46a2a24
08b72d0
7db9779
265922d
88adb05
27e1981
97ddab0
97f19d0
42f6e6a
4f11913
f6c302b
85ae404
df54459
23bab81
9f8ed71
a91cf6b
4bb110b
9f9c353
4d4e7a1
ceb3b21
a1eaf42
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| category: minorAnalysis | ||
| --- | ||
| * Modified SSRF tests to use postprocessing to more easily debug results. | ||
bdrodes marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| * Added new full SSRF sanitization barrier from the new AntiSSRF library. | ||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| Security/CWE-918/FullServerSideRequestForgery.ql | ||
| query: Security/CWE-918/FullServerSideRequestForgery.ql | ||
| postprocess: utils/test/InlineExpectationsTestQuery.ql | ||
bdrodes marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| Security/CWE-918/PartialServerSideRequestForgery.ql | ||
| query: Security/CWE-918/PartialServerSideRequestForgery.ql | ||
| postprocess: utils/test/InlineExpectationsTestQuery.ql | ||
bdrodes marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,26 +1,30 @@ | ||||||
| from flask import request | ||||||
| from flask import request # $ Source | ||||||
|
|
||||||
| import requests | ||||||
| import requests | ||||||
|
||||||
| import requests | |
| import requests |
Copilot
AI
Feb 9, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spelling: "contollred" should be "controlled" (appears twice in this file).
Copilot
AI
Feb 9, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spelling: "contollred" should be "controlled".
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,5 +1,5 @@ | ||||||
| from flask import Flask, request | ||||||
|
|
||||||
| from flask import request # $ Source | ||||||
| from flask import Flask | ||||||
| from http.client import HTTPConnection | ||||||
|
|
||||||
| app = Flask(__name__) | ||||||
|
|
@@ -10,28 +10,35 @@ def ssrf_test(): | |||||
| unsafe_path = request.args["path"] | ||||||
| user_input = request.args['untrusted_input'] | ||||||
|
|
||||||
| conn = HTTPConnection(unsafe_host) | ||||||
| conn.request("GET", unsafe_path) # NOT OK -- user has full control | ||||||
| conn = HTTPConnection(unsafe_host) # $ Sink[py/full-ssrf] | ||||||
| # NOT OK -- user has full control | ||||||
| conn.request("GET", unsafe_path) # $ Alert[py/full-ssrf] | ||||||
|
|
||||||
| # Full SSRF variant, where there is ALSO made a request with fixed URL on the same | ||||||
| # Full SSRF variant, where there is AlSO made a request with fixed URL on the same | ||||||
|
||||||
| # Full SSRF variant, where there is AlSO made a request with fixed URL on the same | |
| # Full SSRF variant, where there is also made a request with fixed URL on the same |
Uh oh!
There was an error while loading. Please reload this page.