-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
There is a way to bypass allowFunctions #279
Comments
The template |
Thank you for your reply. Although this is a PHP language bug, it does affect your project.
|
Oh, my gosh, I didn't know about that PHP bug. Affected are PHP 7.0-7.4 for characters |
Yeah,will |
It should be fixed. |
Good to hear that a fix was made.Sorry I disclosed this bug publicly. |
That's okay. Sandbox is a new feature and I don't think anyone has used it in real life yet. In fact, I pretty much expect there to be some bugs in it. |
Oh hey, I am interested to know in which commit was this introduced? Or which versions are affected? All before 2.10.5? |
BTW, this was assigned CVE-2021-23803. And hence I am interested to know about the above question. TIA! \o/ |
There were more sandbox issues in a last months. They're all fixed, and they are covered collectively by CVE-2022-21648 |
@dg, thanks for letting me know but I am interested in the versions these two CVEs affect of this project? Are all the versions prior to the fixed version affected? Or this only affects some versions? |
Sandbox first appeared in Latte 2.8.0 so older versions are not affected. This issue was fixed in 2.8.7 and 2.9.5 and 2.10.6. But there was one more bug in the sandbox and it is fixed in the latest versions: 2.8.8 and 2.9.6 and 2.10.8. |
Got it, thank you! Both CVE-2021-23803 and CVE-2022-21648 are unaffected for nette < 2.8.0. I'll mark the same. Thank you! \o/ |
Yes, for latte/latte |
Version: 2.10.5
Bug Description
There is a way to bypass allowFunctions that will affect security.
Steps To Reproduce
This will execute the system function.
Expected Behavior
Should throw an error not allowed by
system
functionPossible Solution
Use rigorous regular expression segmentation, or add more rigorous judgments in
isFunctionAllowed
functionThe text was updated successfully, but these errors were encountered: