id: wp-twentyfifteen-fpd

info:
  name: WordPress Twenty Fifteen Theme - Full Path Disclosure
  author: 0x_Akoko
  severity: info
  description: |
    WordPress theme twentyfifteen internal file system path of a WordPress installation is exposed or disclosed to unauthorized users.
  reference:
    - https://wordpress.org/themes/twentyfifteen/
  metadata:
    verified: true
    max-request: 1
  tags: debug,wordpress,fpd,vuln,twentyfifteen,wp-themes

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

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(body, "Call to undefined function","/themes/twentyfifteen/")'
        condition: and
# digest: 4a0a00473045022100e655945361d338844225b49a8ac530e536dea070a919e3da6b9c7091600c881c02202be218159c5679ca9c2ef8059ad92cf258ed5a6a36839d4e7a927db854f4ebad:922c64590222798bb761d5b6d8e72950