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

update cors.md #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
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
11 changes: 11 additions & 0 deletions cheatsheets/cors.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ Check to see what the server responds with in the `Access-Control-Allow-Origin:`

If it is trusting arbitrary origins **with** allow-credentials set to true, then host this HTML as a proof of concept.

## Some method to bypass CORS
Copy link

@ItsIgnacioPortal ItsIgnacioPortal Jun 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to suggest that the title be changed into "Origin-based CORS bypass", to make it more professional

Also, this addition should be below the HTML snippet. Otherwise the document doesn't make sense

1. `Origin:null`
2. `Origin:attacker.com`
3. `Origin:attacker.target.com`
4. `Origin:attackertarget.com`
5. `Origin:sub.attackertarget.com`
6. `Origin:attacker.com and then change the method Get to post/Post to Get`
7. `Origin:sub.attacker target.com`
8. `Origin:sub.attacker%target.com`
9. `Origin:attacker.com/target.com`

```
<!DOCTYPE html>
<html>
Expand Down