id: phpinfo-files info: name: PHPinfo Page - Detect author: pdteam,daffainfo,meme-lord,dhiyaneshDK,wabafet,mastercho severity: low description: | PHPinfo page was detected. The output of the phpinfo() command can reveal sensitive and detailed PHP environment information. remediation: Remove PHP Info pages from publicly accessible sites, or restrict access to authorized users only. classification: cwe-id: CWE-200 metadata: max-request: 25 tags: config,exposure,phpinfo http: - method: GET path: - "{{BaseURL}}{{paths}}" payloads: paths: - "/php.php" - "/php2.php" - "/phpinfo.php" - "/info.php" - "/infophp.php" - "/php_info.php" - "/test.php" - "/i.php" - "/p.php" - "/pi.php" - "/asdf.php" - "/pinfo.php" - "/phpversion.php" - "/time.php" - "/index.php" - "/temp.php" - "/old_phpinfo.php" - "/infos.php" - "/linusadmin-phpinfo.php" - "/php-info.php" - "/dashboard/phpinfo.php" - "/_profiler/phpinfo.php" - "/_profiler/phpinfo" - "/?phpinfo=1" - "/l.php?act=phpinfo" stop-at-first-match: true matchers-condition: and matchers: - type: word part: body words: - "PHP Extension" - "PHP Version" condition: and - type: status status: - 200 extractors: - type: regex part: body group: 1 regex: - '>PHP Version <\/td>([0-9.]+)' # digest: 4b0a004830460221009b7c20b1db6690a5efc202e5e4183334cc2cac71afd4ef5031bfcc1f1d3a00df022100ceb05aa6e4dd37a4bd7bfde8f170a9a1a5d827f94e1e405002e5dfe9d6484d38:922c64590222798bb761d5b6d8e72950