UMDLARS / dtanm

A framework to teach adversarial thinking to software developers without requiring any special security knowledge
3 stars 2 forks source link

Fix resetting between competitions #115

Open ChandlerSwift opened 3 years ago

ChandlerSwift commented 3 years ago

When ending one competition and beginning another, even when the database is cleared, it is possible that remnants of an old competition will linger. The one that bit us last competition is that the gold container wasn't rebuilt, so the calc competition was testing against jas's gold!

This should definitely be documented, and preferably we should add some more detailed checks when starting a competition. Perhaps this could take the form of hashing gold like we do users' programs? We already have a hash_dir function; this would also help for when we change gold like in #45.