vibesecurity.review

CWE-295

Improper certificate validation

Keep TLS certificate checks enabled so a client can verify the server's identity.

What can go wrong

If a client accepts the wrong server certificate, it can open an encrypted connection to an impostor. The impostor may be able to read information sent by the client or change what it receives.

Check your application

Check which client settings are active in the deployed application and which server identity the client expects. Consider the data it sends and the operations that trust the response.

How to fix it

  • Keep certificate and hostname validation enabled in the TLS client.
  • Fix certificate chain or hostname problems at their source. For a private service, configure the approved private certificate authority in the client's trust settings.
  • Test certificate renewal and confirm that the client rejects untrusted, expired, and wrong-host certificates in staging.

References