Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2020-27428: Remove lots of event handlers · LLK/scratch-svg-renderer@7c74ec7

A DOM-based cross-site scripting (XSS) vulnerability in Scratch-Svg-Renderer v0.2.0 allows attackers to execute arbitrary web scripts or HTML via a crafted sb3 file.

CVE
#xss#vulnerability#web#java

@@ -50,8 +50,21 @@ module.exports = function (svgString) { // Empty script tags and javascript executing svgString = svgString.replace(/<script[\s\S]*>[\s\S]*<\/script>/, ‘<script></script>’);
// Remove error handlers svgString = svgString.replace(/onerror=[\s\S]*['"].*?['"]/i, ‘’); // Remove event handlers const eventNames = [ 'onbegin’, 'onend’, 'onrepeat’, 'onabort’, 'onerror’, 'onresize’, 'onscroll’, 'onunload’, 'oncopy’, 'oncut’, 'onpaste’, 'oncancel’, 'oncanplay’, 'oncanplaythrough’, 'onchange’, 'onclick’, 'onclose’, 'oncuechange’, 'ondblclick’, 'ondrag’, 'ondragend’, 'ondragenter’, 'ondragexit’, 'ondragleave’, 'ondragover’, 'ondragstart’, 'ondrop’, 'ondurationchange’, 'onloadeddata’, 'onloadedmetadata’, 'onloadstart’, 'onmousedown’, 'onmouseenter’, 'onmouseleave’, 'onmousemove’, 'onemptied’, 'onended’, 'onerror’, 'onfocus’, 'oninput’, 'oninvalid’, 'onkeydown’, 'onkeypress’, 'onkeyup’, 'onload’, 'onmouseout’, 'onmouseover’, 'onmouseup’, 'onmousewheel’, 'onpause’, 'onplay’, 'onplaying’, 'onprogress’, 'onratechange’, 'onreset’, 'onresize’, 'onscroll’, 'onseeked’, 'onseeking’, 'onselect’, 'onshow’, 'onstalled’, 'onsubmit’, 'onsuspend’, 'ontimeupdate’, 'ontoggle’, 'onvolumechange’, 'onwaiting’, 'onactivate’, 'onfocusin’, ‘onfocusout’ ]; const eventsRegex = new RegExp(`(${eventNames.join(‘|’)})\\s*=\\s*['"].*['"]`, ‘i’); svgString = svgString.replace(eventsRegex, ‘’);
return svgString; };

CVE: Latest News

CVE-2023-50976: Transactions API Authorization by oleiman · Pull Request #14969 · redpanda-data/redpanda
CVE-2023-6905
CVE-2023-6903
CVE-2023-6904
CVE-2023-3907