How bouchra-ader/juice-shop works
OWASP Juice Shop is an intentionally vulnerable online shop used for security training, awareness demonstrations, CTFs, and security-tool evaluation. Users interact with an Angular storefront and its challenge-oriented features; the Node/Express server exposes the application and API, backed by Sequelize models and seeded data. Distinct product areas include shopping, identity/security, and hacking challenges, with challenge-solving state and notifications as an internal layer. The graph follows documented routing and sampled server/data/model relationships; many individual route-to-model calls and frontend service bindings were not shown, so uncertain links are omitted or dashed.
Main entry points: app.routing.ts Page routing · server.ts HTTP server · datacreator.ts Initial data loading · challengeUtils.ts Challenge solving
Components 22
Web client
- Angular client
frontend/src/app/app.component.ts - Page routing
frontend/src/app/app.routing.ts - Shopping interface
frontend/src/app/product/product.component.ts - Challenge interface
frontend/src/app/score-board/score-board.component.ts - Chatbot interface
frontend/src/app/chatbot/chatbot.component.ts
Server and APIs
- Application entry
app.ts - HTTP server
server.ts - Review endpoints
routes/showProductReviews.ts - Shop APIs
routes/basket.ts - Identity APIs
routes/login.ts
Shop domain
- Commerce records
models/product.ts - User records
models/user.ts
Security challenges
- Challenge catalog
models/challenge.ts - Challenge solving
lib/challengeUtils.ts - Coding challenges
lib/codingChallenges.ts - Solution webhook
lib/webhook.ts
Data and state
- Initial data loading
data/datacreator.ts - Runtime data cache
data/datacache.ts - Model registry
models/index.ts - SQLite database
models/index.ts - Static challenge data
data/staticData.ts
Other components
- Shop user
Connections 21
- Shop user → Angular client: uses
README.md - Angular client → Page routing: navigates via
frontend/src/app/app.component.ts - Page routing → Shopping interface: routes to
frontend/src/app/app.routing.ts - Page routing → Challenge interface: routes to
frontend/src/app/app.routing.ts - Page routing → Chatbot interface: routes to
frontend/src/app/app.routing.ts - Application entry → HTTP server: starts
app.ts - HTTP server → Angular client: serves client
server.ts - HTTP server → Initial data loading: awaits initialization
server.ts - HTTP server → Review endpoints: registers endpoints
- Shopping interface → Shop APIs: requests shop data
- Shop APIs → Commerce records: accesses records
- Identity APIs → User records: uses accounts
- Review endpoints → Runtime data cache: reads runtime cache
routes/showProductReviews.ts - Initial data loading → Static challenge data: loads seed data
data/datacreator.ts - Initial data loading → Coding challenges: loads definitions
data/datacreator.ts - Initial data loading → Challenge catalog: creates challenge records
data/datacreator.ts - Model registry → SQLite database: configures SQLite
models/index.ts - Challenge solving → Challenge catalog: updates solved state
lib/challengeUtils.ts - Challenge solving → Runtime data cache: records notifications
lib/challengeUtils.ts - Challenge solving → Solution webhook: notifies on solve
lib/challengeUtils.ts - Challenge interface → Challenge solving: submits progress