-
Notifications
You must be signed in to change notification settings - Fork 21
Python XXE #23
Python XXE #23
Conversation
|
I think you might want to check this PR out for some inspiration :) |
|
@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). |
|
@GeekMasher Looks like you might be gravitating towards the queries Jorge wrote, so let me know if you still want this reviewed. |
|
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. |
|
Oh, I see it hasn't made it to |
|
@GeekMasher I did not add the "parsing is insecure" query, but it should be very easy to create one using the |
|
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. |
|
Closing this PR now |
There is both a remote flow query but also a simple "parser is insecure" query