Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show some serious content for more exploit attempts #471

Merged
merged 3 commits into from
Jan 15, 2025

Conversation

spaze
Copy link
Owner

@spaze spaze commented Jan 15, 2025

Requests for /etc/passwd will now trigger zi egg even on non-404 pages (think /?file=/etc/passwd where / is a regular existing page) and also on PHP CGI CVE-2024-4577 😈

spaze added 3 commits January 15, 2025 02:56
…existing content

This means for example that previously, `/?file=/etc/passwd` didn't trigger the FourOhFourButFound output because `/` is a valid existing URL, but now it will.

It uses $_SERVER because that contains the original requested URL, Nette's Request service has it already sanitized a bit and will not retain new lines for example, which some CVE exploits use. This means I can troll more folks, yay!
CVE-2024-4577 is the PHP CGI Argument Injection Vulnerability affecting PHP-CGI on Windows
https://devco.re/blog/2024/06/06/security-alert-cve-2024-4577-php-cgi-argument-injection-vulnerability-en/

But I don't run Windows, and I patch my PHPs.
@spaze spaze changed the title Show some not-so-funny content for more exploit attempts Show some serious content for more exploit attempts Jan 15, 2025
@spaze spaze merged commit 5c4200a into main Jan 15, 2025
37 checks passed
@spaze spaze deleted the spaze/404-but-found-when-found branch January 15, 2025 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant