id: wp-astra-fpd

info:
  name: WordPress Astra - Full Path Disclosure
  author: DhiyaneshDk
  severity: low
  description: |
    WordPress Astra Theme files are publicly accessible without ABSPATH protection, exposing sensitive server path information through PHP error messages when accessed directly.
  reference:
    - https://wordpress.org/themes/astra/
  metadata:
    max-request: 1
    verified: true
    shodan-query: html:"/themes/astra/"
  tags: debug,wp,wp-theme,wordpress,fpd,vuln,astra

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/themes/astra/assets/svg/logo-svg-icons/icons-v6-0.php"
      - "{{BaseURL}}/wp-content/themes/astra/inc/addons/scroll-to-top/class-astra-scroll-to-top.php"

    stop-at-first-match: true

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "/themes/astra/")'
          - 'contains_all(body, "Fatal error", "Uncaught Error:")'
        condition: and
# digest: 490a004630440220152bf49d351ed6c40a706e9e855fb87d17ff3262fcafe205ff47067e9f80245a022022b43cad366805d4d6096b394814ca65506d54171967155394e64b678c2c99fa:922c64590222798bb761d5b6d8e72950