Earlier quoted context omitted.
Indeed there is. Most often a token, stored in localStorage. But that token can be used from anywhere and with any mechanism. So I guess what I mean is that if there is a way for somebody to intercept or retrieve it, then I have in the past viewed that as a vulnerability of the browser (probably wrongly). So what I'd love to understand better is the kind of attacks that would be practical, and how they would exploit…
Your humility is pretty awesome. As a simple example, paste alert("haha") into an form in your system that will (eventually) be viewable to someone else. Let's say it's something innocuous like the quantity field on an order form or a comment on a comment form. Now, none of those characters will attack your database through SQL injection, right? So what happens when you (the administrator) views your latest orders? B…
The Frequency of Known Vulnerabilities in JavaScript
41–50 of 58 posts
Re: The Frequency of Known Vulnerabilities in JavaScript
#42In ruby land, there's a great gem - https://github.com/rubysec/bundler-audit - that lets you know when specific gem versions have a known security vulnerability. We run it as part of our CI. When a vulnerability drops, it gets fixed pretty quickly since otherwise everyone's build fails. Does anyone know of any equivalents for the JS world? A quick google finds https://github.com/nodesecurity/nsp but keen to hear what…
Re: The Frequency of Known Vulnerabilities in JavaScript
#43Earlier quoted context omitted.
Ever heard of XSS?
Yes but what I think I had not given enough thought to were DOM-based vulnerabilities, which it seems to me are the ones that would be relevant to 3rd party JS libs. Anyway I will certainly be giving this deeper thought.
Re: The Frequency of Known Vulnerabilities in JavaScript
#44Earlier quoted context omitted.
But I don't think jQuery vulnerabilities could possibly open you up to XSS attacks unless you were already doing something silly.
something like.. var comment = " alert(1) "; $("div.comments").append(comment); not so silly.
If I'm following your other example with malicious input into a form; the snippet would have to pass server-side validation (likely, since it's probably checking for SQL injects). Then past that, when it gets rendered for other users, the view/templating would need to display the snippet as a script instead of just text, right?
Re: The Frequency of Known Vulnerabilities in JavaScript
#45Earlier quoted context omitted.
been a "word" since forever mate, i even remember using it in the 90s. and it's alright, you might just be young or haven't forayed much into the deeper corners of the web where 'vulns' get discussed.
did you see that noobs box get pwnd by that js vuln? what a waste of a 0day. luldongues
Ahh, it's been awhile since I was 16.
Re: The Frequency of Known Vulnerabilities in JavaScript
#46Does 398 vulnerabilities in NPM seem low? https://snyk.io/vuln?type=npm
Re: The Frequency of Known Vulnerabilities in JavaScript
#47In ruby land, there's a great gem - https://github.com/rubysec/bundler-audit - that lets you know when specific gem versions have a known security vulnerability. We run it as part of our CI. When a vulnerability drops, it gets fixed pretty quickly since otherwise everyone's build fails. Does anyone know of any equivalents for the JS world? A quick google finds https://github.com/nodesecurity/nsp but keen to hear what…
Nice. Is there an equivalent for Python? A quick Google search doesn't seem to pull up anything obvious.
Re: The Frequency of Known Vulnerabilities in JavaScript
#48Re: The Frequency of Known Vulnerabilities in JavaScript
#49Earlier quoted context omitted.
something like.. var comment = " alert(1) "; $("div.comments").append(comment); not so silly.
It is silly if the content of `comment` is coming from an external source (e.g. query string). Could you identify a specific jQuery vulnerability that makes otherwise safe code unsafe?
Re: The Frequency of Known Vulnerabilities in JavaScript
#50The article lists https://snyk.io/vuln/npm:moment:20161019 as an example of a vulnerability (although not one that is tracked). Could someone explain how a Javascript vulnerability could cause a DDoS? Even if it does cause Moment to hang, how would that affect the server?