Nome Utente: 
Password : 
Restringi sessione all'IP 
Online in 1gg

There is no escape  Vai alla sfida "No Escape"

Posizione globale: 198
Punteggio totale: 110647
Posts : 1795
Grazie: 1390
Voti+: 961
Registrato: 18a 259gg




Ultima visita: 65gg 19ore
L'utente è Offline
There is no escape
Google/traduci5Grazie!3Bel post!0Brutto post! Link
As this is more or less a training challenge, i'd like to give some general hints:

If you are doing your injections, make sure you don`t end a query with semicolon(;). The php mysql extension does not like that.

There is a trim() for all $_GET and $_POST data. This means any trailing space get`s removed.

In this challenge, the / character is filtered. So you can not use /**/ as mysql comment style. A nice working mysql comment style for this challenge is: ?vote_for= blub%20--%20foo

everything after ' -- ' is treated as comment, but the trailing space is important.

At last, let me give you a specific hint for this challenge: mysql_real_escape_string() might not work for your input!

Also keep in mind: Our exploits are mostly not simulated and "Code you see is code in use"

Good luck!
The geeks shall inherit the properties and methods of object earth.
Posizione globale: 6614
Punteggio totale: 2031
Posts : 5
Grazie: 4
Voti+: 4
Registrato: 15a 308gg
Ultima visita: 6a 134gg
L'utente è Offline
RE: There is no escape
Google/traduci1Grazie!0Bel post!1Brutto post! Link
Is it really possible with an MySQL-Injection? Cant pass trough the mysql_real_escape_string().
My Thougts was to manipulate simply that +1.
%20--%20 the Comment doesnt work or?

%20--%20 Shows an ErrorMessage like this:
MySqlError(1054): Unknown column 'bill -- ' in 'field list' in Query:
UPDATE noescvotes SET `bill -- `=`bill -- `+1 WHERE id=1

But all after the comment should not parsed or?
No matter the comments are only usefull if i can put a ' after my bill or george.

If another hint would break the challenge for others please write me a PM Smile
Thx for so much fun!
And sorry for my bad english iam german.
Ultima modifica: grMf - 03 Gen 2011 - 01:10:44
Posizione globale: 198
Punteggio totale: 110647
Posts : 1795
Grazie: 1390
Voti+: 961
Registrato: 18a 259gg




Ultima visita: 65gg 19ore
L'utente è Offline
RE: There is no escape
Google/traduci2Grazie!1Bel post!0Brutto post! Link
Look closely again how the query is build Smile
Injecting mysql in this challenge is quite easy.
The geeks shall inherit the properties and methods of object earth.
Posizione globale: 6614
Punteggio totale: 2031
Posts : 5
Grazie: 4
Voti+: 4
Registrato: 15a 308gg
Ultima visita: 6a 134gg
L'utente è Offline
RE: There is no escape
Google/traduci2Grazie!2Bel post!0Brutto post! Link
Thx this was close enough Smile
Great Challenge!
Posizione globale: 16975
Punteggio totale: 76
Posts : 1
Grazie: 1
Voti+: 1
Registrato: 15a 49gg
Ultima visita: 13a 239gg
L'utente è Offline
RE: There is no escape
Google/traduci1Grazie!1Bel post!0Brutto post! Link
Ive been trying evrything and searched for the mysql_real_escape_string(), but could get to nowhere. Can you please give me another clue ?? Please please .-) I found that the function does not excape some chars, but could find any usefull with them.

Thank you
Ultima modifica: estenole - 20 Set 2011 - 18:49:15
Posizione globale: 198
Punteggio totale: 110647
Posts : 1795
Grazie: 1390
Voti+: 961
Registrato: 18a 259gg




Ultima visita: 65gg 19ore
L'utente è Offline
RE: There is no escape
Google/traduci1Grazie!0Bel post!1Brutto post! Link
There is already a very big hint in my previous post ... and you are on a good track ... keep trying!
The geeks shall inherit the properties and methods of object earth.
Posizione globale: 15520
Punteggio totale: 125
Posts : 1
Grazie: 1
Voti+: 1
Registrato: 10a 221gg
Ultima visita: 10a 122gg
L'utente è Offline
RE: There is no escape
Google/traduci1Grazie!1Bel post!0Brutto post! Link
Gizmore first post helps out the most as i was stuck on commenting the rest of the command
Posizione globale: 5433
Punteggio totale: 3044
Posts : 2
Grazie: 1
Voti+: 0
Registrato: 10a 66gg
Ultima visita: 10a 48gg
L'utente è Offline
RE: There is no escape
Google/traduci0Grazie!0Bel post!0Brutto post! Link
Huh... I kept getting errors until I added the trailing space, and now I get two green boxes (Vote counted for [INJECTION] and All votes have been reset), leading me to believe that I solved it, but it doesn't show up as solved in my challenges, and I am not on the Heroes list.
Posizione globale: 2
Punteggio totale: 747640
Posts : 441
Grazie: 501
Voti+: 478
Registrato: 17a 98gg












L'utente è Offline
RE: There is no escape
Google/traduci1Grazie!1Bel post!0Brutto post! Link
Check the code. There are two ways to get those messages, only one is the solution.
Posizione globale: 5433
Punteggio totale: 3044
Posts : 2
Grazie: 1
Voti+: 0
Registrato: 10a 66gg
Ultima visita: 10a 48gg
L'utente è Offline
RE: There is no escape
Google/traduci1Grazie!0Bel post!0Brutto post! Link
Hah, I got it. It just didn't like me going overboard and using 999 instead of 111 in my injection.
Redknee, dbhui1984, testlele, silenttrack, n0tHappy, nonfungiblesecurity, quangntenemy, TheHiveMind, Z, balicocat, Ge0, arraez, jcquinterov, hophuocthinh, alfamen2, burhanudinn123, Ben_Dover, stephanduran89, braddie0, fpombal, csuquvq utenti hanno sottoscritto il thread e ricevo le E-Mail di notifica.
1 persone stanno visualizzando il thread.
Questo thread è stato visualizzato 18781 volte.

PHP Fatal Error(1): Constant E_STRICT is deprecated since 8.4, the error level was removed in www/protected/config.php line 6


Backtrace starts in [unknown file] line ?. GWF_Debug::shutdown_function() core/inc/util/GWF_Debug.php line 109. GWF_Debug::error_handler().... core/inc/util/GWF_Debug.php line 180.