Weak Security and Vulnerabilities in the Portuguese Government's Auth System
The Portuguese government's Chave Móvel Digital authentication system uses a PIN that is only 4-8 numeric digits and relies solely on SMS for second-factor authentication. An attacker could brute-force the small PIN space, especially since many users pick common 4-digit PINs, to guess credentials for a fraction of accounts.
iluxonchik.github.io
Published on iluxonchik.github.io
Back in January 2018, after about half an hour of exploring the “secure” authentication system provided by the Portuguese government I found various security issues and vulnerabilities. I will briefly explore them in a series of blog posts.
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
Impact
An attacker could guess the PINs of a small but significant fraction of accounts, potentially leading to unauthorised access and identity theft, though the system limits the number of attempts.
What the attacker needed
Knowledge of victim's phone number; ability to make login attempts
The fix
The system should allow passwords with letters, numbers and special characters, and offer stronger second-factor options such as authenticator apps.
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.
This is a login system for Portuguese government services. It asks for a phone number and a short number-only PIN, then sends a code by text message. Because the PIN is so short and simple, someone could try many guesses and break into some accounts, especially those using easy PINs like 1234.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.