Skip to content
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

Stored XSS in lib/functions.php:1519 #918

Closed
scarvell opened this issue Aug 19, 2017 · 3 comments
Closed

Stored XSS in lib/functions.php:1519 #918

scarvell opened this issue Aug 19, 2017 · 3 comments

Comments

@scarvell
Copy link

scarvell commented Aug 19, 2017

Lower risk, given that an account requires access to be able to add/edit external links to store the XSS, but line 1519 of lib/html.php isn't sanitizing $tab['title'].

print "<li><a id='" . (isset($tab['id']) ? $tab['id'] : 'maintab-anchor-' . $i) . "' class='lefttab" .(isset($tab['selected']) ? ' selected':'') . "' href='" . $tab['url'] . "'>" . $tab['title'] . "</a></li>\n";

Although the title field in external_links is a varchar(20), we can get around that restriction by creating multiple tabs and using comment blocks to keep the XSS valid:

Create the first tab with title:
<script>alert(1)/*

Create second tab with title:
*/</script>

stored xss external links

Tested against version 1.1.17

@cigamit
Copy link
Member

cigamit commented Aug 19, 2017

Agree, but we will fix it anyway.

cigamit added a commit that referenced this issue Aug 19, 2017
Minor XSS and create generalized escape function
@cigamit
Copy link
Member

cigamit commented Aug 19, 2017

Resolved.

@cigamit cigamit closed this as completed Aug 19, 2017
@fgeek
Copy link

fgeek commented Aug 22, 2017

Please use CVE-2017-12978 for this issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants