Welcome to VulnLab

A playground to understand and exploit client-side and environmental vulnerabilities.

Vulnerabilities Loaded

4

Exploited / Solved

0 / 4

Environment Status

Active

Explore Vulnerability Labs

High

Environment Secret Leaks

Discover sensitive configuration files exposed publicly or hardcoded in front-end script bundles.

Critical

DOM-Based XSS

Inject malicious scripts through unsafely handled URL parameters or user inputs directly inside the DOM.

Medium

Insecure LocalStorage

Identify sensitive authentication tokens and configurations improperly stored in local web storage.

High

Client-Side Logic Bypass

Manipulate Javascript state variables or override global objects to gain unauthorized privilege access.

Environment Secret Leaks

High Severity

Lab Scenario

Developers sometimes commit .env files or expose server configuration environment endpoints. Your task is to find the leaked environment variable secret to retrieve the flag.

Inspector Console / Network logs

// Tip: Examine the loaded script context or simulate reading configuration metadata files (like "/.env" or config objects).

curl -i http://localhost/config.json

Click the button below to inspect public environment files or look closely at the network/sources.

DOM-Based Cross-Site Scripting (XSS)

Critical Severity

Lab Scenario

This page reflects user input without sanitization. Find the DOM XSS entry point. Trigger an alert(1) or inject a payload to expose the flag.

Results for: No query entered

Insecure Client-Side Storage

Medium Severity

Lab Scenario

This web application stores session state and sensitive data in LocalStorage. Investigate local storage variables to find the hidden session token containing the flag.

Session not initialized. Click above to sign in as guest user.

Client-Side Logic Bypass

High Severity

Lab Scenario

The application decides your authorization state completely on the client side using a global Javascript config object. Can you manipulate the global variable to become Admin and retrieve the Admin Flag?

Current Role: Guest

Verification Check: Unauthorized