TLS verification off
TLS verification off. Turns off certificate checks (rejectUnauthorized: false). Anyone on the network path can read and change this traffic.
This is how the comment reads inline, under the flagged line.
Why it matters
Disabled TLS verification is usually added to get past a dev certificate error and then ships.
What to do
Trust the right CA (pass ca, set REQUESTS_CA_BUNDLE) instead of disabling verification.
Examples
https.request(url, { rejectUnauthorized: false });https.request(url, { ca: internalCa });What it catches
It reads a pattern on each line, aware of strings and comments. Languages: Any file. Scope: All files. These cases are the rule's own tests: the first set must be flagged and the second must not.
Flagged
const a = { rejectUnauthorized: false };src/app.py
requests.get(u, verify=False, timeout=3)
Left alone
const a = { ca };Research
TLS certificate verification turned off. Anyone on the network path can read and change the traffic.
Turn it off or change it
In a config file for the CLI, or in the API's rules field:
{
"rules": {
"disable": [
"tls-off"
],
"severity": {
"tls-off": "low"
}
}
}