I Found a Vulnerability on a Government Web Portal. Here’s What
A government portal left its .git directory and administrative pages publicly accessible, so anyone could download the repository and potentially find source code, secrets and internal endpoints. The researcher reported it without exploiting anything, and the technical team resolved the issues within a week.
Published on medium.com
In the modern digital landscape, government portals act as the backbone of citizen services and administrative workflows. Ensuring the security of these portals is paramount, as they often handle sensitive data and critical infrastructure components.
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 a deployment mistake left the version-control directory and administrative pages inside the public web root instead of blocking them.
Impact
Anyone could download the repository and potentially obtain source code, hardcoded credentials and internal endpoint details, though the researcher did not attempt any access or extraction.
What the attacker needed
No account needed; target portal reachable on the internet
The fix
The technical team confirmed that all suggested security concerns had been resolved, including blocking public access, removing the repository metadata and rotating secrets.
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 website's .git folder is a hidden record of how the site's code was built and changed over time. If that folder is left reachable on a live server, visitors can download it and read the code, and sometimes find passwords or keys developers left inside. Here the folder and some admin pages were open to anyone, which the reporter flagged to the government team.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.