id: wp-duracelltomi-google-tag-manager-fpd

info:
  name: WordPress Plugin Google Tag Manager - Full Path Disclosure
  author: DhiyaneshDk
  severity: low
  description: |
    WordPress Plugin Google Tag Manager files are publicly accessible without ABSPATH protection, exposing sensitive server path information through PHP error messages when accessed directly.
  reference:
    - https://wordpress.org/plugins/duracelltomi-google-tag-manager/
  metadata:
    max-request: 1
    verified: true
    shodan-query: html:"/plugins/duracelltomi-google-tag-manager/"
  tags: debug,wordpress,fpd,vuln,duracelltomi-google-tag-manager,wp-plugin

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/duracelltomi-google-tag-manager/admin/admin.php"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "plugins/duracelltomi-google-tag-manager")'
          - 'contains_all(body, "Fatal error", "Uncaught Error:")'
        condition: and
# digest: 490a00463044021f4d7e3d2bc2b76dbdc61753922f706faf1c6563a3bbcc7fba7574614fadf3b7022100d73bf1145828098706aa66ccc5689b97126a641605d00c6fe9d6f54f7ae17619:922c64590222798bb761d5b6d8e72950