Closed antman3351 closed 9 months ago
I probably should of created a new branch... because in the mean time I've added the option to restrict creating functions and constants in the global namespace and also restrict the namespace ( if used ). I also added some more unsafe tests to prevent future regressions
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 SecurityManager->getArgumentAt()
@antman3351 thanks for this great PR 🚀
Hi, let me know if there's any other changes that need doing 😎
Thanks, Antonio
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. I fixed the Psalm error ( I think 😅 )
@antman3351 thanks, I have just merged the PR
Hi, can you add a new tag so composer can see the version
Thanks! Antonio
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