-
Notifications
You must be signed in to change notification settings - Fork 120
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
Crash on nil-pointer dereference with malformed input #59
Comments
Note that the example above needs to built with go.mod along the lines of
Without using modules, the latest version of etree is pulled in which rejects the xml due to unbalanced xml tags i.e. with the following go.mod
the crasher no longer works. |
Hey @russellhaering what are your thoughts on patching this up and releasing a |
Are there any plans to roll out 0.6.1 so we can upgrade our dependencies? |
This issue has been around for over a year now, a patch was proposed, yet nothing has been done to address the issue. So, I have to ask, is this project effectively dead? |
@russellhaering could you please have a look? This vulnerability drives all devsecops tools crazy :) Thanks! |
@lukyer To mitigate this we pinned the latest (untagged) commit on the main branch. See #86 (comment) |
@mfridman ah cool, thanks!
to the rescue :) |
I've been doing a bit of fuzzing of this package with go-fuzz. I captured a valid SAML response from Okta and then had go-fuzz mutate it. I have fuzzing implemented on this branch https://github.com/stevenjohnstone/gosaml2/tree/sjj/fuzzing.
Here's the panic in a simple test program:
Appears to be unverified assertions can have nil parents. Appears to be fixed with this patch:
The text was updated successfully, but these errors were encountered: