CWE-102
Weakness AllowedStruts: Duplicate Validation Forms
Abstraction: Variant · Status: Incomplete
The product uses multiple Struts validation forms with the same name.
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.
Relationships and members
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 Demonstrative_Example, Potential_Mitigations, Time_of_Introduction
updated Relationships, Other_Notes, Taxonomy_Mappings, Weakness_Ordinalities
updated Description, Other_Notes, Potential_Mitigations
updated Relationships
updated Demonstrative_Examples
updated Background_Details, Common_Consequences, Other_Notes
updated Background_Details, Common_Consequences
updated Common_Consequences
updated Common_Consequences
updated Relationships
updated Relationships, Taxonomy_Mappings
updated Causal_Nature, Relationships
updated Relationships
updated References, Relationships
updated Demonstrative_Examples, Description
updated Relationships
updated Mapping_Notes
updated Demonstrative_Examples
updated Common_Consequences, Description, Detection_Factors, References
1 vulnerability references this CWE, most recent first.
GHSA-5G7J-9R76-23CC
Vulnerability from github – Published: 2022-12-20 18:30 – Updated: 2022-12-20 18:30In onCreate of various files, there is a possible tapjacking/overlay attack. This could lead to local escalation of privilege or denial of server with User execution privileges needed. User interaction is not needed for exploitation.Product: AndroidVersions: Android-13Android ID: A-227203202
{
"affected": [],
"aliases": [
"CVE-2022-20520"
],
"database_specific": {
"cwe_ids": [
"CWE-102",
"CWE-1021"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2022-12-16T16:15:00Z",
"severity": "HIGH"
},
"details": "In onCreate of various files, there is a possible tapjacking/overlay attack. This could lead to local escalation of privilege or denial of server with User execution privileges needed. User interaction is not needed for exploitation.Product: AndroidVersions: Android-13Android ID: A-227203202",
"id": "GHSA-5g7j-9r76-23cc",
"modified": "2022-12-20T18:30:20Z",
"published": "2022-12-20T18:30:20Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-20520"
},
{
"type": "WEB",
"url": "https://source.android.com/security/bulletin/pixel/2022-12-01"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
Mitigation
The DTD or schema validation will not catch the duplicate occurrence of the same form name. To find the issue in the implementation, manual checks or automated static analysis could be applied to the xml configuration files.
No CAPEC attack patterns related to this CWE.