How oyossss/staff_only works
STAFF_ONLY is a Flask concert-ticketing security challenge. A user registers, reserves a ticket, and submits its page for administrator review; the review bot visits the page, enabling CSS-injection timing measurements to recover the administrator’s staff code. That code unlocks /list, where an SSTI payload can expose the flag. The core route, database, and bot behavior is visible in app.py; exploit-stage links and the ticket CSS behavior are documented in the README, while template implementations were not provided.
Main entry points: app.py Admin Ticket Page
Components 14
Ticket Web App
- Ticket Routes
app.py
Identity and Tickets
- Login and Registration
app.py - Seat Booking
app.py - Users and Tickets
app.py
Admin Review
- Report Route
app.py - Browser Review Bot
app.py - Admin Ticket Page
app.py
Staff Challenge
- Ticket CSS Injection
app.py - Timing Extraction
- Staff Code
app.py - Staff List Page
app.py - MOTD SSTI
app.py - Challenge Flag
Other components
- Ticket User
Connections 17
- Ticket User → Login and Registration: registers or logs in
app.py - Login and Registration → Users and Tickets: reads and writes
app.py - Ticket User → Seat Booking: reserves seat
app.py - Seat Booking → Users and Tickets: writes ticket
app.py - Ticket User → Report Route: submits report
app.py - Report Route → Browser Review Bot: visits URL
app.py - Browser Review Bot → Login and Registration: logs in as admin
app.py - Browser Review Bot → Admin Ticket Page: opens ticket page
README.md - Admin Ticket Page → Users and Tickets: reads ticket
app.py - Admin Ticket Page → Staff Code: renders for admin
app.py - Admin Ticket Page → Ticket CSS Injection: applies ticket CSS
README.md - Ticket User → Timing Extraction: measures response
README.md - Timing Extraction → Staff Code: infers characters
README.md - Ticket User → Staff List Page: presents code
README.md - Staff List Page → Users and Tickets: checks staff code
app.py - Ticket User → MOTD SSTI: supplies MOTD
README.md - MOTD SSTI → Challenge Flag: reads flag file
README.md