Tuesday 01 December 2026 17:50:23 GMT+01:00

Netcrook

HomeManifesto
News
Techcrook
Geocrook
WikicrookTeamAppContact
EnglishItaliano

WIKICROOK

XSS

Cross-site scripting, a flaw that can make a browser run attacker-controlled script in a trusted page.

Cross-site scripting (XSS) is a web application flaw that lets attacker-controlled script run inside a trusted page in the victim’s browser. It usually happens when an application reflects, stores, or renders untrusted input without proper output encoding or sanitization, so the browser treats malicious content as part of the site.

XSS matters because the script runs with the privileges of the trusted application. An attacker may steal session cookies, read page content, perform actions as the user, or redirect the victim to a phishing page. In practice, XSS is especially dangerous in dashboards, collaboration tools, and admin consoles where a valid session can expose sensitive data or trigger privileged operations. Defenses include strict output encoding, input validation, content security policy, safe templating, and reducing the value of session tokens with HttpOnly and SameSite cookie settings.

← WIKICROOK index