blob: 9e3b230e76c804277e8ec0e466d1c142ab722998 [file] [log] [blame]
function pug_attr(t,e,n,f){return e!==!1&&null!=e&&(e||"class"!==t&&"style"!==t)?e===!0?" "+(f?t:t+'="'+t+'"'):("function"==typeof e.toJSON&&(e=e.toJSON()),"string"==typeof e||(e=JSON.stringify(e),n||e.indexOf('"')===-1)?(n&&(e=pug_escape(e))," "+t+'="'+e+'"'):" "+t+"='"+e.replace(/'/g,"&#39;")+"'"):""}function pug_escape(e){var a=""+e,t=pug_match_html.exec(a);if(!t)return e;var r,c,n,s="";for(r=t.index,c=0;r<a.length;r++){switch(a.charCodeAt(r)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}c!==r&&(s+=a.substring(c,r)),c=r+1,s+=n}return c!==r?s+a.substring(c,r):s}var pug_match_html=/["&<>]/;function advisoryTemplate(locals){var pug_html="",pug_mixins={},pug_interp;var locals_for_with=locals||{};(function(textUtil){pug_mixins["para"]=pug_interp=function(t){var block=this&&this.block,attributes=this&&this.attributes||{};if(t){(function(){var $$obj=t.split(/\n/);if("number"==typeof $$obj.length){for(var pug_index0=0,$$l=$$obj.length;pug_index0<$$l;pug_index0++){var line=$$obj[pug_index0];if(line){if(line.startsWith(" ")){pug_html=pug_html+"<code>"+pug_escape(null==(pug_interp=line)?"":pug_interp)+"</code><br/>"}else{pug_html=pug_html+"<p>"+pug_escape(null==(pug_interp=line)?"":pug_interp)+"</p>"}}}}else{var $$l=0;for(var pug_index0 in $$obj){$$l++;var line=$$obj[pug_index0];if(line){if(line.startsWith(" ")){pug_html=pug_html+"<code>"+pug_escape(null==(pug_interp=line)?"":pug_interp)+"</code><br/>"}else{pug_html=pug_html+"<p>"+pug_escape(null==(pug_interp=line)?"":pug_interp)+"</p>"}}}}}).call(this)}};pug_mixins["page"]=pug_interp=function(cve){var block=this&&this.block,attributes=this&&this.attributes||{};var cveid=cve.CVE_data_meta.ID.match(/^CVE-[0-9-]+$/)?cve.CVE_data_meta.ID:"CVE-yyyy-nnnn";pug_html=pug_html+"<h2>"+pug_escape(null==(pug_interp=cve.CVE_data_meta.TITLE+" ("+cveid+")")?"":pug_interp)+"</h2><h4>PRODUCT AFFECTED:</h4><p>"+pug_escape(null==(pug_interp=textUtil.getProductAffected(cve))?"":pug_interp)+"</p><h4>PROBLEM:</h4>";(function(){var $$obj=cve.description.description_data;if("number"==typeof $$obj.length){for(var pug_index1=0,$$l=$$obj.length;pug_index1<$$l;pug_index1++){var d=$$obj[pug_index1];pug_mixins["para"](d.value)}}else{var $$l=0;for(var pug_index1 in $$obj){$$l++;var d=$$obj[pug_index1];pug_mixins["para"](d.value)}}}).call(this);if(cve.configuration){(function(){var $$obj=cve.configuration;if("number"==typeof $$obj.length){for(var pug_index2=0,$$l=$$obj.length;pug_index2<$$l;pug_index2++){var c=$$obj[pug_index2];pug_mixins["para"](c.value)}}else{var $$l=0;for(var pug_index2 in $$obj){$$l++;var c=$$obj[pug_index2];pug_mixins["para"](c.value)}}}).call(this)}if(cve.exploit){pug_mixins["para"](cve.exploit)}pug_html=pug_html+"<p>This issue has been assigned <a"+pug_attr("href","http://cve.mitre.org/cgi-bin/cvename.cgi?name="+cveid,true,false)+">"+pug_escape(null==(pug_interp=cveid)?"":pug_interp)+"</a>.</p><h4>SOLUTION:</h4>";pug_mixins["para"](cve.solution);pug_html=pug_html+"<h4>WORKAROUND:</h4>";if(cve.work_around){(function(){var $$obj=cve.work_around;if("number"==typeof $$obj.length){for(var pug_index3=0,$$l=$$obj.length;pug_index3<$$l;pug_index3++){var w=$$obj[pug_index3];pug_mixins["para"](w.value)}}else{var $$l=0;for(var pug_index3 in $$obj){$$l++;var w=$$obj[pug_index3];pug_mixins["para"](w.value)}}}).call(this)}pug_html=pug_html+"<h4>MODIFICATION HISTORY:</h4><p><ul><li>"+pug_escape(null==(pug_interp=cve.CVE_data_meta.DATE_PUBLIC+": Initial Publication.")?"":pug_interp)+"</li></ul></p><h4>RELATED LINKS:</h4><ul>";if(cve.CVE_data_meta.ID){pug_html=pug_html+"<li><a"+pug_attr("href","http://cve.mitre.org/cgi-bin/cvename.cgi?name="+cveid,true,false)+">"+pug_escape(null==(pug_interp=cveid+" at cve.mitre.org")?"":pug_interp)+"</a></li>"}(function(){var $$obj=cve.references.reference_data;if("number"==typeof $$obj.length){for(var pug_index4=0,$$l=$$obj.length;pug_index4<$$l;pug_index4++){var r=$$obj[pug_index4];pug_html=pug_html+"<li><a"+pug_attr("href",r.url,true,false)+">"+pug_escape(null==(pug_interp=r.url)?"":pug_interp)+"</a></li>"}}else{var $$l=0;for(var pug_index4 in $$obj){$$l++;var r=$$obj[pug_index4];pug_html=pug_html+"<li><a"+pug_attr("href",r.url,true,false)+">"+pug_escape(null==(pug_interp=r.url)?"":pug_interp)+"</a></li>"}}}).call(this);pug_html=pug_html+"</ul><h4>CVSS SCORE:</h4>";if(cve.impact&&cve.impact.cvss){pug_html=pug_html+"<p>";if(cve.impact.cvss.baseScore>=0){pug_html=pug_html+pug_escape(null==(pug_interp=cve.impact.cvss.baseScore)?"":pug_interp)}if(cve.impact.cvss.vectorString){pug_html=pug_html+" (<a"+pug_attr("href","https://cvssjs.github.io/#"+cve.impact.cvss.vectorString,true,false)+">"+pug_escape(null==(pug_interp=cve.impact.cvss.vectorString)?"":pug_interp)+"</a>)"}pug_html=pug_html+"</p>";if(cve.impact.cvss.baseSeverity){pug_html=pug_html+"<h4>RISK LEVEL:</h4><p>"+pug_escape(null==(pug_interp=cve.impact.cvss.baseSeverity)?"":pug_interp)+"</p>"}}if(cve.credit&&cve.credit.length>0){pug_html=pug_html+"<h4>ACKNOWLEDGEMENTS:</h4><ul>";(function(){var $$obj=cve.credit;if("number"==typeof $$obj.length){for(var pug_index5=0,$$l=$$obj.length;pug_index5<$$l;pug_index5++){var c=$$obj[pug_index5];pug_html=pug_html+"<li>"+pug_escape(null==(pug_interp=c)?"":pug_interp)+"</li>"}}else{var $$l=0;for(var pug_index5 in $$obj){$$l++;var c=$$obj[pug_index5];pug_html=pug_html+"<li>"+pug_escape(null==(pug_interp=c)?"":pug_interp)+"</li>"}}}).call(this);pug_html=pug_html+"</ul>"}};pug_mixins["page"](locals)}).call(this,"textUtil"in locals_for_with?locals_for_with.textUtil:typeof textUtil!=="undefined"?textUtil:undefined);return pug_html}function pug_attr(t,e,n,f){return e!==!1&&null!=e&&(e||"class"!==t&&"style"!==t)?e===!0?" "+(f?t:t+'="'+t+'"'):("function"==typeof e.toJSON&&(e=e.toJSON()),"string"==typeof e||(e=JSON.stringify(e),n||e.indexOf('"')===-1)?(n&&(e=pug_escape(e))," "+t+'="'+e+'"'):" "+t+"='"+e.replace(/'/g,"&#39;")+"'"):""}function pug_escape(e){var a=""+e,t=pug_match_html.exec(a);if(!t)return e;var r,c,n,s="";for(r=t.index,c=0;r<a.length;r++){switch(a.charCodeAt(r)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}c!==r&&(s+=a.substring(c,r)),c=r+1,s+=n}return c!==r?s+a.substring(c,r):s}var pug_match_html=/["&<>]/;function mitrewebTemplate(locals){var pug_html="",pug_mixins={},pug_interp;pug_mixins["page"]=pug_interp=function(cve){var block=this&&this.block,attributes=this&&this.attributes||{};pug_html=pug_html+'<h2>MITRE CVE entry preview</h2><div id="GeneratedTable"><table cellpadding="0" cellspacing="0" border="0"><tbody><tr><th colspan="2">CVE-ID</th></tr><tr><td nowrap="nowrap"><h2>'+pug_escape(null==(pug_interp=cve.CVE_data_meta.ID)?"":pug_interp)+'</h2></td><td class="ltgreybackground"><div class="larger"><a>Learn more at National Vulnerability Database (NVD)</a></div><div class="smaller">• Severity Rating • Fix Information • Vulnerable Software Versions • SCAP Mappings</div></td></tr><tr><th colspan="2">Description</th></tr><tr><td colspan="2">';(function(){var $$obj=cve.description.description_data;if("number"==typeof $$obj.length){for(var pug_index0=0,$$l=$$obj.length;pug_index0<$$l;pug_index0++){var d=$$obj[pug_index0];pug_html=pug_html+(pug_escape(null==(pug_interp=d.value)?"":pug_interp)+pug_escape(null==(pug_interp=" ")?"":pug_interp))}}else{var $$l=0;for(var pug_index0 in $$obj){$$l++;var d=$$obj[pug_index0];pug_html=pug_html+(pug_escape(null==(pug_interp=d.value)?"":pug_interp)+pug_escape(null==(pug_interp=" ")?"":pug_interp))}}}).call(this);pug_html=pug_html+'</td></tr><tr><th colspan="2">References</th></tr><tr><td class="note" colspan="2"><b>Note: </b><a>References</a> are provided for the convenience of the reader to help distinguish between vulnerabilities. The list is not intended to be complete.</td></tr><tr><td colspan="2"><ul>';(function(){var $$obj=cve.references.reference_data;if("number"==typeof $$obj.length){for(var pug_index1=0,$$l=$$obj.length;pug_index1<$$l;pug_index1++){var r=$$obj[pug_index1];pug_html=pug_html+"<li><a"+(' target="_blank"'+pug_attr("href",r.url,true,false))+">"+pug_escape(null==(pug_interp=r.url)?"":pug_interp)+"</a></li>"}}else{var $$l=0;for(var pug_index1 in $$obj){$$l++;var r=$$obj[pug_index1];pug_html=pug_html+"<li><a"+(' target="_blank"'+pug_attr("href",r.url,true,false))+">"+pug_escape(null==(pug_interp=r.url)?"":pug_interp)+"</a></li>"}}}).call(this);pug_html=pug_html+'</ul></td></tr><tr><th colspan="2">Assigning CNA</th></tr><tr><td colspan="2">'+pug_escape(null==(pug_interp=cve.CVE_data_meta.ASSIGNER)?"":pug_interp)+' (MITRE uses CNA name instead of email address)</td></tr><tr><th colspan="2">Date Entry Created</th></tr><tr><td><b>YYYYMMDD</b></td><td class="ltgreybackground">Disclaimer: The entry creation date may reflect when the CVE-ID was allocated or reserved, and does not necessarily indicate when this vulnerability was discovered, shared with the affected vendor, publicly disclosed, or updated in CVE.</td></tr></tbody></table></div>'};pug_mixins["page"](locals);return pug_html}