We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Title generation with Phalcon\Tag is subject to XSS when used with user generated content. Automatic escaping needs to be added.
$maliciousContent = "</title><script>alert('Got your nose!');</script><title>"; $tag = \Phalcon\Di::getDefault()->getShared('tag'); $tag->prependTitle("Hello $maliciousContent!"); print $tag->getTitle();
Actual:
<title>Hello </title><script>alert('Got your nose!');</script><title>!</title>
Expected:
<title>Hello </title><script>alert('Got your nose!');</script><title>!</title>
Phalcon 2.0.8 WIN32, running on PHP 5.5.24 CLI, Windows 7 Pro x64
The text was updated successfully, but these errors were encountered:
Thanks. Fixed in 2.0.x branch.
2.0.x
Sorry, something went wrong.
No branches or pull requests
Title generation with Phalcon\Tag is subject to XSS when used with user generated content.
Automatic escaping needs to be added.
Actual:
Expected:
Phalcon 2.0.8 WIN32, running on PHP 5.5.24 CLI, Windows 7 Pro x64
The text was updated successfully, but these errors were encountered: