S4E just found a high-severity finding from top 10 tcp port service scan
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
high·Product Based Web Vulnerabilities·Updated Nov 26, 2024

CVE-2024-35219 Scanner

CVE-2024-35219 Scanner - Arbitrary File Read vulnerability in OpenAPI Generator

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsdomain, ipv4, subdomain
CostFree
3.4k
Times Used
continuous scan runs
4.8k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2024-35219
8.3
CVSShigh
Exploitable remotely over the internet · low-privilege account sufficient.

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec. Prior to version 7.6.0, attackers can exploit a path traversal vulnerability to read and delete files and folders from an arbitrary, writable directory as anyone can set the output folder when submitting the request via the `outputFolder` option. The issue was fixed in version 7.6.0 by removing the usage of the `outputFolder` option. No known workarounds are available.

Attack Vector
Network
Privileges Req.
Low
User Interaction
None
Affected
openapi-generatorby OpenAPITools
< 7.6.0
openapi-generatorby openapitools
AFFECTED< 7.6.0SAFE ✓≥ 7.6.0
Updated Aug 22, 2026View on NVD →
Detail

OpenAPI Generator is widely used by developers, organizations, and software engineers to automate the generation of API clients, server stubs, API documentation, and configuration from a standard OpenAPI description. It serves many businesses and open-source projects by providing a toolset that simplifies integrating APIs across various platforms and languages. OpenAPI Generator enhances the ability to efficiently manage and update API specifications, offering features that facilitate seamless API management in an automated fashion. Its functionality supports developers in generating efficient, customizable, and up-to-date code that is ready to integrate with applications, services, or environments. Organizations leverage this tool to maintain consistent API design, improve productivity, and uphold high development standards. Security practices around such tools are critical due to their impact on how services communicate and handle data flows.

An Arbitrary File Read vulnerability allows unauthorized users to access potentially sensitive files on a server. This kind of vulnerability may be exploited by attackers to read files that should not be publicly accessible, which could include configurations, passwords, or database files, among others. Such a flaw usually arises when file paths are improperly validated or when insufficient access controls are in place, granting attackers the ability to specify file paths that the application reads. The exploitation of this vulnerability compromises the confidentiality of the data stored, as unauthorized individuals could glean sensitive or proprietary information. This vulnerability emphasizes the necessity for diligent input validation and proper access control measures to mitigate potential exploitations effectively. Continual updates and patches play a crucial role in preventing such vulnerabilities from being exploited.

The vulnerability in OpenAPI Generator specifically involves inadequate checks on user-provided paths, allowing an attacker to change file paths through manipulated inputs. The vulnerable endpoint is associated with the '/api/gen/clients/csharp' resource, where an attacker can specify an arbitrary 'outputFolder' path. In the workflow of the generator, the tool processes the path in such a manner that files from sensitive directories could be read if the path traversal is not constrained. Attackers can trigger this vulnerability through crafted HTTP requests that pivot through file operations to gain unauthorized file access. The combination of path alteration and lack of access restrictions facilitates the read operations on unintended directories. The issue necessitates code-level remedial action to enhance the validation and constraints around directory or file access.

Exploiting this vulnerability can lead to exposing sensitive files and data on the server, potentially breaching the confidentiality and integrity of the system's information. If a malicious entity accesses unauthorized directories, they can gain insights into critical system configurations, user credentials, or other classified materials. The impact can escalate to broader security breaches, including leveraging accessed data for further exploitation or launching targeted attacks. Organizations may face significant operational disruptions, financial losses, and reputational damage as a result. Securing systems against such vulnerabilities involves tightening the control measures around file operations, reinforcing access permissions, and implementing comprehensive logging and monitoring for anomalous activities.

REFERENCES

Solution Advice
  • Ensure that any user input used for file path construction is correctly validated and handled by the application.
  • Update or patch the OpenAPI Generator to its latest version where such vulnerabilities have been addressed.
  • Implement strict access control measures to restrict file access to authorized users only.
  • Regularly audit and monitor application logs for any unauthorized access patterns or anomalies.
  • Conduct routine security assessments and code reviews focusing on file handling operations.

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.