GHSL-2022-138: open redirect in lorawan stack - CVE-2023-26494
The login page of the lorawan stack server accepted a user-controlled redirect parameter, so after a successful login the user could be sent to an attacker-chosen domain. An attacker could use this to phish users who assume they were redirected to the homepage.
An open redirect exists on the login page of the lorawan stack server, allowing an attacker to supply a user controlled redirect upon sign in.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The application took the value of the 'n' query parameter and assigned it directly to window.location without validating that it was a safe, internal URL.
Impact
This issue may allow malicious actors to phish users, as users assume they were redirected to the homepage on login.
What the attacker needed
Victim clicks a crafted login link; victim is logged out
The fix
The vulnerability was patched in v3.24.1.
How it was found
- Ensure you are logged out from lorawan stack.
- Log into lorawan stack using a URL with the 'n' parameter set to an external domain.
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.
An open redirect is when a website lets you tell it where to send someone next, and it does not check that the destination is safe. Here, after logging in, the site would send the user to whatever web address was in the 'n' parameter. An attacker could make that address point to a fake login page to trick people.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.