2
votes
xss: is it possible to continue javascript code execution after a "throw new Error()" line?
If you're really injecting inside a javascript file then I can't see a way to continue execution. If you're injecting inside a script tag in an html document, then you can close the script tag and ...
- 21
2
votes
How is a XSS attack possible in this context?
May be you consider it from the client side only. But XSS injection can be executed also on the backend side.
Suppose you use Velocity to generate HTML. It is valid also for any other engine, but ...
- 10.8k
1
vote
Accepted
xss: is it possible to continue javascript code execution after a "throw new Error()" line?
There are a lot of unexpected corners of the language that could change the control flow. There may be new ones added in future versions of JavaScript To be safe, I would always assume that allowing ...
- 481
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
xss × 1497javascript × 384
web-application × 294
html × 125
csrf × 102
php × 93
web-browser × 82
reflected-xss × 76
cookies × 70
appsec × 56
injection × 52
content-security-policy × 52
dom × 49
vulnerability × 48
encoding × 47
sql-injection × 44
penetration-test × 38
exploit × 35
attacks × 33
http × 31
jquery × 27
attack-prevention × 26
json × 25
jwt × 21
iframe × 21