S4E just found a medium-severity finding from ai rule artifact file disclosure scanner
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
high·Product Based Web Vulnerabilities·Updated Oct 8, 2024

CVE-2023-43662 Scanner

CVE-2023-43662 Scanner - Local File Inclusion (LFI) vulnerability in ShokoServer System

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsurl
CostFree
2.2k
Times Used
continuous scan runs
4.4k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2023-43662
8.6
CVSShigh
Exploitable remotely over the internet · no authentication required.

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.

Attack Vector
Network
Privileges Req.
None
User Interaction
None
Affected
ShokoServerby ShokoAnime
<= 4.2.2
Updated Aug 22, 2026View on NVD →
Detail

ShokoServer is commonly used by anime enthusiasts to manage and organize anime libraries. It's known for its robust features that cater specifically to the needs of anime collection organization, offering a user-friendly interface. The software serves users who are interested in cataloging their digital anime collections efficiently. It provides comprehensive metadata, aiding users in having detailed information about their collections. Due to its utility, ShokoServer is often run on personal computers and servers and is supported by a community of developers and contributors. It is open source, allowing for adaptability and regular updates from its community.

The Local File Inclusion (LFI) vulnerability allows attackers to include files on a server through the web browser. This is generally caused by improper handling of user input, where file path input isn't properly sanitized. In ShokoServer, the vulnerability occurs because the `/api/Image/WithPath` endpoint accepts unsanitized user input, leading to the unintended reading of potentially sensitive files. Such exploits can be done without authentication, increasing the risk to exposed systems. This vulnerability was identified as allowing arbitrary file reads, which can expose critical system files. As a result, the security of systems using affected versions of ShokoServer is compromised.

The vulnerability is particularly exhibited through the `/api/Image/WithPath` endpoint. It is exploited when an attacker sends a request to the endpoint with a specially crafted path. The lack of validation or sanitization allows this endpoint to read any file system path that's accessible to the service. In technical terms, the parameter `serverImagePath` is directly used in system calls, leading to an unintended file read operation. Exploitation involves crafting a request to manipulate this endpoint, bypassing its intended functionality entirely and accessing any readable files. The mechanism involves injecting file paths that traverse directories to access secure files.

If this vulnerability is exploited, unauthorized users could gain access to sensitive files and information stored on the server. Such access could include configuration files, application data, or other sensitive materials not meant for public viewing. For systems running as administrators, especially on Windows, the impact could be significantly more severe, as system-level files could be exposed. These potential data exposures could lead to further exploitation, information disclosure, and compromise of system integrity. It poses a considerable security threat, especially if exploited by a determined malicious actor.

REFERENCES

Solution Advice
  • Update to the latest release where the endpoint `/api/Image/WithPath` has been removed or patched.
  • Temporarily restrict access to the vulnerable endpoint to prevent unauthorized exploitation.
  • Implement input validation and sanitization for file path parameters to avoid unsanitized user input leading to file inclusion.
  • Review and apply security patches from the developer community as they become available.
  • Consider setting up monitoring to detect unauthorized access attempts on sensitive endpoints.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.