Closed (fixed)
Project:
Easy Breadcrumb
Version:
7.x-1.17
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
24 Sep 2012 at 18:58 UTC
Updated:
16 Oct 2012 at 02:12 UTC
Jump to comment: Most recent
In this file: easy_breadcrumb.blocks.inc
There is this php code:
$breadcrumb[] = '<span class="' . $classes . '">' . $segment_text . '</span>';
If a user goes to a page that doesn't exist, and if JS or HTML is included in the url, it will print this code straight onto the page. It should be updated to this:
$breadcrumb[] = '<span class="' . $classes . '">' . htmlspecialchars($segment_text) . '</span>';
We ran into this issue trying to get PCI compliance on a site that uses this module.
Comments
Comment #1
sonemonu commentedCorrected in 7.x-1.17. Thanks!
Comment #2
Pierco commentedI don't think it's enough because I can still execute some javascript with
something/something<img src="test.png" onload="alert()">/somethingusing 7.x-2.9