SecurityContext

CVE-2022-0218: HTML Email Template Designer < 3.1 - Missing Authorization on Rest Route

Classification

  • Cwe: CWE-79
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.66406
  • Epss percentile: 0.993
  • Cpe: cpe:2.3:a:codemiq:wordpress_email_template_designer:*:*:*:*:*:wordpress:*:*

Metadata

  • Framework: wordpress
  • Max-request: 1
  • Product: wordpress_email_template_designer
  • Vendor: codemiq

Products

ProductIndexedUrl
codemiq:wordpress_email_template_designeryes/v1/products/codemiq/wordpress_email_template_designer

Labels

  • Name: WordPress WP HTML Mail - Stored XSS
  • Impact: Attackers can execute malicious scripts in the context of the site, potentially leading to session hijacking, defacement, or data theft.
  • Remediation: Implement proper access controls on the REST API endpoint and sanitize all inputs.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2022-0218
  • Not known: requirements

```yaml

id: CVE-2022-0218

info:

name: HTML Email Template Designer < 3.1 - Missing Authorization on Rest Route

author: hexcat

severity: medium

description: |

The WP HTML Mail WordPress plugin is vulnerable to unauthorized access which allows unauthenticated attackers to retrieve and modify theme settings due to a missing capability check on the /themesettings REST-API endpoint found in the ~/includes/class-template-designer.php file, in versions up to and including 3.0.9. This makes it possible for attackers with no privileges to execute the endpoint and add malicious JavaScript to a vulnerable WordPress site.

impact: |

An attacker can exploit this vulnerability to inject malicious scripts into the subject field of an email template, potentially leading to unauthorized access, data theft, or further compromise of the affected system.

remediation: |

Update to version 3.1 or later of the HTML Email Template Designer plugin to fix the vulnerability.

reference:

- https://www.wordfence.com/blog/2022/01/unauthenticated-xss-vulnerability-patched-in-html-email-template-designer-plugin/

- https://wordpress.org/plugins/wp-html-mail/

- https://nvd.nist.gov/vuln/detail/CVE-2022-0218

- https://plugins.trac.wordpress.org/changeset/2656984/wp-html-mail/trunk/includes/class-template-designer.php

- https://github.com/ARPSyndicate/cvemon

classification:

cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

cvss-score: 6.1

cve-id: CVE-2022-0218

cwe-id: CWE-79

epss-score: 0.66406

epss-percentile: 0.993

cpe: cpe:2.3:a:codemiq:wordpress_email_template_designer:*:*:*:*:*:wordpress:*:*

metadata:

max-request: 1

vendor: codemiq

product: wordpress_email_template_designer

framework: wordpress

tags: cve,cve2022,wordpress,wp-plugin,codemiq,vkev,vuln

http:

- method: GET

path:

- "{{BaseURL}}/index.php?rest_route=/whm/v3/themesettings"

matchers-condition: and

matchers:

- type: word

part: body

words:

- '"background":'

- '"footer":'

condition: and

- type: word

part: header

words:

- "application/json"

- type: status

status:

- 200

digest: 4a0a004730450220043f44e77bcdcb25a9c3c235fceeecfbe0a13adc895e80cfbb301d693c75d5f5022100b6d7ca77c91782f5b6a0908e6db8f92e1f175bd93a96b5d71d5e428a18840527:922c64590222798bb761d5b6d8e72950

```