AlpacaHack Logo

Tag: Race Condition

Sign InSign Up

Race Condition

No description is available for this tag.

Updated Apr 24, 2026
Race Condition Challenges
Free Coupon
tchen

tchen

Web
142 solves
permission denied
minaminao

minaminao

Misc
76 solves
redis-lite
ptr-yudai

ptr-yudai

Pwn
0 solves
sharr
ptr-yudai

ptr-yudai

Pwn
0 solves

Free Coupon

Daily AlpacaHackTopic: GeneralReleased: Mar 17, 2026

142 solves
Web

by

tchen

tchen

Get a free coupon now and buy the flag at a discount!

Beginner Hint 1: Overview of the problem (AI-translated)
  • When you access the page, a random session ID (sid) is assigned.
  • When you access the /buy page, if the balance associated with the session ID is 30 or more, you can "purchase" and view the flag.
  • The initial balance is 0, but accessing the /redeem page allows you to get 10 balance in exchange for a coupon. However, after that, the redeemed flag becomes true, and it looks like you can't use the coupon multiple times.
  • There is no way to increase the balance other than coupons.
Beginner Hint 2: Approach to the problem
  • The implementation of /redeem is a bit unnatural. It takes a few seconds to get the coupon when accessed, but can we exploit this specification?
free-coupon.tar.gz
descriptionsolveswriteups