id: wordpress-twentynineteen-fpd

info:
  name: WordPress Twenty Nineteen - Full Path Disclosure
  author: pussycat0x
  severity: low
  description: |
    The WordPress Twentytwenty themes was detected to be vulnerable to Full Path Disclosure, allowing unauthenticated access to the full application path.
  reference:
    - https://wordpress.org/themes/twentynineteen/
  metadata:
    verified: false
  tags: wordpress,wp,wp-theme,twentytwenty,fpd

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/themes/twentynineteen/functions.php"

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "Fatal error", "Uncaught Error:") || contains_all(body, "Warning:", "failed to open stream")'
          - 'contains(body, "twentytwenty")'
          - 'status_code == 200 || status_code == 500'
        condition: and
# digest: 4a0a004730450221009fec0a2bef2b03e5ed3a51a58c1439195cc2fb3a3bd64082718cb47e682c45e602202ea87305c236059cad2d63f3231062216e6b263dbd12649c8471ac97858930b3:922c64590222798bb761d5b6d8e72950