In-depth lesson · Stored XSS
Typical fixes
Every point the Stored XSS reports back under this heading, best-backed first, each with the reports it is seen in.
-
Reject requests with no Content-Type header and filter the X-Accel-Redirect header in proxy responses.
Seen in 2 reports
-
Sanitise or block embedded script in uploaded SVG files.
Seen in 2 reports
-
$100 Low -
$150 Medium
-
-
Replace suspicious linked account names with a generic string before rendering them.
Seen in 1 report
-
Serve uploaded files with a restrictive Content-Disposition and a non-HTML content type, and sanitise them.
Seen in 1 report
-
Escape user-controlled content in generated HTML exports and add a Content-Security-Policy to the generated file.
Seen in 1 report
-
Escape placeholder replacements before inserting them into markup.
Seen in 1 report
-
Build tooltips with DOM methods rather than concatenating attribute values into a string passed to a re-parsing method.