Myndr CORS Misconfiguration
The admin panel reflected any subdomain of the same parent domain in its CORS response while allowing credentials, so a page hosted on any Myndr subdomain could read authenticated admin responses. The author claims this could be chained with CSRF to change the admin password and take over the account.
Originally disclosed on HackerOne
- Triaged in 7 hours
- Fixed in 9 hours
- Disclosed after 27 hours
Summary admin.myndr.net reflects any *.myndr.net subdomain origin with Access-Control-Allow-Credentials: true, allowing any website hosted on a Myndr subdomain to read authenticated admin panel responses including CSRF nonces, session data, and admin functionality. Combined with CSRF, this enables full admin account takeover. Vulnerability Details Vulnerability Type: CORS Misconfiguration / Broken Access Control CVSS 3.1 Score: 7.5 (High) — AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N Affected Endpoints:
- https://admin.myndr.net/
- https://admin.myndr.net/auth/login-admin
- https://admin.myndr.net/auth/login-admin-new-password
- https://admin.myndr.net/cp/postcode
- https://dashboard.myndr.net/
Steps to Reproduce Step 1: Verify CORS reflects arbitrary .myndr.net origins with credentials* GET / HTTP/1.1 Host: admin.myndr.net Origin: https://evil.myndr.net Response: HTTP/2 302 access-control-allow-origin: https://evil.myndr.net access-control-allow-methods: GET, POST, OPTIONS, DELETE, PUT access-control-allow-credentials: true access-control-allow-headers: User-Agent,Keep-Alive,Content-Type vary: Origin location: /auth/login-admin Step 2: Extract CSRF nonce via CORS fetch("https://admin.myndr.net/auth/login-admin", {credentials: "include"}) .then(r => r.text()) .then(html => { const nonce = html.match(/name="nonce" value="([^"]+)"/)[1]; // Attacker now has the CSRF nonce }); Step 3: HTTP downgrade also works GET / HTTP/1.1 Host: admin.myndr.net Origin: http://admin.myndr.net Response: access-control-allow-origin: http://admin.myndr.net access-control-allow-credentials: true Step 4: Exploit chain
- Host malicious page on any *.myndr.net subdomain
- Page reads CSRF nonces from admin.myndr.net with victim's cookies
- Perform CSRF to change admin password
- Full admin account takeover
Recommended Fix
- Remove wildcard CORS reflection for *.myndr.net
- Only allow specific trusted origins
- Never reflect arbitrary origins with credentials
- Remove HTTP origin reflection entirely
Impact
Any website on a *.myndr.net subdomain can read authenticated admin responses. Combined with CSRF → full admin takeover. 20+ active subdomains could serve as attack vectors.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server echoed the request's Origin header back whenever it ended in the trusted parent domain, and paired that with credentials allowed, instead of checking against an exact allowlist.
Impact
Any site on a Myndr subdomain could read authenticated admin responses, and the author claims this could be combined with CSRF for full admin takeover; the text does not show the CSRF step actually being carried out.
What the attacker needed
Control of any *.myndr.net subdomain; victim admin visits the attacker page
The fix
The server should stop reflecting arbitrary origins and only allow an explicit list of trusted origins, never with credentials, and should not accept HTTP origins.
How it was found
- Send a request to the admin host with an Origin header pointing at an arbitrary subdomain and observe the reflected origin with credentials allowed.
- From a page on that subdomain, fetch the admin login page with credentials included and read the CSRF nonce from the HTML.
- Note that an HTTP origin is also reflected, not just HTTPS.
- Host a malicious page on any Myndr subdomain, read the nonce with the victim's cookies, then submit a CSRF request to change the admin password.
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 report has not been written yet. The Original tab links to the source.
When a browser loads a page from one site and that page asks another site for data, the other site can say which origins are allowed to read the reply. Here the admin panel said yes to any subdomain of the same company domain and also allowed the victim's login cookies to be sent. That means anyone who can host a page on any Myndr subdomain can read the admin's private pages.
What is CORS?
A permissive cross-origin policy lets another site read responses with the user's credentials.