GHSA-3r7j-8mqh-6qhx

Suggest an improvement
Source
https://github.com/advisories/GHSA-3r7j-8mqh-6qhx
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/10/GHSA-3r7j-8mqh-6qhx/GHSA-3r7j-8mqh-6qhx.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-3r7j-8mqh-6qhx
Aliases
Published
2022-10-20T18:20:28Z
Modified
2024-12-01T05:32:55.983296Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Jadx-gui vulnerable to swing HTML Denial of Service (DoS) attack
Details

Impact

Using jadx-gui to open a special zip file with entry containing HTML sequence like <html><frame> will cause interface to get stuck and throw exceptions like:

java.lang.RuntimeException: Can't build aframeset, BranchElement(frameset) 1,3
:no ROWS or COLS defined.
    at java.desktop/javax.swing.text.html.HTMLEditorKit$HTMLFactory.create(HTMLEditorKit.java:1387)
    at java.desktop/javax.swing.plaf.basic.BasicHTML$BasicHTMLViewFactory.create(BasicHTML.java:379)
    at java.desktop/javax.swing.text.CompositeView.loadChildren(CompositeView.java:112)

References

https://www.oracle.com/java/technologies/javase/seccodeguide.html

Guideline 3-7 / INJECT-7: Disable HTML display in Swing components:

Many Swing pluggable look-and-feels interpret text in certain components starting with <html> as HTML. If the text is from an untrusted source, an adversary may craft the HTML such that other components appear to be present or to perform inclusion attacks.

To disable the HTML render feature, set the "html.disable" client property of each component to Boolean.TRUE (no other Boolean true instance will do).

label.putClientProperty("html.disable", true);
Database specific
{
    "nvd_published_at": "2022-10-21T23:15:00Z",
    "cwe_ids": [],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2022-10-20T18:20:28Z"
}
References

Affected packages

Maven / io.github.skylot:jadx-plugins-api

Package

Name
io.github.skylot:jadx-plugins-api
View open source insights on deps.dev
Purl
pkg:maven/io.github.skylot/jadx-plugins-api

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.4.5

Affected versions

1.*

1.3.1
1.3.2
1.3.3
1.3.4
1.3.5
1.4.0
1.4.1
1.4.2
1.4.3
1.4.4

Database specific

{
    "last_known_affected_version_range": "<= 1.4.4"
}