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

Fixed PHP Code Gadget Chains: Doctrine/RCE1 | Horde/RCE1 | Laravel/RCE5 | PHPSecLib/RCE1 | Symfony/RCE3 | ZendFramework/RCE1 | ZendFramework/RCE4 #159

Closed
wants to merge 7 commits into from

Conversation

nowak0x01
Copy link

Hello, when attempting to utilize any of the following PHP Code Gadget Chains Doctrine/RCE1 Horde/RCE1 Laravel/RCE5 PHPSecLib/RCE1 Symfony/RCE3 ZendFramework/RCE1 ZendFramework/RCE4

The message "ERROR: Invalid arguments for type "RCE: PHP Code"" was received.
1

Generating these PHP Code gadget chains was only feasible without passing any arguments, necessitating direct editing within the PHP object.
2

The solution that proved effective was adding this code snippet to the chain.php files located at gadgetchains/{gadget}/RCE/{id}/chain.php when generating the gadgets: public static $parameters = ['code'];
3

@cfreal
Copy link
Collaborator

cfreal commented Sep 9, 2023

Hello nowak0x01,

While refactoring I forgot to add parameters to RCE\PHPCode. It is now patched. See here.

Thanks for noticing the bug !
Charles

@cfreal cfreal closed this Sep 9, 2023
ricardojba added a commit to ricardojba/poi-slinger that referenced this pull request Dec 20, 2023
# Add:
Drupal7/RCE1 (update info)
Laravel/RCE17
Laravel/RCE18
Laravel/RCE19
Laravel/RCE20
CodeIgniter4/RCE3
WordPress/RCE1
WordPress/RCE2

# Fix:
Doctrine/RCE1 | Horde/RCE1 | Laravel/RCE5 | PHPSecLib/RCE1 | Symfony/RCE3 | ZendFramework/RCE1 | ZendFramework/RCE4
# Ref: 
ambionics/phpggc#159
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.

2 participants