-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Fix php/base64 encoder #19376
Fix php/base64 encoder #19376
Conversation
Having things like `'abcde.chr(43).fgh'` doesn't fly, but `'abcde'.chr(43).'fgh'` does.
Thank you for this fix @jvoisin! I tested this PR in conjunction with #19377 Verified that the previous implementation generated php that did indeed not fly
With these changes the php/base64 encoder with now generates a proper payload with or without the
The handler receiving the payload generated above:
|
Release NotesThis fixes the php/base64 encoder which was previously generating php payloads that were failing when being being run due to the way single quotes were being inserted into the payload. |
A big part of the original design for this was to avoid using quotes. If we already have to quote everything for modern PHP without bareword->string conversion, this whole encoder can be greatly simplified by cutting out all of the |
That's the plan, but I prefer small commits :) |
Having things like
'abcde.chr(43).fgh'
doesn't fly in php, but'abcde'.chr(43).'fgh'
does.