In-depth lesson · XSS
Typical fixes
Every point the XSS reports back under this heading, best-backed first, each with the reports it is seen in.
-
Sandbox or filter style tags as well as script tags in payload previews.
Seen in 1 report
-
Sandbox or sanitise remote SVG content instead of proxying it from the forum origin.
Seen in 1 report
-
Sanitise AI-generated and user-supplied output before rendering it.
-
Sanitise and encode alert rule names.
Seen in 1 report
-
Sanitise and encode comment input.
Seen in 1 report
-
Sanitise and encode directory names before display.
Seen in 1 report
-
Medium
-
-
Sanitise and encode label text before storing and rendering.
-
Sanitise and encode special characters in name fields before rendering them.
Seen in 1 report
-
Sanitise and encode special instructions before rendering in the admin dashboard.
Seen in 1 report
-
Sanitise and encode syslog data before rendering.
Seen in 1 report
-
Sanitise and encode the search input before appending it to the page.
Seen in 1 report
-
Sanitise and encode the SNMP location value before rendering it.
-
Sanitise and encode the video name parameter before echoing it into an HTML comment.
Seen in 1 report
-
Sanitise and escape portfolio module descriptions before storing and rendering.
Seen in 1 report
-
Sanitise and escape registration input before rendering it in other pages or panels.
Seen in 1 report
-
Sanitise and escape shortcode attributes before rendering.
Seen in 1 report
-
Sanitise attachment content rendered in the Action Text edit UI.
Seen in 1 report
-
Sanitise attributes in the syntax highlighting filter and escape the emoji element's name attribute.
Seen in 1 report
-
Sanitise BB code tag input before inserting it into a style attribute.
Seen in 1 report
-
Sanitise campaign and advertiser names and HTML-encode them before rendering into the admin picker.
Seen in 1 report
-
Sanitise cell content before inserting it as HTML in the export plugin.
Seen in 1 report
-
Sanitise chat bot input before rendering as HTML and add clickjacking protection.
-
Sanitise chatbot output and avoid storing authentication tokens in localStorage.
Seen in 1 report
-
Sanitise click handler URLs in the diagram renderer.
Seen in 1 report
-
Sanitise clipboard content before writing it to innerHTML when handling pastes.
Seen in 1 report
-
Sanitise comment text before truncating it so malformed HTML cannot result.
Seen in 1 report
-
Sanitise Compass component input, validate uploaded file types and tighten path validation in the Laravel Voyager admin.
Seen in 1 report
-
Sanitise CRLF characters before placing input into response headers such as Location.
Seen in 1 report
-
Sanitise CSS injected into public profile themes.
Seen in 1 report
-
Sanitise echoed XML values and validate the template parameter against traversal.
Seen in 1 report
-
Sanitise embedded HTML and keep sensitive tokens out of localStorage.
-
Sanitise file and directory names taken from stats files in bundle analyzer reports.
Seen in 1 report
-
Sanitise file names extracted from uploaded archives before displaying them.
Seen in 1 report
-
Sanitise filenames before rendering them with a raw-HTML directive in global search popups.
Seen in 1 report
-
Sanitise first and last name fields before storage and rendering.
Seen in 1 report
-
Sanitise HTML attributes in image links on RDoc wiki pages.
Seen in 1 report
-
Sanitise HTML decoded from the URL fragment before inserting it into the page.
Seen in 1 report
-
Sanitise HTML inside uploaded template files and add CSRF protection to the upload action.
Seen in 1 report
-
Sanitise HTML pasted into the text editor.
-
Sanitise HTML-encoded characters in the nickname field rather than blocking only complete tags.
Seen in 1 report
-
Sanitise location hash values before passing them to third-party scripts.
Seen in 1 report
-
Sanitise Markdown links and reject javascript: URLs in profile statements.
Seen in 1 report
-
Sanitise member list parameters and add CSRF token verification to admin forms.
Seen in 1 report
-
Sanitise message content in postMessage handlers even when the origin is validated.
-
Sanitise message HTML before rendering chat messages.
-
Sanitise message payloads before inserting them into the DOM even when the origin is trusted, as in payments iframe messaging.
Seen in 1 report
-
Sanitise model-generated SVG, including event attributes, scriptable elements and external references, before inserting it into the DOM.
Seen in 1 report
-
Sanitise name fields before including them in notification emails.
Seen in 1 report
-
Sanitise or encode the requested URL path before reflecting it on error pages.
Seen in 1 report
-
Sanitise or restrict script content in uploaded SVG files.
Seen in 1 report