-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
SSRF (Server-Side Request Forgery) is possible [CVE-2017-5617] #11
Comments
A CVE was requested on oss-security. |
CVE-2017-5617 is assigned for the issue |
Fixed in JOSM embedded fork: https://josm.openstreetmap.de/changeset/11526/josm |
@don-vip, will you also provide a PR with the changes from JOSM? Otherwise I'll create a PR with your changes for inclusion in this repository. |
Done: #12 |
@don-vip great! thanks! |
I'm replacing the work done here with a flag that you can set in SVG Universe. The implementation that was done for #12 simply deletes the old functionality. |
Commit for reference: a0cdd69 |
The fix is incomplete. We added in JOSM a non-regression test to make sure we're never vulnerable, and the test fails now that I updated to 1.1.2 without the patch we added in our fork. I'm going to submit a new PR that fixes the problem for good. |
…mplete See blackears/svgSalamander#11 git-svn-id: https://josm.openstreetmap.de/svn/trunk@14334 0c6e7542-c601-0410-84e7-c038aed88b3b
If the library is being used in a web application for processing user supplied SVG files then the app is vulnerable to SSRF.
The attacker can send a specially crafted svg file, for example
and the lib will send the request inside the trusted network to the
host-in-the-trusted-network.com
(bypassing the firewall). In general, the attacker can use any scheme supported by default (such asfile://
,jar://
etc) or use application specific scheme.How to fix - any schemes apart from
data
in thexlink:href
attribute should be disallowed by default at https://github.com/blackears/svgSalamander/blob/master/svg-core/src/main/java/com/kitfox/svg/ImageSVG.java#L120Additional information:
https://cwe.mitre.org/data/definitions/918.html
http://www.slideshare.net/d0znpp/ssrf-attacks-and-sockets-smorgasbord-of-vulnerabilities
The text was updated successfully, but these errors were encountered: