Skip to content

Client-side risks ​

Client-side attacks aim at your visitors' browsers rather than your servers. Spalto sits in front of the application, so it cannot run in the browser. It can shape what the browser is told (headers, cookies), watch what your pages load, and refuse requests that a browser sends from the wrong place. The risk names below are ours. For the general lists, see OWASP Top 10.

RiskWhat Spalto doesWhat it cannot do
Script injectionBlocks the payloads, reports CSP violations, hardens headersStop script that runs from a site you allow
Changed third-party scriptsWatches script hashes and alerts on changePrevent the browser from running a bad script
Cookie theft and session replayHardens cookies, seals them, binds sessionsProtect a device with malware
CSRFRefuses cross-site state changesFix actions the application triggers by GET
Clickjacking and framingAdds frame headersControl sites you allow to frame you
Header and CSP gapsShows posture, adds a header setWrite a perfect policy for you

Script injection and skimming ​

The attack. An attacker gets script into a page, either through your application (stored or reflected cross-site scripting) or through a compromised script source, and reads form fields such as card numbers or sends the visitor to another site.

What Spalto does.

  • Attack signatures and the positive model refuse script payloads in requests, so they are not stored.
  • Response headers add security headers. The strict preset adds a report-only Content Security Policy, and Collect CSP violation reports shows the origins browsers would block, before you enforce anything. Your own Content-Security-Policy is never replaced.
  • Data leaks can look for card numbers in request bodies, which shows data sent to your own paths. It does not see where a skimmer sends data in the browser.

Set it up. Turn on header protection in detect, read the Posture tab, switch on CSP reports, then enforce a preset. For details, see Response headers.

A skimmer can run without touching your servers

A script loaded from an allowed third-party site runs in the visitor's browser. The proxy never sees what that script sends elsewhere. Use the script watch below and an enforced CSP.

Changed third-party scripts ​

The attack. A script you load from another site is replaced with a malicious version, or a new script appears on a page.

What Spalto does. The script watch fetches the pages you name on a schedule, stores a SHA-256 hash of each external script and of inline scripts, and raises script.new and script.changed events. After you check new content, waap scripts confirm marks it known good. The list also shows origins that browsers reported under a report-only CSP.

Set it up. Name the pages that matter (login, checkout), turn the watch on and review the first check, which records the scripts without alerts.

What it cannot do. The watch finds changes in what the proxy can fetch. A script that serves different content to the watcher than to real visitors can evade it. It alerts, it does not stop the browser from running the script.

The attack. A script or network attacker reads a session cookie, or a stolen cookie is sent from another machine.

What Spalto does.

  • Cookie protection adds Secure, HttpOnly and SameSite where the application forgot them, and can encrypt or sign chosen cookies so the browser cannot read or change them.
  • Sessions binds a session to the network, TLS fingerprint and browser that started it and detects the same cookie arriving from a different client. You choose to log, end the session or block.
  • Response headers set HSTS so cookies travel only over HTTPS.
  • The script watch's cookie inventory shows which cookies lack flags.

What it cannot do. A visitor whose device has malware gives the attacker the same network, browser and fingerprint. Binding raises the cost of replay. It does not prevent it entirely.

Cross-site request forgery ​

The attack. A page on another site makes the visitor's browser send a state-changing request to your application, using the visitor's logged-in session.

What Spalto does. CSRF protection refuses POST, PUT, PATCH and DELETE sent by a browser from another site, lets trusted origins and unchecked paths through, and can add form tokens in block mode. CORS rules control which sites may call the application, and you can test a request before enforcing. Cookies with SameSite (Cookie protection) add a browser-side layer.

What it cannot do. Requests without browser headers (API clients) are not treated as cross-site by design. State changes made by GET requests are outside CSRF protection: fix them in the application.

Clickjacking and framing ​

The attack. Another site frames your page invisibly and tricks a visitor into clicking.

What Spalto does. The baseline preset of response headers adds X-Frame-Options on HTML, unless the page's CSP already has frame-ancestors. You can add your own headers for a different policy.

What it cannot do. The proxy does not decide which partner sites may frame you. Choose that in your header entries.

Header and CSP gaps ​

The attack. Missing headers make other attacks easier: content sniffing, referrer leaks, cross-window access.

What Spalto does. Response headers show which headers each content type carries and in what share of answers (the Posture tab), add a preset (baseline, strict), remove version headers and let you add your own headers and HSTS.

What it cannot do. Pick the policy that fits your pages. A CSP that is too tight breaks them. Start from the report-only policy and the collected reports.