Owncloud: details about CVE-2023-49103 and CVE-2023-49105
OwnCloud's WebDAV authentication used a blank signing key by default, letting unauthenticated attackers impersonate any user and read, modify, or delete their files. Authenticated users could also escalate to admin by spoofing their session user ID and bypassing a token check.
Published on ambionics.io
On November 21th 2023, Owncloud released a new version patching two vulnerabilities (1 and 2) we reported a few weeks before. The vulnerabilities were assigned CVE-2023-49103 and CVE-2023-49105.
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 default signing key was an empty string, and the session authentication logic trusted a user ID set via a signed URL without re-verifying the token.
Impact
An unauthenticated attacker could read, create, modify, or delete any user's files, and in some cases achieve remote code execution; an authenticated user could escalate to administrator and then get remote code execution.
What the attacker needed
OwnCloud 10.6.0 to 10.13.0; know the victim's username; for escalation: a standard account
The fix
The vulnerabilities were fixed in OwnCloud version 10.13.0.
How it was found
- Log in as a standard user.
- Use the URL-signing mechanism to spoof your user_id.
- Access any page with an invalid token in the Authorization header.
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.
OwnCloud is a file-sharing server. It let people prove who they are with a signature, but the secret used to make that signature was empty by default, so anyone could forge it. That meant a stranger could act as any user and access their files.
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.