https://github.com/esarafianou/browser-storage
Sample applications showcasing browser storage nuances. It shows the differences between Local and Session and demonstrates different in-memory storage implementations and their insecurities against XSS.
https://github.com/esarafianou/browser-storage
browser-storage in-memory localstorage sessionstorage xss
Last synced: 4 months ago
JSON representation
Sample applications showcasing browser storage nuances. It shows the differences between Local and Session and demonstrates different in-memory storage implementations and their insecurities against XSS.
- Host: GitHub
- URL: https://github.com/esarafianou/browser-storage
- Owner: esarafianou
- License: mit
- Created: 2020-11-03T13:40:38.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-11T16:42:35.000Z (over 5 years ago)
- Last Synced: 2025-04-23T23:36:23.615Z (about 1 year ago)
- Topics: browser-storage, in-memory, localstorage, sessionstorage, xss
- Language: HTML
- Homepage:
- Size: 13.7 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Browser Storage Security
This repo includes two sample applications showcasing browser storage nuances.
## How to use
1. Clone the repo: `git@github.com:esarafianou/browser-storage.git`
2. Install the dependencies:
```
cd browser-storage
npm install
```
### Local vs Session Storage
The application walks you through the differences between Local and Session Storage
1. `cd localvsSessionStorage`
2. Run `node server.js`
3. Visit http://localhost:4000
4. Follow the instructions presented there
### In-memory storage
This applcation has a DOM-based XSS and demonstrates different in-memory
storage implementations and their insecurities against XSS.
1. `cd inMemory`
2. Run `node server.js`
3. Visit http://localhost:3000