Merge pull request #4270 from projectdiscovery/CVE-2021-25111

Create CVE-2021-25111.yaml
patch-1
Prince Chaddha 2022-04-30 01:51:56 +05:30 committed by GitHub
commit de2f7ae1e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
id: CVE-2021-25111
info:
name: English WordPress Admin < 1.5.2 - Unauthenticated Open Redirect
author: akincibor
severity: low
description: The plugin does not validate the admin_custom_language_return_url before redirecting users o it, leading to an open redirect issue.
reference:
- https://wpscan.com/vulnerability/af548fab-96c2-4129-b609-e24aad0b1fc4
tags: wp-plugin,redirect,wordpress,wp,cve,cve2021,unauth
requests:
- method: GET
path:
- "{{BaseURL}}/wp-admin/admin-ajax.php?action=heartbeat&admin_custom_language_toggle=1&admin_custom_language_return_url=https://example.com"
matchers:
- type: regex
part: header
regex:
- '(?m)^(?:Location\s*?:\s*?)(?:https?:\/\/|\/\/|\/\\\\|\/\\)?(?:[a-zA-Z0-9\-_\.@]*)attacker\.com\/?(\/|[^.].*)?$' # https://regex101.com/r/ZDYhFh/1