{"id":17518,"date":"2021-11-30T13:10:02","date_gmt":"2021-11-30T12:10:02","guid":{"rendered":"https:\/\/herolab.usd.de\/?page_id=17518"},"modified":"2021-12-01T08:54:54","modified_gmt":"2021-12-01T07:54:54","slug":"usd-2021-0032","status":"publish","type":"page","link":"https:\/\/herolab.usd.de\/en\/security-advisories\/usd-2021-0032\/","title":{"rendered":"usd-2021-0032"},"content":{"rendered":"\n\n\n[et_pb_section fb_built=\"1\" _builder_version=\"4.9.4\" _module_preset=\"default\" background_color=\"#2E353D\" custom_padding=\"||0px|||\" global_colors_info=\"{}\"][et_pb_row _builder_version=\"4.9.4\" _module_preset=\"default\" global_colors_info=\"{}\"][et_pb_column type=\"4_4\" _builder_version=\"4.9.4\" _module_preset=\"default\" global_colors_info=\"{}\"][et_pb_text _builder_version=\"4.9.4\" _module_preset=\"cc5ac6f4-ebbd-4b3f-bc92-4dfc1f15fe2c\" global_colors_info=\"{}\"]<h1>usd-2021-0032 |\u00a0SUSE CVE Database (suse.com)<\/h1>\n<p><strong>Advisory ID<\/strong>: usd-2021-0032<br \/><strong>Affected Product<\/strong>: SUSE CVE database\u00a0<br \/><strong>Vulnerability Type<\/strong>: <span>CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')<\/span><br \/><strong>Security Risk<\/strong>: High<br \/><strong>Vendor URL<\/strong>: <a href=\"https:\/\/www.suse.com\/security\/cve\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.suse.com\/security\/cve\/<\/a> <a href=\"https:\/\/www.microsoft.com\/\" target=\"_blank\" rel=\"noopener\">\u00a0<\/a><br \/><strong>Vendor Status<\/strong>: Fixed<em><\/em><\/p>\n<p><span><\/span><\/p>\n<h3>Description<\/h3>\n<p>Suse's CVE database <span>embedded<\/span> third-party contents without sufficient filtering and\/or encoding. Multiple incidents have been identified where Suse embedded untrusted <strong>&lt;script&gt;<\/strong>\u00a0tags, resulting in stored Cross-Site-Scripting (XSS).<\/p>\n<p>SUSE's CVE database is a website which displays information on public CVEs. The description part of CVE records is included into the website without filtering or escaping of the respective content. A malicious actor could have\u00a0 included JavaScript code in the description text of a CVE. This code would then have been included within a page of the SUSE CVE database and could have been be misused for a stored cross-site scripting attack.<\/p>\n<p><span><\/span><\/p>\n<h3>Proof of Concept (PoC)<\/h3>\n<p>In order to exploit the vulnerability, a new CVE record must be published officially. This CVE record can contain arbitrary text as a \"description\". Here, JavaScript code can injected. The SUSE CVE database imports this data automatically and displays the information on a website. The injected code will be executed automatically.<\/p>\n<p>An example CVE containing an HTML <strong>&lt;script&gt;<\/strong>\u00a0tag is <em>CVE-2021-32718<\/em> (<a href=\"https:\/\/www.suse.com\/security\/cve\/CVE-2021-32718.html\" target=\"_blank\" rel=\"noopener\">https:\/\/www.suse.com\/security\/cve\/CVE-2021-32718.html<\/a>). Here, the HTML tag was interpreted and potentially malicious JavaScript code which could follow here would have been executed.\u00a0<\/p>\n<p>The following screenshots illustrate that the <strong>&lt;script&gt; <\/strong>tag is embedded without any encoding or filtering and interpreted as markup by the browser accordingly:\u00a0<\/p>[\/et_pb_text][et_pb_image src=\"https:\/\/herolab.usd.de\/wp-content\/uploads\/sites\/9\/2021\/11\/suse_xss1.png\" title_text=\"suse_xss1\" _builder_version=\"4.13.1\" _module_preset=\"default\" global_colors_info=\"{}\"][\/et_pb_image][et_pb_image src=\"https:\/\/herolab.usd.de\/wp-content\/uploads\/sites\/9\/2021\/11\/suse_xss4.png\" title_text=\"suse_xss4\" _builder_version=\"4.13.1\" _module_preset=\"default\" global_colors_info=\"{}\"][\/et_pb_image][et_pb_text _builder_version=\"4.9.4\" _module_preset=\"cc5ac6f4-ebbd-4b3f-bc92-4dfc1f15fe2c\" global_colors_info=\"{}\"]<div class=\"e16902-22 x-container max width\">\n<div class=\"e16902-23 x-column x-sm x-1-1\">\n<h3>Fix<\/h3>\n<p>It is recommended to treat all input on the website as potentially dangerous. Hence, all output that is dynamically generated based on user-controlled data should be encoded according to its context. The majority of programming languages supports standard procedures for encoding meta characters.<\/p>\n<h3><\/h3>\n<h3>References<\/h3>\n<ul>\n<li><a href=\"https:\/\/cwe.mitre.org\/data\/definitions\/79.html\" target=\"_blank\" rel=\"noopener\">https:\/\/cwe.mitre.org\/data\/definitions\/79.html<\/a>\u00a0<\/li>\n<li><a href=\"https:\/\/owasp.org\/www-community\/attacks\/xss\/\" target=\"_blank\" rel=\"noopener\">https:\/\/owasp.org\/www-community\/attacks\/xss\/<\/a>\u00a0<\/li>\n<\/ul>\n<h3>Timeline<\/h3>\n<ul>\n<li>\n<p data-pm-slice=\"1 1 []\">2021-11-10: The vulnerability is identified by Christian Rellmann.<\/p>\n<\/li>\n<li>\n<p data-pm-slice=\"1 1 []\">2021-11-10: The vulnerability is submitted via e-mail to <a href=\"mailto:security@suse.com\">security@suse.com<\/a> and <a href=\"mailto:security@suse.de\">security@suse.de<\/a> at 15:09 CET.<\/p>\n<\/li>\n<li>2021-11-10: Suse acknowledges vulnerability and informs us that a fix was deployed at 17:06 CET.<\/li>\n<li>2021-11-30: Security advisory released by usd AG.<\/li>\n<\/ul>\n<h3><\/h3>\n<h3>Credits<\/h3>\n<p>This security vulnerability was found by Christian Rellmann of usd AG.<\/p>\n<\/div>\n<\/div>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]\n\n\n","protected":false},"excerpt":{"rendered":"<p>usd-2021-0032 |\u00a0SUSE CVE Database (suse.com) Advisory ID: usd-2021-0032Affected Product: SUSE CVE database\u00a0Vulnerability Type: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')Security Risk: HighVendor URL: https:\/\/www.suse.com\/security\/cve\/ \u00a0Vendor Status: Fixed Description Suse's CVE database embedded third-party contents without sufficient filtering and\/or encoding. Multiple incidents have been identified where Suse embedded untrusted &lt;script&gt;\u00a0tags, resulting in [&hellip;]<\/p>\n","protected":false},"author":96,"featured_media":0,"parent":16124,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","inline_featured_image":false,"footnotes":""},"class_list":["post-17518","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/pages\/17518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/users\/96"}],"replies":[{"embeddable":true,"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/comments?post=17518"}],"version-history":[{"count":0,"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/pages\/17518\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/pages\/16124"}],"wp:attachment":[{"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/media?parent=17518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}