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
Setting the canonical config to null (using Url::current())
Capture a post request with burpsuite.
Send the post request to repeator.
Change the POST URI to: POST /<redacted>/<redacted>/<redacted>/<redacted>/deelnemen'"><svg/onload=alert()>
POST /<redacted>/<redacted>/<redacted>/<redacted>/deelnemen'"><svg/onload=alert()>
Send the request.
<link rel="canonical" href="https://<redacted>.<redacted>/<redacted>/<redacted>/<redacted>/<redacted>/deelnemen'"><svg/onload=alert()>"/>
<link rel="canonical" href="https://<redacted>.<redacted>/<redacted>/<redacted>/<redacted>/<redacted>/deelnemen'"><svg/onload=alert()>"/>
Payload triggers.
How to solve: vendor/artesaos/seotools/src/SEOTools/SEOMeta.php
vendor/artesaos/seotools/src/SEOTools/SEOMeta.php
Line: 475 return $this->canonical ?: (($canonical_config === null) ? app('url')->full() : $canonical_config);
return $this->canonical ?: (($canonical_config === null) ? app('url')->full() : $canonical_config);
Change into:
return $this->canonical ?: (($canonical_config === null) ? htmlspecialchars(app('url')->current()) : $canonical_config);
NOTE: Also look for other places where you call ap('url')->current() to sanitize the input.
The text was updated successfully, but these errors were encountered:
i use seotools for Laravel but not ideal performance :(
Sorry, something went wrong.
This has nothing to do with XSS. It would be good to review your own code if you're having bad performance.
If there is any specific issue your having with the package, feel free to open an issue.
Merge pull request #249 from J-Brk/master
b32a56c
Fixes #247 XSS in canonical tag
No branches or pull requests
What steps will reproduce the problem?
Setting the canonical config to null (using Url::current())
Capture a post request with burpsuite.
Send the post request to repeator.
Change the POST URI to:
POST /<redacted>/<redacted>/<redacted>/<redacted>/deelnemen'"><svg/onload=alert()>
Send the request.
What is the expected result?
<link rel="canonical" href="https://<redacted>.<redacted>/<redacted>/<redacted>/<redacted>/<redacted>/deelnemen'"><svg/onload=alert()>"/>
What do you get instead?
<link rel="canonical" href="https://<redacted>.<redacted>/<redacted>/<redacted>/<redacted>/<redacted>/deelnemen'"><svg/onload=alert()>"/>
Payload triggers.
Additional info
How to solve:
vendor/artesaos/seotools/src/SEOTools/SEOMeta.php
Line: 475
return $this->canonical ?: (($canonical_config === null) ? app('url')->full() : $canonical_config);
Change into:
return $this->canonical ?: (($canonical_config === null) ? htmlspecialchars(app('url')->current()) : $canonical_config);
NOTE: Also look for other places where you call ap('url')->current() to sanitize the input.
The text was updated successfully, but these errors were encountered: