CWE-12
Weakness AllowedASP.NET Misconfiguration: Missing Custom Error Page
Abstraction: Variant · Status: Draft
An ASP .NET application must enable custom error pages in order to prevent attackers from mining information from the framework's built-in responses.
Mapping guidance
This CWE entry is at the Variant level of abstraction, which is a preferred level of abstraction for mapping to the root causes of vulnerabilities.
Carefully read both the name and description to ensure that this mapping is an appropriate fit. Do not try to 'force' a mapping to a lower-level Base/Variant simply to comply with this preferred level of abstraction.
Modes of introduction
Detection methods
Automated Static Analysis
Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
Content history
updated References, Demonstrative_Example, Potential_Mitigations, Time_of_Introduction
updated Relationships, Other_Notes, References, Taxonomy_Mappings
updated Relationships
updated Common_Consequences, Other_Notes, Potential_Mitigations
updated Name, Relationships
updated Background_Details, Common_Consequences, Other_Notes
updated Common_Consequences
updated Common_Consequences
updated Demonstrative_Examples, Relationships
updated Potential_Mitigations
updated Potential_Mitigations
updated Relationships
updated Demonstrative_Examples, Potential_Mitigations, References, Relationships
updated References, Relationships
updated Relationships
updated Mapping_Notes
updated References
updated Weakness_Ordinalities
updated Detection_Factors, References
1 vulnerability references this CWE, most recent first.
CVE-2020-6994 (GCVE-0-2020-6994)
Vulnerability from cvelistv5 – Published: 2020-04-03 18:04 – Updated: 2024-08-04 09:18- CWE-12 - BUFFER COPY WITHOUT CHECKING SIZE OF INPUT ('CLASSIC BUFFER OVERFLOW') CWE-12
| URL | Tags |
|---|---|
| https://www.us-cert.gov/ics/advisories/icsa-20-091-01 | x_refsource_MISC |
| Vendor | Product | Version | |
|---|---|---|---|
| Hirschmann Automation and Control GmbH, a division of Belden Inc. | HiOS for the following devices RSP, RSPE, RSPS, RSPL, MSP, EES, EES, EESX, GRS, OS, RED |
Affected:
07.0.02 and lower
|
|
| Hirschmann Automation and Control GmbH, a division of Belden Inc. | HiSecOS for device EAGLE20/30 |
Affected:
03.2.00 and lower
|
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2024-08-04T09:18:02.906Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_refsource_MISC",
"x_transferred"
],
"url": "https://www.us-cert.gov/ics/advisories/icsa-20-091-01"
}
],
"title": "CVE Program Container"
}
],
"cna": {
"affected": [
{
"product": "HiOS for the following devices RSP, RSPE, RSPS, RSPL, MSP, EES, EES, EESX, GRS, OS, RED",
"vendor": "Hirschmann Automation and Control GmbH, a division of Belden Inc.",
"versions": [
{
"status": "affected",
"version": "07.0.02 and lower"
}
]
},
{
"product": "HiSecOS for device EAGLE20/30",
"vendor": "Hirschmann Automation and Control GmbH, a division of Belden Inc.",
"versions": [
{
"status": "affected",
"version": "03.2.00 and lower"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "A buffer overflow vulnerability was found in some devices of Hirschmann Automation and Control HiOS and HiSecOS. The vulnerability is due to improper parsing of URL arguments. An attacker could exploit this vulnerability by specially crafting HTTP requests to overflow an internal buffer. The following devices using HiOS Version 07.0.02 and lower are affected: RSP, RSPE, RSPS, RSPL, MSP, EES, EES, EESX, GRS, OS, RED. The following devices using HiSecOS Version 03.2.00 and lower are affected: EAGLE20/30."
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-12",
"description": "BUFFER COPY WITHOUT CHECKING SIZE OF INPUT (\u0027CLASSIC BUFFER OVERFLOW\u0027) CWE-12",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2020-04-03T18:04:59.000Z",
"orgId": "7d14cffa-0d7d-4270-9dc0-52cabd5a23a6",
"shortName": "icscert"
},
"references": [
{
"tags": [
"x_refsource_MISC"
],
"url": "https://www.us-cert.gov/ics/advisories/icsa-20-091-01"
}
],
"x_legacyV4Record": {
"CVE_data_meta": {
"ASSIGNER": "ics-cert@hq.dhs.gov",
"ID": "CVE-2020-6994",
"STATE": "PUBLIC"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "HiOS for the following devices RSP, RSPE, RSPS, RSPL, MSP, EES, EES, EESX, GRS, OS, RED",
"version": {
"version_data": [
{
"version_value": "07.0.02 and lower"
}
]
}
},
{
"product_name": "HiSecOS for device EAGLE20/30",
"version": {
"version_data": [
{
"version_value": "03.2.00 and lower"
}
]
}
}
]
},
"vendor_name": "Hirschmann Automation and Control GmbH, a division of Belden Inc."
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "A buffer overflow vulnerability was found in some devices of Hirschmann Automation and Control HiOS and HiSecOS. The vulnerability is due to improper parsing of URL arguments. An attacker could exploit this vulnerability by specially crafting HTTP requests to overflow an internal buffer. The following devices using HiOS Version 07.0.02 and lower are affected: RSP, RSPE, RSPS, RSPL, MSP, EES, EES, EESX, GRS, OS, RED. The following devices using HiSecOS Version 03.2.00 and lower are affected: EAGLE20/30."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "BUFFER COPY WITHOUT CHECKING SIZE OF INPUT (\u0027CLASSIC BUFFER OVERFLOW\u0027) CWE-12"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://www.us-cert.gov/ics/advisories/icsa-20-091-01",
"refsource": "MISC",
"url": "https://www.us-cert.gov/ics/advisories/icsa-20-091-01"
}
]
}
}
}
},
"cveMetadata": {
"assignerOrgId": "7d14cffa-0d7d-4270-9dc0-52cabd5a23a6",
"assignerShortName": "icscert",
"cveId": "CVE-2020-6994",
"datePublished": "2020-04-03T18:04:59.000Z",
"dateReserved": "2020-01-14T00:00:00.000Z",
"dateUpdated": "2024-08-04T09:18:02.906Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
Mitigation
Handle exceptions appropriately in source code. ASP .NET applications should be configured to use custom error pages instead of the framework default page.
Mitigation
Do not attempt to process an error or attempt to mask it.
Mitigation
Verify return values are correct and do not supply sensitive information about the system.
No CAPEC attack patterns related to this CWE.