Cesanta MongooseOS/Mongoose Embedded Web Server Library mongoose.c mg_http_multipart_wait_for_boundary POST Request use after free
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.1 | $0-$5k | 0.00 |
Summary
A vulnerability classified as problematic has been found in Cesanta MongooseOS and Mongoose Embedded Web Server Library. This vulnerability affects the function mg_http_multipart_wait_for_boundary of the file mongoose.c. This manipulation as part of POST Request causes use after free.
This vulnerability appears as CVE-2017-7185. The attack may be initiated remotely. In addition, an exploit is available.
Details
A vulnerability has been found in Cesanta MongooseOS and Mongoose Embedded Web Server Library (Web Server) and classified as problematic. Affected by this vulnerability is the function mg_http_multipart_wait_for_boundary of the file mongoose.c. The manipulation as part of a POST Request leads to a use after free vulnerability. The CWE definition for the vulnerability is CWE-416. Referencing memory after it has been freed can cause a program to crash, use unexpected values, or execute code. As an impact it is known to affect availability. The summary by CVE is:
Use-after-free vulnerability in the mg_http_multipart_wait_for_boundary function in mongoose.c in Cesanta Mongoose Embedded Web Server Library 6.7 and earlier and Mongoose OS 1.2 and earlier allows remote attackers to cause a denial of service (crash) via a multipart/form-data POST request without a MIME boundary string.
The bug was discovered 04/04/2017. The weakness was presented 04/10/2017 as not defined posting (Bugtraq). The advisory is shared at securityfocus.com. This vulnerability is known as CVE-2017-7185 since 03/19/2017. The exploitation appears to be easy. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details and also a public exploit are known.
It is possible to download the exploit at exploit-db.com. It is declared as proof-of-concept. The vulnerability was handled as a non-public zero-day exploit for at least 6 days. During that time the estimated underground price was around $0-$5k.
There is no information about possible countermeasures known. It may be suggested to replace the affected object with an alternative product.
The vulnerability is also documented in the databases at Exploit-DB (41826) and SecurityFocus (BID 97370†). Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Affected
- Cesanta Mongoose Embedded Web Server Library up to 6.7
- Cesanta MongooseOS up to 1.2
Product
Type
Vendor
Name
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.4VulDB Meta Temp Score: 6.2
VulDB Base Score: 5.3
VulDB Temp Score: 5.0
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 7.5
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Use after freeCWE: CWE-416 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Exploit-DB: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: no mitigation knownStatus: 🔍
0-Day Time: 🔍
Patch: github.com
Timeline
03/19/2017 🔍04/04/2017 🔍
04/04/2017 🔍
04/10/2017 🔍
04/10/2017 🔍
04/11/2017 🔍
07/13/2024 🔍
Sources
Advisory: 042eb437973a202d00589b13d628181c6de5cf5b⛔Status: Not defined
Confirmation: 🔍
CVE: CVE-2017-7185 (🔍)
GCVE (CVE): GCVE-0-2017-7185
GCVE (VulDB): GCVE-100-99553
SecurityFocus: 97370 - Mongoose OS CVE-2017-7185 Use After Free Denial of Service Vulnerability
OSVDB: - CVE-2017-7185 - Cesanta - Multiple Products - Use-After-Free Issue
scip Labs: https://www.scip.ch/en/?labs.20161013
Entry
Created: 04/11/2017 09:45Updated: 07/13/2024 13:51
Changes: 04/11/2017 09:45 (64), 08/28/2020 16:54 (7), 11/28/2022 08:57 (5), 07/13/2024 13:51 (16)
Complete: 🔍
Cache ID: 216:B5F:103
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
No comments yet. Languages: en.
Please log in to comment.