Skip to content
engineering workbench.by StudyPort Academy
All glossary terms

GLOSSARY · A WORD, UNPACKED

XSS

attacker-controlled markup that the browser runs as your origin.

A little more detail

Cross-site scripting happens when text you stored, such as a note title, is written into HTML without escaping. The browser parses a tag and runs the script in your origin. That script can read the DOM and localStorage. It cannot read an HttpOnly cookie. Escaping the text is what keeps the title as text.

See it in practice

These lessons pair the idea with examples you can change and run.