Advisory: Flarum LFI - CVE-2023-40033
A user with a basic forum account could set a malicious avatar URL that caused the server to read and disclose arbitrary local files. The same flaw also allowed blind server-side request forgery attacks.
blog.assetnote.io
Published on blog.assetnote.io
An attacker with a basic user forum account can specify a malicious avatar URL that discloses the contents of arbitrary local files on the file system.
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
Impact
An attacker could read any local file and could also conduct blind SSRF attacks.
What the attacker needed
A basic user forum account
The fix
The solution is to upgrade to flarum/framework version 1.8.0 or later.
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.
A website feature that fetches an image from a web address you supply can be tricked into fetching a file stored on the server itself instead. This is called local file inclusion, and it lets an attacker read private files. The same trick can also make the server send requests to other systems, which is server-side request forgery.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.