News for hackers. Stuff that matters.
Re:Show HN: A Way To Hack HN's Karma by carbocation on Thursday March 22, 2012 @08:27PM (#3742841)
PG could start using POST & CSRF protection to lock this down. Or we could just avoid doing this to each other.
Re:Show HN: A Way To Hack HN's Karma by daeken on Thursday March 22, 2012 @08:45PM (#3742924)
CSRF protection is the right way to solve this. Switching to POST doesn't provide any real protection; an attacker can simply put up a form that autosubmits to the endpoint with POST.
Re:Show HN: A Way To Hack HN's Karma by Bakkot on Thursday March 22, 2012 @08:53PM (#3742963)
CSRF couldn't stop this particular attack, since it's not actually cross-site. You need to guard against both.
Re:Show HN: A Way To Hack HN's Karma by daeken on Thursday March 22, 2012 @09:04PM (#3743000)
I think you misunderstand what CSRF protection does. It doesn't have anything to do with same-origin security, but rather preventing request forgery attacks in general. If a CSRF token was present on requests and was tied to a user's session (as is standard), then that would absolutely defend against this attack.
Re:Show HN: A Way To Hack HN's Karma by marshray on Thursday March 22, 2012 @10:27PM (#3743300)
Wonder if you could get around that by submitting a javascript: link.
Re:Show HN: A Way To Hack HN's Karma by daeken on Thursday March 22, 2012 @10:32PM (#3743317)
As far as I can tell, only http(s) links are accepted by the submission form.
Re:Show HN: A Way To Hack HN's Karma by city41 on Thursday March 22, 2012 @08:58PM (#3742980)
> Or we could just avoid doing this to each other.

Hacker News has grown dramatically. The "Hacker News effect" is now significant and often considered valuable. If there is an exploit that makes it possible, people will use it.

Re:Show HN: A Way To Hack HN's Karma by freehunter on Thursday March 22, 2012 @08:54PM (#3742966)
Or we could just avoid doing this to each other.

Security through obscurity?

Re:Show HN: A Way To Hack HN's Karma by tryeng on Thursday March 22, 2012 @09:08PM (#3743018)
Nope. Security through niceness and ethics. If everyone was in on it we would have a really great society.
Re:Show HN: A Way To Hack HN's Karma by dshah on Thursday March 22, 2012 @10:48PM (#3743377)
I don't think anyone would contest that good behavior would be good for society. But, it's not a practical expectation, because the probability of everyone exhibiting good behavior is vanishingly small.
Re:Show HN: A Way To Hack HN's Karma by freehunter on Friday March 23, 2012 @02:19PM (#3746430)
That is exactly security through obscurity. If you're relying on people being nice enough to not exploit you (no matter how difficult it is), you have no security at all.

Let's say everyone on HN was nice enough to not use exploits. Might be possible. But then one person does a drive-by exploit, and BAM. Everyone but one person is nice enough to not exploit people.

Just because you wish people were nice doesn't make them nice.

Re:Show HN: A Way To Hack HN's Karma by tryeng on Sunday March 25, 2012 @12:06PM (#3752899)
No, it's just lack of security. There's no obscurity involved at all.

(And, if there was any doubt, we should of course not count on people being nice on the internet.)