How github-workflow-test-org/govwanew works
GoVWA is an intentionally vulnerable web application for learning and testing web vulnerabilities. A browser reaches routes registered by the app; users can log in, establish a session, and access vulnerability demonstrations and settings. Setup initializes the database, while feature handlers render templates and, where shown, read or update database records. The README identifies the OWASP Top 10 as the product scope; the XXE module is present in the tree but was not wired in the sampled app source. Unsampled feature internals and their relationships are not inferred.
Main entry points: app.go HTTP server · middleware.go Request middleware · setup.go Database setup · database.go MySQL database
Components 17
Web entry
- HTTP server
app.go - Request middleware
util/middleware/middleware.go - Page templates
templates
Identity and setup
- Login and logout
user/user.go - Cookie sessions
user/session/session.go - Database setup
setup/setup.go - Table creation
setup/function.go - Security settings
setting/setting.go
Vulnerability lessons
- SQL injection
vulnerability/sqli/sqli.go - IDOR
vulnerability/idor/idor.go - Cross-site scripting
vulnerability/xss/xss.go - Client-side auth
vulnerability/csa/csa.go - XXE lesson
vulnerability/xxe/xxe.go
Shared services
- Configuration
util/config/config.go - MySQL database
util/database/database.go - Template and JSON rendering
util/template.go
Other components
- Browser
Connections 36
- Browser → HTTP server: sends requests
README.md - HTTP server → Login and logout: registers routes
app.go - HTTP server → SQL injection: registers routes
app.go - HTTP server → Cross-site scripting: registers routes
app.go - HTTP server → IDOR: registers routes
app.go - HTTP server → Client-side auth: registers routes
app.go - HTTP server → Database setup: registers routes
app.go - HTTP server → Security settings: registers routes
app.go - HTTP server → Request middleware: wraps index routes
app.go - HTTP server → Configuration: reads port
app.go - Login and logout → Request middleware: wraps login routes
user/user.go - Database setup → Request middleware: wraps setup routes
setup/setup.go - Security settings → Request middleware: wraps setting routes
setting/setting.go - SQL injection → Request middleware: wraps lesson routes
vulnerability/sqli/sqli.go - IDOR → Request middleware: wraps lesson routes
vulnerability/idor/idor.go - Cross-site scripting → Request middleware: wraps lesson routes
vulnerability/xss/xss.go - Client-side auth → Request middleware: wraps lesson routes
vulnerability/csa/csa.go - Login and logout → MySQL database: checks credentials
user/user.go - Login and logout → Cookie sessions: stores login
user/user.go - Login and logout → Template and JSON rendering: renders login
user/user.go - Database setup → MySQL database: checks database
setup/setup.go - Database setup → Table creation: creates tables
setup/setup.go - Database setup → Cookie sessions: clears session
setup/setup.go - Database setup → Template and JSON rendering: renders setup
setup/setup.go - Security settings → MySQL database: reads version
setting/setting.go - Security settings → Cookie sessions: reads user
setting/setting.go - Security settings → Template and JSON rendering: renders settings
setting/setting.go - SQL injection → MySQL database: queries profiles
- IDOR → MySQL database: reads and updates profiles
- Cross-site scripting → Template and JSON rendering: renders lesson
vulnerability/xss/xss.go - Cross-site scripting → SQL injection: reuses profile query
vulnerability/xss/xss.go - Client-side auth → Cookie sessions: reads user ID
vulnerability/csa/csa.go - Client-side auth → Template and JSON rendering: renders lesson
vulnerability/csa/csa.go - Template and JSON rendering → Cookie sessions: reads session ID
util/template.go - MySQL database → Configuration: loads settings
util/database/database.go - HTTP server → Page templates: serves static assets
app.go