![]() |
Fix for a XSS bug in CI - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Fix for a XSS bug in CI (/showthread.php?tid=51508) |
Fix for a XSS bug in CI - El Forum - 05-07-2012 [eluser]Patrick Savalle[/eluser] It is possible to inject code into the CSRF parameter of the CI-FORMS. This code will be send back to the browser in the reply. The preg_match in the code-snippet will fix it. Put this in /system/libraries/Security.php (replace original piece of code) Code: private function _csrf_set_hash() Fix for a XSS bug in CI - El Forum - 05-07-2012 [eluser]marcogmonteiro[/eluser] Did you make a pull request with this? Fix for a XSS bug in CI - El Forum - 05-07-2012 [eluser]alexman[/eluser] We don't use git ^^ Patch: Code: Index: system/core/Security.php Fix for a XSS bug in CI - El Forum - 05-07-2012 [eluser]Patrick Savalle[/eluser] I must admit that GIT is way above my IQ. I need all my brain capacity just to understand SVN ![]() Fix for a XSS bug in CI - El Forum - 05-07-2012 [eluser]Patrick Savalle[/eluser] Ah, my collegue already replied ![]() Fix for a XSS bug in CI - El Forum - 05-07-2012 [eluser]marcogmonteiro[/eluser] if you want pm me and I can help making the pull request or I can make it myself. Fix for a XSS bug in CI - El Forum - 05-07-2012 [eluser]alexman[/eluser] I'm figuring it out as we speak, I see that github's web interface supports editing in your own fork, so I can make changes there.. Fix for a XSS bug in CI - El Forum - 05-07-2012 [eluser]alexman[/eluser] This ok? https://github.com/EllisLab/CodeIgniter/pull/1336 |