Thursday 03 December 2026 19:56:55 GMT+01:00

Netcrook

HomeManifesto
News
Techcrook
Geocrook
WikicrookTeamAppContact
EnglishItaliano

WIKICROOK

JavaScript injection

The unauthorized insertion of script code into a page to alter content or capture data.

JavaScript injection is the unauthorized insertion of script code into a web page so it can change what users see, steal data, or perform actions in the browser. Unlike server-side compromise, this attack abuses the trust a page already has in the victim’s browser.

It matters because injected scripts can read form fields, rewrite checkout pages, send data to attacker-controlled endpoints, or trigger web skimming. Defenders look for untrusted input being rendered as code, weak output encoding, missing sanitization, and overly permissive Content Security Policy settings. Common defenses include strict validation, escaping, templating that separates data from code, and CSP rules that block unexpected scripts.

← WIKICROOK index