Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a guide page on XSS #36412

Merged
merged 34 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
e93facd
Attacks index plus XSS guide
wbamberg Oct 19, 2024
89ce9d2
Typo
wbamberg Oct 20, 2024
e1de7e1
More details on XSS example
wbamberg Oct 20, 2024
16c7c39
cllient and server side attacks
wbamberg Nov 7, 2024
1ff7634
Merge branch 'main' into xss-guide
wbamberg Nov 20, 2024
f748a7e
updates
wbamberg Nov 27, 2024
bc9d568
Merge remote-tracking branch 'origin/xss-guide' into xss-guide
wbamberg Nov 27, 2024
d766304
Update png
wbamberg Nov 27, 2024
98d8c46
Updates...
wbamberg Nov 27, 2024
d1cc8a6
Add a section on CSP
wbamberg Nov 27, 2024
7b22817
Apply suggestions from code review (the easy ones)
wbamberg Dec 3, 2024
cc94a7b
Update files/en-us/web/security/attacks/xss/index.md
wbamberg Dec 3, 2024
aa93ef1
Update files/en-us/web/security/attacks/xss/index.md
wbamberg Dec 3, 2024
24055ee
Explain that real attack code would be different
wbamberg Dec 3, 2024
0c3e5bc
Gentler into about contexts
wbamberg Dec 3, 2024
eb795dc
Updates to contexts stuff
wbamberg Dec 3, 2024
dfdd004
Yet more updates to contexts
wbamberg Dec 3, 2024
60e75b7
Expand on summary description of XSS
wbamberg Dec 4, 2024
943ebc0
Fix a flaw
wbamberg Dec 4, 2024
45f5b54
fix the win an ipad layout
hamishwillee Dec 9, 2024
ca92f5f
Update files/en-us/web/security/attacks/xss/index.md
hamishwillee Dec 9, 2024
392c06d
Update discussion of XSS types
wbamberg Dec 12, 2024
e1f1f2a
Update files/en-us/web/security/attacks/xss/index.md
wbamberg Dec 12, 2024
1bada9d
Add summary checklist
wbamberg Dec 12, 2024
fa40431
Consistent case for bullets
wbamberg Dec 12, 2024
3234728
Update files/en-us/web/security/attacks/xss/index.md
wbamberg Dec 13, 2024
c3aa62f
Use blockquotes instead of screenshots
wbamberg Dec 13, 2024
4557801
More concrete details on output encoding
wbamberg Dec 13, 2024
4f095a1
Update files/en-us/web/security/attacks/xss/index.md
wbamberg Dec 13, 2024
eda47fc
Update files/en-us/web/security/attacks/xss/index.md
wbamberg Dec 13, 2024
658e2c4
Update files/en-us/web/security/attacks/xss/index.md
wbamberg Dec 13, 2024
a8de9b1
Update files/en-us/web/security/attacks/xss/index.md
wbamberg Dec 17, 2024
262b86c
Update files/en-us/web/security/attacks/xss/index.md
wbamberg Dec 17, 2024
190f86a
front/back end->browser/server
wbamberg Dec 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions files/en-us/web/security/attacks/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: Attacks
slug: Web/Security/Attacks
page-type: guide
---

In web security, an attack is a specific method an attacker uses to achieve their goal. For example, if their goal is to steal a user's data, a cross-site scripting (XSS) attack is one method they might use. A given attack may be countered by one or more mitigations: for example, XSS might be countered by properly sanitizing data and implementing a [content security policy](/en-US/docs/Web/HTTP/CSP).

This page links to pages explaining how some common attacks work, and how they can be mitigated.

- [Cross-site scripting (XSS)](/en-US/docs/Web/Security/Attacks/XSS)
- : In a cross-site scripting (XSS) attack, a website accepts some input crafted by the attacker and mistakenly includes this input in the site's own pages in a way that makes the browser execute it as code. The malicious code can then do anything that the site's own front-end code could do.
3 changes: 3 additions & 0 deletions files/en-us/web/security/attacks/xss/client-side-xss.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
308 changes: 308 additions & 0 deletions files/en-us/web/security/attacks/xss/index.md

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions files/en-us/web/security/attacks/xss/same-origin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions files/en-us/web/security/attacks/xss/server-side-xss.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions files/en-us/web/security/attacks/xss/xss.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading