diff --git a/exposures/configs/phpinfo.yaml b/exposures/configs/phpinfo.yaml index e49e256cce..ecc7dabbdc 100644 --- a/exposures/configs/phpinfo.yaml +++ b/exposures/configs/phpinfo.yaml @@ -2,7 +2,7 @@ id: phpinfo-files info: name: phpinfo Disclosure - author: pd-team & daffainfo + author: pd-team & daffainfo & meme-lord severity: low requests: @@ -25,9 +25,22 @@ requests: - "{{BaseURL}}/infos.php" - "{{BaseURL}}/linusadmin-phpinfo.php" - "{{BaseURL}}/php-info.php" + + matchers-condition: and matchers: - type: word words: - "PHP Extension" - "PHP Version" condition: and + + - type: status + status: + - 200 + + extractors: + - type: regex + part: body + group: 1 + regex: + - '>PHP Version <\/td>([0-9.]+)' \ No newline at end of file