How owasp/dvsa works
DVSA is a deliberately vulnerable serverless e-commerce application for security practice. A user browses products, adds them to a cart, supplies shipping and billing details, and reaches order confirmation; the client routes these screens and sends API requests to the backend. Separate capabilities cover account/profile and inbox access, administration, scheduled processing, and receipt email. The README documents these capabilities, but the excerpts do not show backend event or API routing, so those connections are left unasserted.
Main entry points: AppRouter.js Page router · apiCaller.js API caller · CartPage.js Shopping cart · InboxPage.js Inbox and messages
Components 21
Storefront client
- Page router
client/src/routers/AppRouter.js - Product catalog
client/src/components/StorePage.js - Product details
client/src/components/ProductView.js - Shopping cart
client/src/components/CartPage.js - Shipping details
client/src/components/ShippingPage.js - Billing
client/src/components/BillingPage.js - Order confirmation
client/src/components/ConfirmationPage.js - API caller
client/src/utils/apiCaller.js - Admin screen
client/src/components/AdminPage.js
Commerce backend
- Order functions
backend/functions/order - Order processing
backend/functions/processing - Order manager
backend/functions/order-manager/order-manager.js
Accounts and messaging
- Profile and accounts
client/src/components/ProfilePage.js - User functions
backend/functions/user - Inbox and messages
client/src/components/InboxPage.js - Receipt email
backend/functions/processing/send_receipt_email.py
Administration and jobs
- Admin tools
backend/functions/admin - Scheduled jobs
backend/functions/cronjobs
Cloud services
- AWS identity
client/src/aws-exports.js - API endpoint
Other components
- Shopper
Connections 22
- Shopper → Page router: browses
client/src/routers/AppRouter.js - Page router → Product catalog: routes to
client/src/routers/AppRouter.js - Page router → Product details: routes to
client/src/routers/AppRouter.js - Page router → Shopping cart: routes to
client/src/routers/AppRouter.js - Page router → Shipping details: routes to
client/src/routers/AppRouter.js - Page router → Billing: routes to
client/src/routers/AppRouter.js - Page router → Order confirmation: routes to
client/src/routers/AppRouter.js - Shopper → Shopping cart: manages
- Billing → API caller: submits request
client/src/components/BillingPage.js - Shopping cart → API caller: calls
client/src/components/CartPage.js - Order confirmation → API caller: calls
client/src/components/ConfirmationPage.js - API caller → API endpoint: POST /order
client/src/utils/apiCaller.js - API endpoint → Order functions: dispatches
- Shopper → Admin screen: uses
- Admin screen → API caller: calls
client/src/components/AdminPage.js - Shopper → Profile and accounts: manages account
- Profile and accounts → API caller: calls
client/src/components/ProfilePage.js - Shopper → Inbox and messages: checks messages
- Inbox and messages → API caller: calls
client/src/components/InboxPage.js - Order processing → Receipt email: sends receipts
- Receipt email → Inbox and messages: delivers messages
- AWS identity → API endpoint: configures endpoint
client/src/aws-exports.js