HexBrain

Browse / CVEs / CVE-2021-25118

CVE-2021-25118· yoast / yoast seo· CWE-200

Yoast SEO 16.7-17.2 - Information Disclosure

mediumseverity
5.3CVSS score
5.6%likelihood of exploitation, next 30 days
93%of all CVEs are less likely
Readycheck to confirm it

Yoast SEO plugin 16.7 to 17.2 is susceptible to information disclosure, The plugin discloses the full internal path of featured images in posts via the wp/v2/posts REST endpoints, which can help an attacker identify other vulnerabilities or help during the exploitation of other identified vulnerabilities.

Impact

An attacker can exploit this vulnerability to gain sensitive information from the target system.

Fix

Fixed in version 17.3.

How to confirm it

Send: GET {{BaseURL}}/wp-json/wp/v2/posts?per_page=1
Positive when: contains in header "application/json" AND matches /"path":"(.*)/wp-content\\(.*)","size/ AND status 200

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

The full check
id: CVE-2021-25118

info:
  name: Yoast SEO 16.7-17.2 - Information Disclosure
  author: DhiyaneshDK
  severity: medium
  description: Yoast SEO plugin 16.7 to 17.2 is susceptible to information disclosure, The plugin discloses the full internal path of featured images in posts via the wp/v2/posts REST endpoints, which can help an attacker identify other vulnerabilities or help during the exploitation of other identified vulnerabilities.
  impact: |
    An attacker can exploit this vulnerability to gain sensitive information from the target system.
  remediation: Fixed in version 17.3.
  reference:
    - https://wpscan.com/vulnerability/2c3f9038-632d-40ef-a099-6ea202efb550
    - https://plugins.trac.wordpress.org/changeset/2608691
    - https://nvd.nist.gov/vuln/detail/CVE-2021-25118
    - https://github.com/20142995/sectool
    - https://github.com/ARPSyndicate/cvemon
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2021-25118
    cwe-id: CWE-200
    epss-score: 0.05632
    epss-percentile: 0.93013
    cpe: cpe:2.3:a:yoast:yoast_seo:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: yoast
    product: yoast_seo
    framework: wordpress
  tags: cve2021,cve,wpscan,wordpress,wp-plugin,fpd,wp,yoast,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-json/wp/v2/posts?per_page=1"

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "application/json"

      - type: regex
        regex:
          - '"path":"(.*)/wp-content\\(.*)","size'

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        group: 1
        regex:
          - '"path":"(.*)/wp-content\\(.*)","size'
        part: body

References

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