CVE-2023-2512: Prior to version v1.20230419.0, the FormData API implementat..
cloudflare
•
May 12, 2023
•
May 26, 2023
Description
Prior to version v1.20230419.0, the FormData API implementation was subject to an integer overflow. If a FormData instance contained more than 2^31 elements, the forEach() method could end up reading from the wrong location in memory while iterating over elements. This would most likely lead to a segmentation fault, but could theoretically allow arbitrary undefined behavior. In order for the bug to be exploitable, the process would need to be able to allocate 160GB of RAM. Due to this, the bug was never exploitable on the Cloudflare Workers platform, but could theoretically be exploitable on deployments of workerd running on machines with a huge amount of memory. Moreover, in order to be remotely exploited, an attacker would have to upload a single form-encoded HTTP request of at least tens of gigabytes in size. The application code would then have to use request.formData() to parse the request and formData.forEach() to iterate over this data. Due to these limitations, the exploitation likelihood was considered Low. A fix that addresses this vulnerability has been released in version v1.20230419.0 and users are encouraged to update to the latest version available.
Products affected:
cloudflare» workerd » *
In a few clicks Akto can analyze your API attack surface and see what APIs are vulnerable to OWASP Top 10 and other common CWEs.
Severity
8.1
/
10
CVSS base metrics
Attack vector
NETWORK
Attack complexity
HIGH
Privileges required
HIGH
User interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Exploitability Score
2.2
Impact Score
5.9
Weakness
CWE-190__CWE-125__
Learn from academy
What is API?
Types of APIs
REST API
GraphQL
JSON-RPC
XML-RPC
SOAP API
REST vs SOAP
GraphQL vs REST
GET Method
POST Method
PUT Method
DELETE Method
GET vs POST
PUT vs POST
GraphQL Authentication and Authorization
GraphQL Introspection
GraphQL Query
GraphQL Mutation
GraphQL Pagination
GraphQL Subscription
GraphQL Fragment
API Documentation
Swagger for API Documentation
OpenAPI Specification
Authentication
Authorization
Detect Insecure Dependencies using GitHub Copilot
Detect SQL Injection Using Github Copilot
Ensure Data Encryption using Github Copilot
Validate Input Sanitization using Github Copilot
Review Authentication Mechanism using Github Copilot
Check for Secure Communication Protocols using Github Copilot
How Github Copilot Helps in Auditing Logging Practices
Enforce Principle of Least Privilege with GitHub Copilot
Secure File Uploads with GitHub Copilot
Find CSRF Vulnerabilities with GitHub Copilot
Detect Hardcoded Secrets with GitHub Copilot
Assess CORS Configuration with GitHub Copilot
Evaluate Session Management with GitHub Copilot
Related tests
JWT authentication bypass via jku header injection
eSMTP - Config Discovery
Nginx - Git Configuration Exposure
Laravel - Sensitive Information Disclosure
Docker Container - Misconfiguration Exposure
Msmtp - Config Exposure
Parameters.yml - File Discovery
Mongo Express - Unauthenticated Access
Apache Airflow Configuration Exposure
Dockerrun AWS Configuration Exposure
Apache Config file disclosure
Appspec Yml Disclosure
Explore more from Akto
Blog
Be updated about everything related to API Security, new API vulnerabilities, industry news and product updates.
Test Library
Discover and find tests from Akto's 100+ API Security test library. Choose your template or add a new template to start your API Security testing.
Documentation
Check out Akto's product documentation for all information related to features and how to use them.