mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-08-17 19:35:42 +02:00
Merge pull request #1488 from dmchaledev/vuln_render_fix
#1476-#1480-#1487 Fix, setting fallback for Nuclei variable and fixing JS errors in Vulnerabilities page
This commit is contained in:
@@ -3671,7 +3671,7 @@ def parse_nuclei_result(line):
|
||||
'type': line['type'],
|
||||
'severity': NUCLEI_SEVERITY_MAP[line['info'].get('severity', 'unknown')],
|
||||
'template': line['template'],
|
||||
'template_url': line['template-url'],
|
||||
'template_url': line.get('template-url', []),
|
||||
'template_id': line['template-id'],
|
||||
'description': line['info'].get('description', ''),
|
||||
'matcher_name': line.get('matcher-name', ''),
|
||||
|
||||
@@ -1752,18 +1752,18 @@ $(document).ready(function() {
|
||||
const encodedURLData = htmlEncode(data);
|
||||
|
||||
if (data.toLowerCase().startsWith('http')) {
|
||||
return `<a href="${encodedData}"
|
||||
return `<a href="${encodedURLData}"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="text-danger">
|
||||
${split_into_lines(encodedData, 150)}
|
||||
${split_into_lines(encodedURLData, 150)}
|
||||
</a>`;
|
||||
}
|
||||
}
|
||||
return htmlEncode(data || '');
|
||||
},
|
||||
"targets": 11,
|
||||
}
|
||||
},
|
||||
{
|
||||
"render": function ( data, type, row ) {
|
||||
if (data){
|
||||
|
||||
@@ -199,18 +199,18 @@ $(document).ready(function() {
|
||||
const encodedURLData = htmlEncode(data);
|
||||
|
||||
if (data.toLowerCase().startsWith('http')) {
|
||||
return `<a href="${encodedData}"
|
||||
return `<a href="${encodedURLData}"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="text-danger">
|
||||
${split_into_lines(encodedData, 150)}
|
||||
${split_into_lines(encodedURLData, 150)}
|
||||
</a>`;
|
||||
}
|
||||
}
|
||||
return htmlEncode(data || '');
|
||||
},
|
||||
"targets": 11,
|
||||
}
|
||||
},
|
||||
{
|
||||
"render": function ( data, type, row ) {
|
||||
if (data){
|
||||
|
||||
@@ -1512,18 +1512,18 @@ $(document).ready(function(){
|
||||
const encodedURLData = htmlEncode(data);
|
||||
|
||||
if (data.toLowerCase().startsWith('http')) {
|
||||
return `<a href="${encodedData}"
|
||||
return `<a href="${encodedURLData}"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="text-danger">
|
||||
${split_into_lines(encodedData, 150)}
|
||||
${split_into_lines(encodedURLData, 150)}
|
||||
</a>`;
|
||||
}
|
||||
}
|
||||
return htmlEncode(data || '');
|
||||
},
|
||||
"targets": 11,
|
||||
}
|
||||
},
|
||||
{
|
||||
"render": function(data, type, row) {
|
||||
if (data) {
|
||||
|
||||
Reference in New Issue
Block a user