Result is that the server creates new ARKs infinitely, with 34,000 minted by the time the error was reported to me.
It's a weird choice to input a negative number (user wanted to see what would happen), but would be good to prevent that kind of input from getting through.
Testing out how POST requests work, user input a negative number (
-1
) into the "How many ARKs would you like to mint?" field (https://github.com/digitalutsc/arks-service/blob/main/admin/admin.php#L1051).This results in an infinite loop here: https://github.com/digitalutsc/arks-service/blob/main/admin/admin.php#L1065-L1067
Result is that the server creates new ARKs infinitely, with 34,000 minted by the time the error was reported to me.
It's a weird choice to input a negative number (user wanted to see what would happen), but would be good to prevent that kind of input from getting through.