bemaniutils
bemaniutils copied to clipboard
Crash on Attempted Exploit
Looking at logs for an instance I run, somebody tried to exploit my API instance. It looks to have failed, but there was still an exception in the logs that should be fixed.
Traceback (most recent call last):
File "/bemani/web/.env/lib/python3.8/site-packages/flask/app.py", line 1482, in full_dispatch_request
rv = self.preprocess_request()
File "/bemani/web/.env/lib/python3.8/site-packages/flask/app.py", line 1974, in preprocess_request
rv = self.ensure_sync(before_func)()
File "/bemani/web/.env/lib/python3.8/site-packages/bemani/api/app.py", line 49, in before_request
if authtype.lower() == "token":
AttributeError: 'NoneType' object has no attribute 'lower'