The 1.8MB Mistake: Leaking Thousands of Government Users via a Li
An unauthenticated Liferay JSONWS endpoint, get-company-users, returned all users for a company when given a companyId. An attacker could retrieve names, government email addresses, job titles, usernames and user IDs for thousands of users.
But in the real world, the most dangerous vulnerabilities are often much simpler.
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
The get-company-users endpoint was marked Guest Accessible, so the backend treated anonymous internet users as guests and returned all company users without authentication or authorisation checks.
Impact
An unauthenticated attacker could obtain full names, official government email addresses, job titles, internal usernames and user IDs for thousands of users, enabling targeted phishing and credential-stuffing; the author notes that part of the described impact (internal denial-of-service) was considered out of scope by the program.
What the attacker needed
No authentication; target runs Liferay with JSONWS exposed; companyId discoverable from frontend
The fix
The program disabled public access to /api/jsonws, added proper ACL checks to get-company-users, and restricted the endpoint to authenticated admin roles only.
How it was found
- Enumerate subdomains and identify a NASA portal running Liferay by its cookies and URLs.
- Open the Liferay JSONWS API explorer at /api/jsonws, which loaded without authentication.
- Notice the /user/get-company-users endpoint and test it with guessed companyId values.
- Open Chrome DevTools and read Liferay.ThemeDisplay to find the real companyId.
- Request /api/jsonws/user/get-company-users with the companyId and a large start/end range.
- Receive a 1.8MB JSON response containing thousands of user records.
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 web server had a built-in list of API methods, and one method that lists all users was left open to anyone on the internet. The attacker found the company ID in the page's JavaScript and simply asked the server for all users, receiving a large file of personal details without logging in.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.