-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: "Cheatsheets" | ||
description: "List of interesting cheatsheets" | ||
lead: "List of interesting cheatsheets" | ||
date: 2023-01-01T00:00:00+00:00 | ||
lastmod: 2023-01-01T00:00:00+00:00 | ||
draft: false | ||
images: [] | ||
menu: | ||
docs: | ||
parent: "getting-started" | ||
weight: 40 | ||
toc: true | ||
--- | ||
|
||
## XSS | ||
|
||
- [mXSS cheatsheet](https://sonarsource.github.io/mxss-cheatsheet/) | ||
- [Cross-site scripting (XSS) cheat sheet](https://portswigger.net/web-security/cross-site-scripting/cheat-sheet) | ||
|
||
## SQL Injection | ||
|
||
- [SQL injection cheat sheet](https://portswigger.net/web-security/sql-injection/cheat-sheet) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ images: [] | |
menu: | ||
docs: | ||
parent: "getting-started" | ||
weight: 100 | ||
weight: 10 | ||
toc: true | ||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ images: [] | |
menu: | ||
docs: | ||
parent: "getting-started" | ||
weight: 100 | ||
weight: 20 | ||
toc: true | ||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
title: "Server-Side Caching" | ||
description: "Overview of Server-Side Caching" | ||
lead: "Overview of Server-Side Caching" | ||
date: 2023-01-01T00:00:00+00:00 | ||
lastmod: 2023-01-01T00:00:00+00:00 | ||
draft: false | ||
images: [] | ||
menu: | ||
docs: | ||
parent: "server-side" | ||
weight: 620 | ||
toc: true | ||
--- | ||
|
||
## Definition | ||
|
||
Server-side web caching is a technique used to improve website performance by storing frequently accessed data on the server. The server checks if the requested data is already stored in its cache before generating a new response, which can significantly reduce response time and improve user experience. | ||
|
||
Caching is based on multiple parameters like URL paths, MIME types, file extensions, HTTP methods, and headers, which help determine which resources are cacheable and for how long. | ||
|
||
## Cache Poisoing | ||
|
||
Cache poisoning is aimed at manipulating the client-side cache to force clients to load resources that are unexpected, partial, or under the control of an attacker. For example, you can elevate a self-XSS to a stored XSS if you manage to store the XSS inside the cache. | ||
|
||
## Web Cache Deception | ||
|
||
The goal of Web Cache Deception is to trick victims into loading resources that will be cached with sensitive information. | ||
|
||
Examples: | ||
- Abusing wildcard using Path Traversal: `https://chat.openai.com/share/%2F..%2Fapi/auth/session` | ||
- Abusing cached file extension: `https://chat.openai.com/api/auth/session/test.css` | ||
|
||
## Softwares | ||
|
||
### Cloudflare | ||
|
||
- [Cloudflare Docs - Default Cache Behavior](https://developers.cloudflare.com/cache/concepts/default-cache-behavior/) | ||
|
||
### Varnish | ||
|
||
- [Varnish Docs - Introduction](https://docs.varnish-software.com/varnish-enterprise/) | ||
- [Getting Started with Varnish Cache - Linode](https://www.linode.com/docs/guides/getting-started-with-varnish-cache/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters