You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: java/ql/src/experimental/Security/CWE/CWE-295/JxBrowserWithoutCertValidation.qhelp
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,14 @@
4
4
<qhelp>
5
5
6
6
<overview>
7
-
<p>JXBrowser is a Java library that allows to embed the Chromium browser inside Java applications.
8
-
The version 6.x.x by default ignores any HTTPS certificate errors thereby allowing man-in-the-middle attacks.
7
+
<p>JxBrowser is a Java library that allows to embed the Chromium browser inside Java applications.
8
+
Versions smaller than 6.24 by default ignore any HTTPS certificate errors thereby allowing man-in-the-middle attacks.
9
9
</p>
10
10
</overview>
11
11
12
12
<recommendation>
13
13
<p>Do either of these:
14
-
<li>Update to version 7.x.x as it now correctly rejects certificate errors by default.</li>
14
+
<li>Update to version 6.24 or 7.x.x as these correctly reject certificate errors by default.</li>
15
15
<li>Add a custom implementation of the <code>LoadHandler</code> interface whose <code>onCertificateError</code> method always returns <b>true</b> indicating that loading should be cancelled.
16
16
Then use the <code>setLoadHandler</code> method with your custom <code>LoadHandler</code> on every <code>Browser</code> you use.</li>
17
17
</p>
@@ -20,12 +20,12 @@ Then use the <code>setLoadHandler</code> method with your custom <code>LoadHandl
20
20
<example>
21
21
<p>The following two examples show two ways of using a <code>Browser</code>. In the 'BAD' case,
22
22
all certificate errors are ignored. In the 'GOOD' case, certificate errors are rejected.</p>
0 commit comments