Skip to content

This is a web application created for educational purposes, replicating CSRF, SSRF, and clickjacking vulnerabilities.

License

Notifications You must be signed in to change notification settings

megmogmog1965/vulnerable-web-site

Repository files navigation

vulnerable-web-site

This is a project to reproduce following web application vulnerabilities.

  • CSRF (Cross-Site Request Forgery)
  • Clickjacking
  • Stored XSS (Cross-Site Scripting)
  • SSRF (Server-Side Request Forgery)*

*SSRF works only on localhost

Demo on Vercel

https://vulnerable-web-site.vercel.app/

Environment Variables

Name Description Default
ENABLE_SSRF Enable SSRF (Server-Side Request Forgery) vulnerability. false
ENABLE_CSP Enable CSP (Content-Security-Policy) to prevent XSS. false

Getting Started (Dev)

First, install Node.js v20.10.0, or volta.

node -v
# v20.10.0

Install Node.js modules.

npm install

This project uses Vercel KV. Please follow the following instructions.

Run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

Deploy

Deploy on Server

Build and start the server.

npm run build
npm run start

Open http://{server-ip-address}:3000 with your browser to see the result.

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

Deploy on AWS Amplify

How to deploy Next.js with AWS Amplify.

About

This is a web application created for educational purposes, replicating CSRF, SSRF, and clickjacking vulnerabilities.

Resources

License

Stars

Watchers

Forks

Packages

No packages published