Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Conversation

@GeekMasher
Copy link
Contributor

There is both a remote flow query but also a simple "parser is insecure" query

@GeekMasher GeekMasher requested a review from zbazztian March 14, 2022 20:00
@jorgectf
Copy link

I think you might want to check this PR out for some inspiration :)

@GeekMasher
Copy link
Contributor Author

@jorgectf That is some awesome work and I must have missed it because it wasn't merged when I started creating this. Yours is FAR more evolved than my queries. I will be closing this once I have tested yours to make sure it covers my cases (which from a glance it will).

@zbazztian
Copy link
Contributor

@GeekMasher Looks like you might be gravitating towards the queries Jorge wrote, so let me know if you still want this reviewed.

@GeekMasher
Copy link
Contributor Author

As @zbazztian and I found out, the query by @jorgectf is still not released so we'll have to wait until the new version of CodeQL has the new query bundled in it.

@jorgectf
Copy link

Oh, I see it hasn't made it to lgtm.com branch yet. Anyway, it is still under experimental/, but I believe @RasmusWL (who did an outstanding work in the query) and the team is planning to promote it soon :)

@jorgectf
Copy link

jorgectf commented Apr 2, 2022

FYI github/codeql#8634

@jorgectf
Copy link

@RasmusWL
Copy link
Contributor

@GeekMasher I did not add the "parsing is insecure" query, but it should be very easy to create one using the vulnerableTo member-predicate of the XmlParsing concept👍

@GeekMasher GeekMasher self-assigned this Jul 27, 2022
@aegilops
Copy link
Collaborator

Do we want to continue with this?

Using this query could result in FPs unless we can detect an old version of Python in use.

Modern versions of the underlying XML parsing library aren't vulnerable to this, and neither are modern versions of Python modules. The Pydoc around XML explains the situation.

@GeekMasher
Copy link
Contributor Author

Closing this PR now

@GeekMasher GeekMasher closed this Dec 14, 2022
@GeekMasher GeekMasher deleted the python/xxe branch December 14, 2022 09:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants