Web::Simple before 0.036 for Perl does not escape values interpolated into double-quoted strings in HTML::Tags output…
The versions before 0.036 do not escape values interpolated into double-quoted strings in HTML::Tags output.
XSS in Web::Simple before 0.036 for Perl
Web::Simple versions before 0.036 for Perl do not escape values interpolated into double-quoted strings in HTML::Tags or XML::Tags output. An attacker controlling an interpolated value can inject scripts into generated pages. Users of affected Web::Simple versions are exposed.
What to do: Upgrade to Web::Simple 0.036. No workaround named.
| Product | Affected | Fixed in |
|---|---|---|
| Perl Web::Simple | before 0.036 | 0.036 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
Web::Simple versions before 0.036 for Perl do not escape values interpolated into double-quoted strings in HTML::Tags output. Under use HTML::Tags or use XML::Tags, a double-quoted string literal becomes a StringThing object that holds each interpolated value as a separate part. The escaping step passes such objects through, and stringify joins their interpolated parts as is. A value passed on its own, as in , $value, , is entity-escaped, but the same value in "Hello $value" is not. An attacker who controls a value that an application interpolates into a double-quoted string can inject script into the generated page.
The versions before 0.036 do not escape values interpolated into double-quoted strings in HTML::Tags output.
Today 1.5K readers · 2.4K views · 768 reads · all time 189K views