Vulny-Code-Static-Analysis/vulns/md5-loose-equality.php

17 lines
300 B
PHP
Raw Normal View History

2022-04-30 13:00:48 +00:00
<?php
// ruleid: md5-loose-equality
md5("240610708") == "0";
// ruleid: md5-loose-equality
0 == md5("240610708");
// ruleid: md5-loose-equality
0 == md5_file("file.txt");
// ruleid: md5-loose-equality
md5("240610708") == md5_file("file.txt");
// ok: md5-loose-equality
md5("240610708") === "0";