disabled checkout be negative analysi - Follow Up Deployment
Browse files- index.html +60 -35
index.html
CHANGED
|
@@ -122,15 +122,9 @@
|
|
| 122 |
<h3 class="text-xl font-semibold">Threat Level</h3>
|
| 123 |
<span id="threat-badge" class="ml-4 px-3 py-1 rounded-full text-sm font-bold"></span>
|
| 124 |
</div>
|
| 125 |
-
<div
|
| 126 |
-
<
|
| 127 |
-
|
| 128 |
-
<p id="scan-domain" class="text-gray-600"></p>
|
| 129 |
-
</div>
|
| 130 |
-
<div>
|
| 131 |
-
<h4 class="font-medium text-gray-700 mb-2">Server Location</h4>
|
| 132 |
-
<p id="server-location" class="text-gray-600"></p>
|
| 133 |
-
</div>
|
| 134 |
</div>
|
| 135 |
</div>
|
| 136 |
|
|
@@ -454,8 +448,6 @@
|
|
| 454 |
|
| 455 |
// Set scan metadata
|
| 456 |
document.getElementById('scan-domain').textContent = url;
|
| 457 |
-
const locations = ['US East', 'US West', 'Europe', 'Asia'];
|
| 458 |
-
document.getElementById('server-location').textContent = locations[Math.floor(Math.random() * locations.length)];
|
| 459 |
|
| 460 |
// Set threat level
|
| 461 |
document.getElementById('threat-level').className = `mb-8 p-6 rounded-lg shadow-md ${threatIndex === 0 ? 'bg-green-50' : threatIndex === 1 ? 'bg-yellow-50' : 'bg-red-50'}`;
|
|
@@ -498,11 +490,22 @@
|
|
| 498 |
malwareEffects.innerHTML = '';
|
| 499 |
|
| 500 |
const effectsList = [
|
| 501 |
-
'
|
| 502 |
-
'Broken
|
| 503 |
-
'
|
| 504 |
-
'
|
| 505 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 506 |
];
|
| 507 |
|
| 508 |
const effects = isBurghmade ? [] : [
|
|
@@ -529,32 +532,54 @@
|
|
| 529 |
const recommendations = document.getElementById('recommendations').querySelector('div');
|
| 530 |
recommendations.innerHTML = '';
|
| 531 |
|
| 532 |
-
const
|
| 533 |
-
|
| 534 |
-
|
| 535 |
-
|
| 536 |
-
|
| 537 |
-
|
| 538 |
-
|
| 539 |
-
|
| 540 |
-
|
| 541 |
-
|
| 542 |
-
|
| 543 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 544 |
] : [
|
| 545 |
-
|
| 546 |
-
|
| 547 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 548 |
];
|
| 549 |
|
| 550 |
recs.forEach(rec => {
|
| 551 |
const div = document.createElement('div');
|
| 552 |
-
div.className = 'flex items-start';
|
| 553 |
div.innerHTML = `
|
| 554 |
-
<i class="fas fa-check-circle text-blue-500 mt-1 mr-3"></i>
|
| 555 |
<div>
|
| 556 |
-
<h4 class="font-medium">${rec}</h4>
|
| 557 |
-
<p class="text-
|
|
|
|
| 558 |
</div>
|
| 559 |
`;
|
| 560 |
recommendations.appendChild(div);
|
|
|
|
| 122 |
<h3 class="text-xl font-semibold">Threat Level</h3>
|
| 123 |
<span id="threat-badge" class="ml-4 px-3 py-1 rounded-full text-sm font-bold"></span>
|
| 124 |
</div>
|
| 125 |
+
<div>
|
| 126 |
+
<h4 class="font-medium text-gray-700 mb-2">Domain</h4>
|
| 127 |
+
<p id="scan-domain" class="text-gray-600"></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
</div>
|
| 129 |
</div>
|
| 130 |
|
|
|
|
| 448 |
|
| 449 |
// Set scan metadata
|
| 450 |
document.getElementById('scan-domain').textContent = url;
|
|
|
|
|
|
|
| 451 |
|
| 452 |
// Set threat level
|
| 453 |
document.getElementById('threat-level').className = `mb-8 p-6 rounded-lg shadow-md ${threatIndex === 0 ? 'bg-green-50' : threatIndex === 1 ? 'bg-yellow-50' : 'bg-red-50'}`;
|
|
|
|
| 490 |
malwareEffects.innerHTML = '';
|
| 491 |
|
| 492 |
const effectsList = [
|
| 493 |
+
'Checkout Process Hijacking',
|
| 494 |
+
'Broken Shopify Script Tags',
|
| 495 |
+
'Compromised Liquid Templates',
|
| 496 |
+
'Malicious Shopify App Injection',
|
| 497 |
+
'Cart Functionality Tampering',
|
| 498 |
+
'Product Page Redirects',
|
| 499 |
+
'Stolen Customer Data',
|
| 500 |
+
'Fake Discount Code Injection',
|
| 501 |
+
'Broken Theme Customizer',
|
| 502 |
+
'Admin API Abuse',
|
| 503 |
+
'Fake Shipping Rate Calculator',
|
| 504 |
+
'Broken Inventory Management',
|
| 505 |
+
'Order Fulfillment Interception',
|
| 506 |
+
'Gift Card Drain Vulnerability',
|
| 507 |
+
'Theme File Corruption',
|
| 508 |
+
'Disabled Checkout Functionality'
|
| 509 |
];
|
| 510 |
|
| 511 |
const effects = isBurghmade ? [] : [
|
|
|
|
| 532 |
const recommendations = document.getElementById('recommendations').querySelector('div');
|
| 533 |
recommendations.innerHTML = '';
|
| 534 |
|
| 535 |
+
const recs = isBurghmade ? [
|
| 536 |
+
{
|
| 537 |
+
title: 'Option 1 - Temporary Fix',
|
| 538 |
+
description: 'Quick malware containment using antivirus sync and SSL checks',
|
| 539 |
+
priority: 'High'
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
title: 'Option 2 - Permanent Fix',
|
| 543 |
+
description: 'Full system hardening for long-term protection and threat prevention',
|
| 544 |
+
priority: 'Critical'
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
title: 'Option 3 - Theme Upgrade',
|
| 548 |
+
description: 'Upgrade to a premium developers theme with built-in security features',
|
| 549 |
+
priority: 'High'
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
title: 'Additional Action Required',
|
| 553 |
+
description: 'Multiple Shopify-specific vulnerabilities detected requiring immediate attention',
|
| 554 |
+
priority: 'Critical'
|
| 555 |
+
}
|
| 556 |
] : [
|
| 557 |
+
{
|
| 558 |
+
title: 'Option 1 - Temporary Fix',
|
| 559 |
+
description: 'Quick malware containment using antivirus sync and SSL checks',
|
| 560 |
+
priority: 'High'
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
title: 'Option 2 - Permanent Fix',
|
| 564 |
+
description: 'Full system hardening for long-term protection and threat prevention',
|
| 565 |
+
priority: 'Critical'
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
title: 'Option 3 - Theme Upgrade',
|
| 569 |
+
description: 'Upgrade to a premium developers theme with built-in security features',
|
| 570 |
+
priority: 'High'
|
| 571 |
+
}
|
| 572 |
];
|
| 573 |
|
| 574 |
recs.forEach(rec => {
|
| 575 |
const div = document.createElement('div');
|
| 576 |
+
div.className = 'flex items-start mb-4';
|
| 577 |
div.innerHTML = `
|
| 578 |
+
<i class="fas ${rec.priority === 'Critical' ? 'fa-exclamation-triangle text-red-500' : 'fa-check-circle text-blue-500'} mt-1 mr-3"></i>
|
| 579 |
<div>
|
| 580 |
+
<h4 class="font-medium">${rec.title}</h4>
|
| 581 |
+
<p class="text-gray-600">${rec.description}</p>
|
| 582 |
+
<p class="text-sm ${rec.priority === 'Critical' ? 'text-red-500' : 'text-gray-500'} mt-1">Priority: ${rec.priority}</p>
|
| 583 |
</div>
|
| 584 |
`;
|
| 585 |
recommendations.appendChild(div);
|