Javascript injection on HN (move mouse to the [Y] menu bar on this user page)
news.ycombinator.com
news.ycombinator.com
"GREETZ FROM Z0MBEE"
Now out of curiosity, how did you find this user? He hasn't been very active it seems since he signed up over a year ago. (I see only one comment for this user).
This kind of vulnerability makes it trivial to hijack someone's session. Of course you probably don't have any sensitive data on news.yc, but still...
The term 'arglebargle' is used by a current HN member. So don't make this assumption.
Don't appologise - there is nothing wrong with your comment. I was just pointing there is an existing user that made it. I didn't want to name them w/o being sure.
If you guys really need to disable JS-injection for security purposes, at least leave "arglebargle's" in place.
(later edit: I probably should have posted this during the day to give someone a chance to fix it so no one new actually exploits this... should I delete it?)
Click on the logo & letters on the bottom and you can throw them around.
Did you notice the letter 'r' leaves a trail when you throw it R-L ? A blue trail and the intensity of the line differs too.
That's a pretty-printed and syntax highlighted view of the JavaScript in question.
Edit: slightly cleaned up the formatting.
Also! Line 75 confuses me (and jsLint) a bit. What's that up to?
for (e = 0; e < sup.length; e++) {That gets the jsLint errors down to complaints about assignments in loop conditions. So no biggie.
...and swat punters... or pun swatters... and "we rust pants"
neck washer, warn cheeks, swan hecker or knee rash wc?
Works in all versions of FireFox/Safari I've tried, but unsurprising is broken in IE.
Anyway, the injected script is indeed executed in IE, it just seem to fail because of an IE-specific bug.
It's a nice personalization.
Sure -- check for it on comments, but on the user's page? Kind of neat.
* Submit stuff or comments under your account
* Modify your profile
* reset your password and take over the account
So probably best fixed if it's not already ;)