Exploiting vulnerabilities in Johnson & Johnson web apps
Two Johnson & Johnson web apps used client-side Microsoft SSO checks that were not enforced by the backend APIs, which accepted a hardcoded API key or no authentication at all. An attacker could bypass the login screen and access student records, employee data and an internal audit system as an administrator.
eaton-works.com
Published on eaton-works.com
Today I am revealing vulnerabilities I found in 2 very different Johnson & Johnson web apps. One is a vulnerability in a college campus recruiting system that exposed details of nearly 1,000 students, and the other is an admin takeover of an internal audit system used by 20 companies.
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 backend APIs trusted client-side authentication and either used a hardcoded API key or no authentication at all, so the Microsoft SSO token was never verified server-side.
Impact
An attacker could view nearly 1,000 students' personal details and recruiter notes, and gain administrator access to an internal audit system covering 20 companies, though the text does not show any data being changed or exfiltrated.
What the attacker needed
Access to the web app; ability to edit client-side code; no account needed
The fix
The Campus Recruiting site was fixed by replacing API key authentication with Bearer token authentication, and the ATMS vulnerability was fixed after press involvement.
How it was found
- Open the site and inspect the client-side code to find private recruiter routes and API endpoints.
- Modify the MSAL library in the browser so it always reports a user as logged in.
- Access the recruiter routes and the APIs, which accept a hardcoded API key instead of the MSAL token.
- For the audit system, call the getAllUsers API and find an administrator's username and WWID.
- Patch the client-side login code to set hardcoded local storage values and stop the redirect.
- Request a session ID from the session API and set a valid timestamp to gain admin access.
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.
These websites checked whether you were logged in only in the browser, using a Microsoft login library. The servers behind them did not check the login token, so anyone who edited the page's code could pretend to be a logged-in employee and read private data.
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.