-
-
Notifications
You must be signed in to change notification settings - Fork 4
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 bypassing function and class restrictions #2
Conversation
…ion in namespace Added option to restrict creating functions and constants in global namespace Added option to restrict namespace
I probably should of created a new branch... |
Found another way to bypass function restrictions 😅 <?php
$a = [ 1 ];
// Change argument order
return array_walk( /*array*/ array: $a, /*callback*/ arg: 'intval', /*arg*/ callback: 'var_dump' ); I've added a check for the arguments name in |
@antman3351 thanks for this great PR 🚀 |
…erties Removed extra space after parameter in Printer call to defineFunction method
Hi, Thanks, |
Added Advanced configuration (SecurityManagerConfiguration) , requirements and installation to README.md
Hi @antman3351 could you fix the last Psalm issue, then I can merge the PR, I can then also tag a new 0.4 version |
Not sure if github notifies when I make a new commit. |
@antman3351 thanks, I have just merged the PR |
Hi, can you add a new tag so composer can see the version Thanks! |
Yes, I have just released https://github.com/apioo/psx-sandbox/releases/tag/v0.4.0 |
Hi, I think something went wrong, the release doesn't contain the merged code |
@antman3351 ok, sorry indeed my bad, just tagged a new version which should contain all changes |
Hey,
The sandbox can be bypassed to call any function/class like this:
Function / Class bypass by aliasing
Function bypass by declaring a function with the same name