{"id":"CVE-2023-43662","published":"2023-09-28T21:54:44Z","modified":"2024-09-23T18:40:06Z","title":"Arbitrary file read vulnerability in Shoko Server","vendor":"ShokoAnime","product":"ShokoServer","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.09111,"percentile":0.95426,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/ShokoAnime/ShokoServer/security/advisories/GHSA-mwcv-ghjq-8f2g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ShokoAnime/ShokoServer/commit/6c57ba0f073d6be5a4f508c46c2ce36727cbce80","tags":["x_refsource_MISC"]}],"priority":{"score":30.1,"factors":[{"name":"EPSS percentile","points":19.09},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.02}]},"exploitSources":{"nuclei":[{"id":"CVE-2023-43662","name":"ShokoServer System - Local File Inclusion (LFI)","severity":"high","path":"http/cves/2023/CVE-2023-43662.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-43662.yaml"}],"provenance":"source"},"vendorSlug":"shokoanime","affectedVersions":[{"vendor":"ShokoAnime","product":"ShokoServer","versions":["<= 4.2.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-09-23T18:39:58.906095Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"ShokoServer, the media server used for organising anime, contains an arbitrary file read flaw in its /api/Image/WithPath endpoint, where the serverImagePath parameter is passed unsanitised to file-opening code. An unauthenticated remote attacker with network access to the server can exploit this to read arbitrary files, and the impact is greater on Windows installations, which run the server with administrator privileges.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:18:51Z"},"euvd":{"id":"EUVD-2023-48050","exploited":false,"provenance":"source"}}