By Hamza Faisal

Independent security researcher Eaton Zveare has uncovered critical flaws in the online visa and border-control systems of six countries that could have handed attackers what he calls "God mode at the border" — the power to read millions of travellers' personal records, approve or deny their visas, and even place names on terrorism watchlists, all without logging in.

The affected countries are Nigeria, Ethiopia, Zambia, Sri Lanka, Fiji and Ghana. The flaws sat in the web systems those governments use to process visa applications and authorise travellers to enter — systems largely built by third-party contractors, some of them with heavy help from AI-generated code.

A Bing search that opened a border

Zveare's investigation began almost by accident, about a year ago, when a Bing search for an administrative panel surfaced a private back-end portal belonging to Nigeria's border-control system. Poking at it revealed broken access controls — and when he looked for similar systems elsewhere, he found the same class of weakness in five more countries.

The flaws were the classic API security failures: broken object-level authorisation (BOLA), which lets one user reach another person's records by changing an ID in a request; broken function-level authorisation (BFLA), which exposes admin functions to ordinary users; and, in some places, admin endpoints with no authentication at all. In at least one system, client-side JavaScript patches had been used to bypass Keycloak and custom authentication entirely.

In Nigeria alone, Zveare found roughly a dozen vulnerabilities. The other countries had several each.

What an attacker could have done

With the access the flaws provided, an attacker could have viewed the personal data of millions of international visa and passport applicants — full names, passport numbers, travel itineraries, hotel details, visa approval status and, in some cases, biometric data such as fingerprints. Worse, the flaws opened administrative functions: approving or denying visa applications as they arrived, inserting false records into restriction lists, or quietly tracking the travel schedules of executives, officials or other persons of interest.

"The tip of the iceberg is not only viewing all the people who ever applied for these visas and passports, but actually being able to approve or deny applications that are currently coming in," Zveare told Dark Reading.

He also pointed to how the systems were built. Many were outsourced to contractors with varying levels of expertise, and in Nigeria's case, he said, an over-reliance on AI to generate code may have introduced some of the flaws — a warning for governments racing to automate public services.

Fixed before disclosure — but slowly in places

Zveare disclosed the flaws responsibly, and all six countries have now fixed them. No confirmed data theft has been reported. Response times varied widely. Nigeria's computer emergency response team moved quickly — notable, given its systems had the most problems — while other countries took anywhere from a few days to more than six months to close the holes.

The full technical details will be presented at Black Hat Europe on December 10, in a session Zveare has titled "God mode at the border". Until then, the episode stands as a reminder that the most sensitive government systems are only as strong as their least-checked API endpoint — and that a search engine can sometimes find the front door left open.