Theory of Intelligence
BACKEND ENGINEERING•Security•Web Security•2.1 XSS, CSRF & CORS

2.1.1 XSS

Subtopics: XSS, CSRF and CORS.

2.1.1 XSS

Stored, reflected, or DOM XSS. <script> in a comment that you render with innerHTML.

Why it matters

Session theft, fake UI, malware. Your domain's trust is used against the user.

How it is used

Encode on output. CSP. Avoid dangerouslySetInnerHTML unless sanitized. HttpOnly cookies so stolen JS cannot read the session cookie.

Discuss theoretical concepts, mathematical formulas, and architectural foundations.

Supports inline code with `backticks`
No comments yet. Be the first to start the discussion!