Skip to content
  1. registration
  2. live
  3. resultsnow
← Jeopardy

Web

Last-Minute Patch

This one has a paid hint (10 pts) — sign in to reveal it.

Last-Minute Patch

0 teams solved

300 pts

Hot off the press. This middleware guards /admin. During an outage of the auth service it let everyone in. The flag names the principle it broke, two words joined by an underscore: ctfbox{<word>_<word>}.

async function requireAdmin(req, res, next) {
  try {
    const user = await authService.lookup(req.cookies.session);
    if (!user.isAdmin) return res.status(403).end();
  } catch (err) {
    log.warn("auth lookup failed, continuing", err);
  }
  next();
}

Sign in with GitHub to submit a flag.