If an attacker can successfully authenticate through SSO/Access Code, they can obtain the real backend API Key by modifying the base URL to their own attack URL on the frontend and setting up a server-side request.
The attack process is described above.
Frontend:
Backend:
All community version LobeChat users using SSO/Access Code authentication, tested on version 0.162.13.
{
"cwe_ids": [
"CWE-200",
"CWE-918"
],
"github_reviewed": true,
"github_reviewed_at": "2024-06-17T22:28:41Z",
"nvd_published_at": "2024-06-17T20:15:13Z",
"severity": "MODERATE"
}