Skip to content

Commit 87d66c6

Browse files
committed
Rust: Clean up the .qhelp a little.
1 parent bb78fdf commit 87d66c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rust/ql/src/queries/security/CWE-295/DisabledCertificateCheck.qhelp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55

66
<overview>
77
<p>
8-
In Rust, the <code>danger_accept_invalid_certs</code> and <code>danger_accept_invalid_hostnames</code> options on TLS connectors and HTTP clients control whether certificate and hostname verification are performed. If set to <code>true</code>, the client will accept any certificate and any host name, making it susceptible to man-in-the-middle attacks.
8+
The <code>danger_accept_invalid_certs</code> and <code>danger_accept_invalid_hostnames</code> options on TLS connectors and HTTP clients control whether certificate and hostname verification are performed. If set to <code>true</code>, the client will accept any certificate or any host name, making it susceptible to man-in-the-middle attacks.
99
</p>
1010
</overview>
1111

1212
<recommendation>
1313
<p>
14-
Do not set <code>danger_accept_invalid_certs</code> or <code>danger_accept_invalid_hostnames</code> to <code>true</code> except in tests or controlled environments. In production, always ensure certificate and hostname verification are enabled to prevent security risks.
14+
Do not set <code>danger_accept_invalid_certs</code> or <code>danger_accept_invalid_hostnames</code> to <code>true</code> except in controlled environments such as tests. In production, always ensure certificate and hostname verification are enabled to prevent security risks.
1515
</p>
1616
</recommendation>
1717

@@ -21,7 +21,7 @@ The following code snippet shows a function that creates a TLS or HTTP client wi
2121
</p>
2222
<sample src="DisabledCertificateCheckBad.rs"/>
2323
<p>
24-
While this may be acceptable in a test, it should not be used in production code. Instead, always configure clients to verify certificates and hostnames:
24+
In production code, always configure clients to verify certificates and hostnames:
2525
</p>
2626
<sample src="DisabledCertificateCheckGood.rs"/>
2727
</example>

0 commit comments

Comments
 (0)