Skip to main content
GameDev.net gamedev.net
🔒 Locked

Potential HTML/Javascript injection exploit with source tags (3)

Started by fastcall22 Jun 23, 2012 at 7:02 PM 3 replies 1.2k views
Original Post
fastcall22
fastcall22
[source lang="cpp"]
"/>



[/source]

[source lang="cpp"]
const char* str = "maybe two source boxes?";
[/source]

If nothing happens, then move along; nothing to see here.

<.<
>.>

Trying to reproduce what happened in this thread: http://www.gamedev.net/topic/626861-sdl-collision-issue/

Okay, THIS time, I got it.
Cornstalks
Cornstalks
I'm not sure what's supposed to happen... nothing happens (at least no confirm boxes appear) for me on OS X with Chrome or Safari. If you're talking about the contents of the source tags appearing at the top with junk, I reported the same thing awhile ago for the mobile version... let me check if it's fixed for mobile.
Cornstalks
Cornstalks
Ok, looks like your code messed up the javascript 'case I can't edit that post now. Yeah, that thing I reported still happens for mobile, and I'm assuming it's related to this.
fastcall22
fastcall22
Looks like any HTML-like tags are parsed out of the source box...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.