Skip to content
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

Failed test 'No XXE SSRF vulnerability in our XML handling' (Dancer-1.3514_02) #1221

Open
eserte opened this issue Oct 4, 2020 · 3 comments

Comments

@eserte
Copy link
Contributor

eserte commented Oct 4, 2020

On some of my smokers the test suite fails:

#   Failed test 'No XXE SSRF vulnerability in our XML handling'
#   at t/14_serializer/04_request_xml.t line 134.
#          got: '4'
#     expected: '1'
# access_line: Accessed at Sat Oct  3 08:29:36 2020
# access_line: Accessed at Sat Oct  3 08:29:36 2020
# access_line: Accessed at Sat Oct  3 08:29:36 2020
# access_line: Accessed at Sat Oct  3 08:29:36 2020
# Looks like you failed 1 test of 11.
t/14_serializer/04_request_xml.t .................... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/11 subtests 

No statistical analysis result available. Problem is that there are is lot of optional stuff involved here (XML::Simple, probably XML::Parser, XML::SAX, XML::LibXML, additionally to system libraries like expat and libxml2, also XML::SAX's ParserDetails.ini contents may matter), and there is no information about used modules and the installed versions.

@bigpresh
Copy link
Member

bigpresh commented Oct 6, 2020

Thanks - yeah, this one is going to be fun, as you say because of the mess of optional XML parsing modules which could be in use.

I guess I'll start by adding some diagnostics to figure out what's actually being used to look for cases where this route is getting hit when it shouldn't. @skington's work to fix it looks to work in some cases, but sometimes not.

@skington
Copy link
Contributor

skington commented Oct 7, 2020

I wouldn't bother with this fix, precisely because of all of the various possible interactions with XML libraries. At $WORK we just binned the Mutable serialiser and replaced it with JSON.

@bigpresh
Copy link
Member

bigpresh commented Oct 7, 2020

If it can be fixed, it would be nice, but if not, yeah, just documenting that allowing XML from untrusted sources carries security risks and not to use it is probably reasonable. I'll get some diagnostic output added then see what happens; if a pattern emerges and I can see a solution, I'll do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants