-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Python: Promote XXE and XML-bomb queries #8634
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
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
65907c9
Python: Copy Xxe/XmlBomb queries from JS
RasmusWL e45f9d6
Python: Adjust Xxe/XmlBomb for Python
RasmusWL 91795b8
Python: Add simple test of Xxe/XmlBomb
RasmusWL a1d88e3
Python: Adjust XXE PoC for newer lxml versions
RasmusWL 57b9780
Python: XXE: Add example of exfiltrating data through dtd-retrival
RasmusWL 769f569
Python: Add taint for `StringIO` and `BytesIO`
RasmusWL c365337
Python: Delete `XmlEntityInjection.ql`
RasmusWL b00766b
Python: Adjust XXE qhelp
RasmusWL 56b9c89
Python: Adjust `XmlBomb.qhelp` from JS
RasmusWL 9caf4be
Python: Add PortSwigger link to `Xxe.qhelp`
RasmusWL e005a5c
Python: Promote `XMLParsing` concept
RasmusWL e45288e
Python: => `XMLParsingVulnerabilityKind`
RasmusWL 35ccba2
Python: Promote `XMLParsing` concept test
RasmusWL 1ea4bcc
Python: Make `XMLParsing` a `Decoding` subclass
RasmusWL c4473c5
Python: Rename lxml XPath tests
RasmusWL 3040adf
Python: Handle `XMLParser().close()` for XPath
RasmusWL 80b5cde
Python: Promote lxml parsing modeling
RasmusWL 7f5f767
Python: Promote `xmltodict` modeling
RasmusWL 64aa503
Python: Promote `xml.etree` modeling
RasmusWL a315aa8
Python: Add some links in QLDocs
RasmusWL 6774085
Python: Add note about parseid/XMLID
RasmusWL 12cbdcd
Python: Model `lxml.etree.XMLID`
RasmusWL 386ff53
Python: Model `lxml.iterparse`
RasmusWL 543454e
Python: Model file access from XML parsing
RasmusWL db43d04
Python: Add test showing misalignment of xml.etree modeling
RasmusWL 70b3eec
Python: Merge `xml.etree.ElementTree` models
RasmusWL 05bb0ef
Python: Align `xml.etree.ElementTree` modeling
RasmusWL e112697
Python: Promote `xml.sax` and `xml.dom.*` modeling
RasmusWL 1d7cec6
Python: `xml.sax.parse` is not a method call
RasmusWL b4c0065
Python: Extend FileSystemAccess for `xml.sax` and `xml.dom.*` parsing
RasmusWL 673220b
Python: Minor cleanup of `XmlParsingTest`
RasmusWL 5083023
Python: Move XML parsing PoC
RasmusWL b8d3c5e
Python: Remove last bits of experimental XML modeling
RasmusWL 4abab22
Python: Promote XXE and XML-bomb queries
RasmusWL d2b03bb
Python: Fix `SimpleXmlRpcServer.ql`
RasmusWL ab59d5c
Python: Rename to `XmlParsing`
RasmusWL 1f285b8
Python: Rename to `XmlParsingVulnerabilityKind`
RasmusWL a7dab53
Python: Add change-note
RasmusWL b7f56dd
Python: Rewrite concepts to use `extends ... instanceof ...`
RasmusWL 23637fd
Merge branch 'main' into promote-xxe
RasmusWL c784f15
Python: Rename more XML classes to follow convention
RasmusWL f2f0873
Python: Use new `API::CallNode` for XML constant check
RasmusWL 7728b6c
Python: Change XmlBomb vulnerability kind
RasmusWL 405480c
Python: Rename sink definitions for XXE/XML bomb
RasmusWL 8191be9
Python: Move last XXE/XML bomb out of experimental
RasmusWL 517444b
Python: Fix `SimpleXmlRpcServer.expected`
RasmusWL bb6969a
Merge branch 'main' into promote-xxe
RasmusWL 5f01fc2
Merge branch 'main' into promote-xxe
RasmusWL 714465b
Python: Refactor `SaxParserSetFeatureCall`
RasmusWL f5854f3
Python: Apply suggestions from code review
RasmusWL f22bd03
Python: Slight refactor of `LxmlParsing`
RasmusWL 3634922
Python: Fix casing of `XMLDomParsing`
RasmusWL de05b10
Python: Fix singleton set
RasmusWL 4a67891
Python: Apply suggestions from code review
RasmusWL File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| A place to collect proof of concept for how certain vulnerabilities work. |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| SECRET_FLAG |
4 changes: 4 additions & 0 deletions
4
python/ql/lib/change-notes/2022-03-29-add-taint-for-StringIO.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| --- | ||
| category: minorAnalysis | ||
| --- | ||
| * Added taint propagation for `io.StringIO` and `io.BytesIO`. This addition was originally [submitted as part of an experimental query by @jorgectf](https://github.com/github/codeql/pull/6112). | ||
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.