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.
-
Validate that the assertion consumer service location conforms to the declared binding syntax before inserting it into a form action.
-
Validate that the callback URL points to a safe internal location and reject javascript: URLs.
Seen in 1 report
-
Validate that the container ID belongs to the site.
Seen in 1 report
-
Validate that the redirect parameter contains only a safe URL.
Seen in 1 report
-
Validate the caller and content of exported activities before loading them in a WebView.
Seen in 1 report
-
Validate the continue parameter as a safe URL and reject javascript schemes.
Seen in 1 report
-
Validate the elements URL parameter against an allowlist of hosts.
Seen in 1 report
-
Validate the employee name on the server, not only on the frontend.
Seen in 1 report
-
Validate the message origin and never pass message data to eval.
Seen in 1 report
-
Validate the OAuth redirect_uri against a whitelist.
Seen in 1 report
-
Validate the origin of every postMessage, not just the first.
Seen in 1 report
-
Validate the pack parameter before passing it to a file function and HTML-escape smiley image values.
Seen in 1 report
-
Validate the real sender origin rather than a value taken from the URL.
Seen in 1 report
-
Validate the sender of external extension messages before passing data to script execution.
-
Validate the sender's origin exactly before inserting message data into the DOM.
Seen in 1 report
-
Validate the tracking URL scheme and restrict it to http or https.
Seen in 1 report
-
Validate the uploaded file's real type and content rather than the extension or client-side checks.
-
Validate the URL scheme and sanitise the parameter before reflecting it into an anchor.
Seen in 1 report
-
Validate the URL scheme in the external link helper.
Seen in 1 report
-
$1,130 Medium
-
-
Validate the URL scheme of cookie values before inserting them into links.
Seen in 1 report
-
Validate the URL scheme of the dashboard URL setting.
Seen in 1 report
-
Validate the URL scheme of the parameter before reflecting it into an href.
Seen in 1 report
-
Validate user-supplied data in policy management.
Seen in 1 report
-
Validate, output-encode and allow-list schemes and domains for input placed into HTML meta tags.
-
Verify ownership of a resource on delete endpoints rather than authorising by session and XSRF token only.
-
Verify the whole file and serve uploads with a safe content type.
Seen in 1 report