File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
cpp/ql/src/experimental/Security/CWE/CWE-295 Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE qhelp PUBLIC "-//Semmle//qhelp//EN" "qhelp.dtd">
2
2
<qhelp >
3
3
<overview >
4
- Disabling verification of the SSL certificate allows man-in-the-middle attacks.
5
- A SSL connection is vulnerable to man-in-the-middle attacks if the certification is not checked
6
- properly.
7
- If the peer or the host's certificate verification is not verified, the underlying SSL
8
- communication is insecure.
4
+ < p >
5
+ Disabling verification of the SSL certificate allows man-in-the-middle attacks. A SSL
6
+ connection is vulnerable to man-in-the-middle attacks if the certification is not checked
7
+ properly. If the peer or the host's certificate verification is not verified, the underlying
8
+ SSL communication is insecure.</ p >
9
9
</overview >
10
10
<recommendation >
11
- It is recommended that all communications be done post verification of the host as well as the
12
- peer.
11
+ <p >It is recommended that all communications be done post verification of the host as well as
12
+ the
13
+ peer.</p >
13
14
</recommendation >
14
15
<example >
15
16
<p >The following snippet disables certification verification by setting the value of <code >
27
28
<li > Related CVE: <a href =" https://github.com/advisories/GHSA-5r3h-c3r7-9w4h" > CVE-2022-33684</a ></li >
28
29
<li > Related security advisory: <a
29
30
href =" https://huntr.com/bounties/42325662-6329-4e04-875a-49e2f5d69f78" >
30
- < code > openframeworks/openframeworks</ code >
31
+ openframeworks/openframeworks
31
32
</a ></li >
32
33
</references >
33
34
</qhelp >
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ private class CurlVerificationConstant extends EnumConstantAccess {
34
34
35
35
from CurlSetOptCall c
36
36
where
37
- c .getArgument ( 1 ) = any ( CurlVerificationConstant v )
38
- and
37
+ c .getArgument ( 1 ) = any ( CurlVerificationConstant v ) and
39
38
c .getArgument ( 2 ) .getValue ( ) = "0"
40
39
select c , "This call disables Secure Socket Layer and could potentially lead to MITM attacks"
You can’t perform that action at this time.
0 commit comments