Skip to content

Conversation

@truerick
Copy link
Contributor

  • Update all CWE IDs on MASWE elements of MASVS-PLATFORM

This PR is related to issue OWASP/maswe#30 .

profiles: [L1, L2]
mappings:
masvs-v2: [MASVS-PLATFORM-2, MASVS-CODE-4]
cwe: [79, 20, 829]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

20 is DISCOURAGED.

79 is about the injection and execution of malicious scripts in a web page, while 829 is about the risks associated with incorporating untrusted code or functionality, which can sometimes lead to various security problems but is not, by itself, defined as cross-site scripting.


829 seems like a good fit.

Maybe also https://cwe.mitre.org/data/definitions/830.html

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CWE-830: Inclusion of Web Functionality from an Untrusted Source is a variant of CWE-829: Inclusion of Functionality from Untrusted Control Sphere; it can be a substitute but I wouldn't put both of them.

In the Example 1 of CWE-830 it says:
This webpage is now only as secure as the external domain it is including functionality from. If an attacker compromised the external domain and could add malicious scripts to the weatherwidget.js file, the attacker would have complete control, as seen in any XSS weakness (CWE-79).

I think then MASWE-0070 may lead in the same way to weakness CWE-79 and it should be listed.

Ok removing CWE-20 since better fitting option are available.

truerick and others added 4 commits April 8, 2025 09:16
Add CWE-926 to integrate not only Improper Verification of Broadcast Receiver, but also Improper Export of Android Application Components

Co-authored-by: Carlos Holguera <[email protected]>
Removed CWE-276 after feedback received on bad application of the weakness.
Removed discouraged CWE
Removed iOS from platform list since the MASWE is related specifically to Android elements.
Copy link
Contributor Author

@truerick truerick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Every comment has been discussed or answered.

profiles: [L1, L2]
mappings:
masvs-v2: [MASVS-PLATFORM-2, MASVS-CODE-4]
cwe: [79, 20, 829]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CWE-830: Inclusion of Web Functionality from an Untrusted Source is a variant of CWE-829: Inclusion of Functionality from Untrusted Control Sphere; it can be a substitute but I wouldn't put both of them.

In the Example 1 of CWE-830 it says:
This webpage is now only as secure as the external domain it is including functionality from. If an attacker compromised the external domain and could add malicious scripts to the weatherwidget.js file, the attacker would have complete control, as seen in any XSS weakness (CWE-79).

I think then MASWE-0070 may lead in the same way to weakness CWE-79 and it should be listed.

Ok removing CWE-20 since better fitting option are available.

@cpholguera cpholguera merged commit 0ba9460 into OWASP:master Jul 10, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants