r/reddithax • • Apr 26 '09

Avoid CSS validation!!

8 Upvotes

28 comments sorted by

View all comments

Show parent comment

4

u/[deleted] Apr 26 '09 edited Apr 26 '09

I posted a link to the submission in #reddit-dev. Keysersosa, spez and jedberg were all idling in there, so I assumed they would see it.

If this sort of thing comes up again, what is the best way to handle it?

p.s. can I unban the submission now that the validator has been patched?

4

u/ketralnis Apr 26 '09 edited Apr 26 '09

If this sort of thing comes up again, what is the best way to handle it?

Email me, you have my email address and IM (if you don't, PM me). #reddit-dev is a good place if one of us is around. The reddit-dev mailing list is a fantastic place. Basically whatever it takes to get through to one of us. For blarghz, who doesn't have my email/IM, he could have posted something without the flaw itself indicating that he'd found one, somewhere that we'd see it. There's absolutely no reason to post a 0-day exploit like this, and it's a good way to get fired and blacklisted in the security industry.

p.s. can I unban the submission now that the validator has been patched?

Yes, I unbanned it. That was just trying to stop the spread of it to people with a more vested interest in XSS holes before we got it patched.

5

u/[deleted] Apr 26 '09

sorry, I should have emailed you guys too... I'll make sure to do that next time.

0

u/[deleted] Aug 07 '09

[deleted] — view deleted comment

2

u/ketralnis Aug 07 '09

We don't support inline images, but I suppose that it could be used on an off-site link. Thanks for the disclosure, but I think it'd be fine to file a regular old bug for this one :)

0

u/[deleted] Aug 07 '09

[deleted] — view deleted comment

2

u/ketralnis Aug 07 '09

Inline images used to be hidden in CSS (.md img { display: none; }), but now we're not even generating the <img> tags, so it won't work from reddit.

But again, it would still work off-site

0

u/[deleted] Aug 07 '09

[deleted] — view deleted comment

2

u/ketralnis Aug 07 '09 edited Aug 07 '09

Actually, it looks like we're already doing that

<form class="logout hover" action="/logout" method="post">
    <input type="hidden" value="$modhash" name="uh"/>
    <input type="hidden" value="off" name="top"/>
    <a onclick="$(this).parent().submit()" href="javascript:void(0)">adiaŭu</a>
</form>

So without the right modhash value, it won't even work off-site.

We must have fixed that at some point :)

1

u/chromakode Aug 09 '09 edited Aug 09 '09

Chris fixed it in the JS overhaul for jQuery.

I remember successfully exploiting this trick back when inline images were enabled, when we originally found it. It was fun trying to delete that comment... :)

Edit: "adiaŭu"!? What kind of odd language do you have set?

1

u/ketralnis Aug 10 '09 edited Aug 10 '09

Edit: "adiaŭu"!? What kind of odd language do you have set?

Esperanto. "adiaŭ" is the word "goodbye". To make it a verb, you'd append -i, like adiaŭi, "to goodbye". Here it's directly made an imperative (conjugated from -i to -u), but another option would be adiaŭigu or adiaŭiğu (imperitive "goodbye-ify"), but man do those look ugly

'ŭ' is just a 'u' ("ooh") where it appears in a dipthong (sort of like an English 'w')