Skip to content
vetkitChecksChangelogDocumentation

vetkit.php.crypto.crypt-static-salt

crypt() is called with a hard-coded salt. Every password then shares the same salt (and legacy DES/MD5 salts are trivially cracked).

Last updated:

Suite: Security

php

crypt() is called with a hard-coded salt. Every password then shares the same salt (and legacy DES/MD5 salts are trivially cracked).

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Use password_hash($password, PASSWORD_DEFAULT), which generates a random salt per password.

References

Source: packages/engine/rules/sast/php.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.