IT Security Lab The Playground for IT Security Specialists and Pentesters

26Jun/100

Verbose Error Messages In MySQL

I was truly amazed when found the information that it is possible to force MySQL to raise a verbose error message. Here is the trick:

SELECT 1 AND ExtractValue(1, CONCAT(0×5c, (SELECT @@VERSION)))

...which happily produces:

Error Code : 1105
XPATH syntax error: ‘\5.1.44-community’

Remark: As this is the SQL error, in PHP it should be handled manually by something like this:

echo mysql_error();

Credits naturally go to Dmitry Evteev http://devteev.blogspot.com/...

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


*

No trackbacks yet.