-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hopefully prevent execution of this script in a webserver context.
This check should not be required ... yet here it is. If you upload PHPUnit to a production webserver then your deployment process is broken. If your vendor/ directory is publicly accessible on your webserver then your deployment process is broken. *sigh*
- Loading branch information
1 parent
7a46cf1
commit 33585d9
Showing
1 changed file
with
4 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
4 comments
on commit 33585d9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: 6aab040
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you explain us why it's required? π€
Is there a simple way to exploit the php://stdin
in a webserver context?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: It can be exploit when running under CGI / FastCGI context :)
wouldn't it be a bit better with
exit(1)
?