Summary
In api_post_history:
limit = min(int(request.args.get('limit', 20)), 100)
Passing ?limit=abc throws an unhandled ValueError, resulting in a 500 error.
Fix
try:
limit = min(int(request.args.get('limit', 20)), 100)
except (ValueError, TypeError):
limit = 20
Effort: ~15 minutes
Part of full audit: #1
Summary
In
api_post_history:Passing
?limit=abcthrows an unhandledValueError, resulting in a 500 error.Fix
Effort: ~15 minutes