CVE-2023-43662 Arbitrary file read vulnerability in Shoko Server
Unauthenticated attackers can read arbitrary files on Shoko Server via an unsanitized path parameter in the image API endpoint.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2023-43662?
CVE-2023-43662 is a high-severity path traversal vulnerability in ShokoAnime ShokoServer, published on 28 Sep 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
ShokoServer is a media server which specializes in organizing anime. In affected versions the `/api/Image/WithPath` endpoint is accessible without authentication and is supposed to return default server images. The endpoint accepts the parameter `serverImagePath`, which is not sanitized in any way before being passed to `System.IO.File.OpenRead`, which results in an arbitrary file read. This issue may lead to an arbitrary file read which is exacerbated in the windows installer which installs the ShokoServer as administrator. Any unauthenticated attacker may be able to access sensitive information and read files stored on the server. The `/api/Image/WithPath` endpoint has been removed in commit `6c57ba0f0` which will be included in subsequent releases. Users should limit access to the `/api/Image/WithPath` endpoint or manually patch their installations until a patched release is made. This issue was discovered by the GitHub Security lab and is also indexed as GHSL-2023-191.
Weakness: CWE-22
Which versions are affected by CVE-2023-43662?
It affects 1 product.
Products include Shokoanime Shokoserver.
How do I fix CVE-2023-43662?
No fix has been published for CVE-2023-43662 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2023-43662 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-43662 exists.
Public exploit code: 1 Nuclei template.
Sources
Also known as GHSA-mwcv-ghjq-8f2g.