Test template fields for stored XSS

Cross-site scripting (XSS)Discovery

Written with a model's help from “E2Pdf turns a Contributor template field into stored cross-site scripting” by johnettwawers on DEV (xss). Read the writeup before relying on it.

Test template fields for stored cross-site scripting by submitting content with HTML markup, such as a link or text with angle brackets, and checking if it is executed in the context of a higher-privileged viewer. Try storing a template that contains angle brackets <> and confirm whether the preview executes script or the stored representation is encoded as data. Check the generated document, such as a PDF, to see if it retains the intended text. Use a staging account to test the document-generation workflow without putting production data at risk.

Follow #wordpress or #xss for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.

Comments

No comments yet.