Skip to content

Fix LMS-530: Reflected XSS in chapter and page numbers - #323

Merged
nedbat merged 4 commits into
masterfrom
ned/fix-lms-530
Jul 3, 2013
Merged

nedbat merged 4 commits into
masterfrom
ned/fix-lms-530

Conversation

@nedbat

@nedbat nedbat commented Jul 2, 2013

Copy link
Copy Markdown
Contributor

The urls.py change is already pushed to production, but that doesn't mean we can't talk about better ways to do it.

@gwprice @jzoldak Thoughts?

nedbat added 2 commits July 2, 2013 13:29
Limit the page and chapter numbers to digits, to keep malicious URL
components from being inserted onto the page.
@gwprice

gwprice commented Jul 2, 2013

Copy link
Copy Markdown

Though it no longer represents a vulnerability, the part of the template that renders the page parameter should be escaped to avoid future problems. Also, there are eight changes to urls.py but only three new test cases, which suggests insufficient coverage.

@nedbat

nedbat commented Jul 3, 2013

Copy link
Copy Markdown
Contributor Author

@gwprice OK, I lied: I wrote more tests.

@wedaly

wedaly commented Jul 3, 2013

Copy link
Copy Markdown
Contributor

👍

nedbat added a commit that referenced this pull request Jul 3, 2013
Fix LMS-530: Reflected XSS in chapter and page numbers
@nedbat
nedbat merged commit a453de2 into master Jul 3, 2013
@nedbat
nedbat deleted the ned/fix-lms-530 branch July 3, 2013 19:28
chrisrossi pushed a commit to jazkarta/edx-platform that referenced this pull request Mar 31, 2014
antoviaque referenced this pull request in open-craft/openedx-platform Dec 9, 2014
kawaguchi-ks added a commit to nttks/edx-platform that referenced this pull request Oct 6, 2015
diegomillan referenced this pull request in eduNEXT/edx-platform Sep 14, 2016
…text

Use string representation for dates
Danyal-Faheem pushed a commit to Danyal-Faheem/edx-platform that referenced this pull request Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants