How surya2215/webgoat works
WebGoat is an intentionally insecure web application for learning web security through hands-on lessons. The main workflow is to register or sign in, choose a lesson from the course menu, submit exercise attempts, and review progress. WebWolf is a companion application with mailbox, JWT, and file-serving capabilities. The graph preserves these documented product areas; source excerpts support several container and WebWolf relationships, while many lesson implementations were not sampled, so their internal links are omitted.
Main entry points: WebWolf.java WebWolf app · WebGoat.java WebGoat app · UserService.java User service · LessonMenuService.java Lesson menu
Components 19
Learner experience
- WebGoat app
src/main/java/org/owasp/webgoat/container/WebGoat.java - Registration
src/main/java/org/owasp/webgoat/container/users/RegistrationController.java - User service
src/main/java/org/owasp/webgoat/container/users/UserService.java - User store
src/main/java/org/owasp/webgoat/container/users/UserRepository.java
Course and progress
- Course catalog
src/main/java/org/owasp/webgoat/container/session/Course.java - Lesson menu
src/main/java/org/owasp/webgoat/container/service/LessonMenuService.java - User progress
src/main/java/org/owasp/webgoat/container/users/UserProgress.java - Progress repository
src/main/java/org/owasp/webgoat/container/users/UserProgressRepository.java - Report card
src/main/java/org/owasp/webgoat/container/report/ReportCardController.java
Security lessons
- Lesson assignments
src/main/java/org/owasp/webgoat/lessons - Challenge flags
src/main/java/org/owasp/webgoat/lessons/challenges/FlagController.java - Attack result
src/main/java/org/owasp/webgoat/container/assignments/AttackResult.java
WebWolf companion
- WebWolf app
src/main/java/org/owasp/webgoat/webwolf/WebWolf.java - Mailbox
src/main/java/org/owasp/webgoat/webwolf/mailbox/MailboxController.java - Mailbox repository
src/main/java/org/owasp/webgoat/webwolf/mailbox/MailboxRepository.java - JWT service
src/main/java/org/owasp/webgoat/webwolf/jwt/JWTController.java - JWT token
src/main/java/org/owasp/webgoat/webwolf/jwt/JWTToken.java - File server
src/main/java/org/owasp/webgoat/webwolf/FileServer.java
Other components
- Learner
Connections 18
- Learner → WebGoat app: uses lessons
- Learner → WebWolf app: uses companion
- WebGoat app → Registration: offers signup
- Registration → User service: registers user
src/main/java/org/owasp/webgoat/container/users/RegistrationController.java - User service → User store: loads and saves
src/main/java/org/owasp/webgoat/container/users/UserService.java - User service → Progress repository: creates progress
src/main/java/org/owasp/webgoat/container/users/UserService.java - WebGoat app → Lesson menu: serves course UI
- Lesson menu → Course catalog: lists lessons
src/main/java/org/owasp/webgoat/container/service/LessonMenuService.java - Lesson menu → Progress repository: reads progress
src/main/java/org/owasp/webgoat/container/service/LessonMenuService.java - Learner → Lesson assignments: attempts exercises
- Challenge flags → Attack result: returns result
src/main/java/org/owasp/webgoat/lessons/challenges/FlagController.java - Report card → Progress repository: reads progress
src/main/java/org/owasp/webgoat/container/report/ReportCardController.java - Report card → Course catalog: counts lessons
src/main/java/org/owasp/webgoat/container/report/ReportCardController.java - Mailbox → Mailbox repository: uses repository
src/main/java/org/owasp/webgoat/webwolf/mailbox/MailboxController.java - JWT service → JWT token: uses token
src/main/java/org/owasp/webgoat/webwolf/jwt/JWTController.java - WebWolf app → Mailbox: offers mailbox
- WebWolf app → JWT service: offers JWT tools
- WebWolf app → File server: serves files