Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

4.5.3: Function whitelist via Smarty_Security is being ignored #1029

Open
dc-ao opened this issue Jun 6, 2024 · 0 comments
Open

4.5.3: Function whitelist via Smarty_Security is being ignored #1029

dc-ao opened this issue Jun 6, 2024 · 0 comments

Comments

@dc-ao
Copy link

dc-ao commented Jun 6, 2024

Smarty_Internal_TemplateCompilerBase::compilePHPFunctionCall() checks whether the given function $name is a trusted function via $this->smarty->security_policy->isTrustedPhpFunction($name, $this).

However, in Line 661 $name is checked against a hardcoded set of function names instead of using the security policy, completely ignoring the given security policy whitelist and causing errors.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant