Script inside SVG?
Script inside SVG?
Posted Apr 17, 2025 6:41 UTC (Thu) by epa (subscriber, #39769)In reply to: Script inside SVG? by excors
Parent article: Catanzaro: Dangerous arbitrary file read vulnerability in Yelp
It can check the HTML too, making sure it doesn't have <script> elements, to present a useful error message -- but that shouldn't be the only defence. The writeup notes: "Simply appending a script tag or a malicious on* attribute in the input XML document won't work since handling these tags is not defined in the yelp-xsl app." Which is great, but an oversight in the XSL processing shouldn't open the door to arbitrary scripting.
I think WebKitGtk needs a mode without any JavaScript support, and this should even be the default (since there are hundreds of little programs that just want to display some HTML in their splash screen or help text with a few lines of code, while writing a web browser is a less common task).
Posted Apr 17, 2025 9:35 UTC (Thu)
by johnjones (guest, #5462)
[Link]
https://datatracker.ietf.org/doc/html/draft-svg-tiny-ps-a...
JJ
Posted Apr 17, 2025 9:40 UTC (Thu)
by excors (subscriber, #95769)
[Link] (4 responses)
If WebKitGTK had a no-scripting mode, Yelp would probably have disabled that mode because scripting is very useful.
Posted Apr 17, 2025 10:51 UTC (Thu)
by epa (subscriber, #39769)
[Link] (1 responses)
Posted Apr 17, 2025 12:13 UTC (Thu)
by excors (subscriber, #95769)
[Link]
It's explicitly "not intended as a first line of defense against content injection vulnerabilities" but it "reduces the harm that a malicious injection can cause" (https://www.w3.org/TR/CSP3/)
Posted Apr 21, 2025 23:55 UTC (Mon)
by NYKevin (subscriber, #129325)
[Link]
I imagine there might be some cases where you try to load a Yelp document over HTTP(S) for legitimate reasons (e.g. because the help file is not installed locally), but I really hope that is not the case because Yelp is unmaintained (per the bug tracker) and should not be dealing with untrusted content from the internet. If they are not already planning to remove its internet capabilities outright, they should do that now.
Posted Apr 23, 2025 6:20 UTC (Wed)
by mathstuf (subscriber, #69389)
[Link]
Posted Apr 17, 2025 13:18 UTC (Thu)
by mcatanzaro (subscriber, #93033)
[Link]
However, it seems Yelp does need to allow documents to execute certain approved scripts, so I guess it can't use either of these.
SVG mode needs to be SVG Tiny Portable/Secure
Script inside SVG?
Script inside SVG?
Script inside SVG?
Script inside SVG?
Script inside SVG?
Script inside SVG?