All challenges

Weak MFA OTP brute force

webeasy150pts

Weak MFA OTP brute force

The login is two-factor: a password, then a 4-digit code. The second step has no rate limit, no lockout and no attempt counter, so the whole 10000-code space is one loop away. The flaw is the missing throttling (CWE-307), not the code generation.

How to reach it

Run the challenge locally with its docker-compose. The flagger sidecar writes your per-run flag to /flag/flag.txt, which the private notes page reads. The service speaks HTTP on port 8080; the demo credentials are shown on the login page.

Run this challenge

Spin it up locally with Docker. The flagger sidecar fetches a per-run flag into a shared volume, then the challenge container boots and reads it.

compose.yml
services:
  flagger:
    image: matejbasic/rootcause-flagger:1.0
    environment:
      ROOTCAUSE_API_URL: https://root-cause-api.matejbasic.com
      ROOTCAUSE_API_KEY: ${ROOTCAUSE_API_KEY}
      ROOTCAUSE_CHALLENGE: weak-mfa-otp
      FLAG_PATH: /flag/flag.txt
    volumes:
      - flag:/flag
  challenge:
    image: matejbasic/weak-mfa-otp:1.0
    depends_on:
      flagger:
        condition: service_completed_successfully
    environment:
      FLAG_PATH: /flag/flag.txt
    volumes:
      - flag:/flag
    ports:
      - "8080:8080"
volumes:
  flag:
one-line CLI
rootcause start weak-mfa-otp

The rootcause CLI does all of this in one command. Running a challenge needs your API key, which you generate in your profile.