Fix: deprecation message for Monolog-RCE{8, 9} and a few changes ...#218
Open
mir-hossein wants to merge 6 commits intoambionics:masterfrom
Open
Fix: deprecation message for Monolog-RCE{8, 9} and a few changes ...#218mir-hossein wants to merge 6 commits intoambionics:masterfrom
mir-hossein wants to merge 6 commits intoambionics:masterfrom
Conversation
…ets has been solved.
Collaborator
Contributor
Author
|
Hello,
class LogRecord
{
public Level $level;
public mixed $formatted;
function __construct($parameter)
{
$this->level = \Monolog\Level::Debug;
$this->formatted = $parameter;
}
}Even without the changes, the GC will work but a deprecation message will be generated in PHP >=8.2. PHP 8.1: php8.1 ./phpggc monolog/RCE8 --test-payload
Trying to deserialize payload...
SUCCESS: Payload triggered !PHP 8.4: ./phpggc monolog/RCE8 --test-payload
Trying to deserialize payload...
PHP Deprecated: Creation of dynamic property GadgetChain\Monolog\RCE8::$__test_rand_token is deprecated in /tmp/PHPGGC-monolog/phpggc/lib/PHPGGC/GadgetChain/RCE.php on line 21
PHP Deprecated: Creation of dynamic property GadgetChain\Monolog\RCE8::$__test_rand_path is deprecated in /tmp/PHPGGC-monolog/phpggc/lib/PHPGGC/GadgetChain/RCE.php on line 22
PHP Deprecated: Creation of dynamic property Monolog\LogRecord::$mixed is deprecated in /tmp/PHPGGC-monolog/phpggc/gadgetchains/Monolog/RCE/8/gadgets.php on line 18
PHP Deprecated: Creation of dynamic property Monolog\LogRecord::$mixed is deprecated in /tmp/PHPGGC-monolog/phpggc/lib/test_payload.php on line 46
SUCCESS: Payload triggered ! |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Hello,
Monolog/RCE{8,9} generated a deprecation message because of a typo.
The issue has been solved now, and a few changes have been made.
Thank you for sharing PHPGGC!