New answers tagged javascript
0
votes
What happens if my anti-CSRF token is compromised by an XSS attack?
An XSS attack, while it is ongoing, strictly dominates CSRF; anything an attacker could do with CSRF, they can do with XSS (and much more besides).
However, there is a question: what happens after the ...
0
votes
XSS against jQuery PortSwigger challenge
The vulnerable code is this:
<script src="/resources/js/jquery_1-8-2.js"></script>
[...]
<script>
$(window).on('hashchange', function(){
var post = $('section.blog-list h2:...
0
votes
Is it safe to store the OIDC token in a private field of a javascript object?
Safe enough, sure, lots of sites do this. An attacker who gets XSS on the site might still be able to extract the token, depending on exactly how the function that adds it to API calls is invoked (for ...
Top 50 recent answers are included
Related Tags
javascript × 1347xss × 391
web-application × 212
web-browser × 183
html × 112
malware × 69
encryption × 67
php × 66
authentication × 52
http × 45
client-side × 44
csrf × 43
cookies × 42
tls × 36
appsec × 36
injection × 36
ajax × 35
node.js × 34
dom × 32
cryptography × 31
passwords × 29
attacks × 29
chrome × 27
same-origin-policy × 26
exploit × 25