Pentesting an IOT based Biometric Attendance device
The device's web server exposed backup data without authentication, and that backup contained hardcoded Telnet credentials. An attacker could use those credentials to log in as root, access all user data including biometrics, and modify the database to bypass access controls.
medium.com
Published on medium.com
During one of the Red Team engagements, I got a chance to pentest a Biometric attendance device which was often used by the client to mark the attendance and to restrict access to specific rooms.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the web server lacked proper access control on the backup download endpoint, and the backup file stored Telnet credentials in plaintext.
Impact
An attacker could access sensitive user data including biometric information and modify the database to bypass physical access controls.
What the attacker needed
Network access to the device; default admin credentials
How it was found
- Scan the device's IP address to find open ports and services.
- Access the web server and log in to the admin panel using default credentials.
- Navigate to the backup section and download the system data file without authentication.
- Extract the Telnet credentials from the downloaded backup file.
- Log in to Telnet as root using the obtained credentials.
- Mount the file system to access user data and the SQLite database.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A biometric attendance device had a web interface that let anyone download a backup file without logging in. That backup file contained the username and password for the device's remote login service (Telnet), which gave full control of the device. This meant an attacker could see and change all user data, including fingerprints.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.