Quantcast
Viewing all articles
Browse latest Browse all 2663

Potential leak of data: Simple Password

Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘: dataType: 'json', success: function(output_string){ $('#result_table').append(output_string); } )); }); </script> </body> </html> <?php $hostname = 'myhost.com'; $username = 'ratetable'; $password = 'mypassword'; $miles = (int) $_POST['miles']; try { $db = new PDO("mysql:host=$hostname;dbname=ratetable", $username, $password); foreach($db->query('SELECT * FROM rates WHERE mileage<= ' . $miles . ' ORDER BY mileage DESC LIMIT 1') […]

Viewing all articles
Browse latest Browse all 2663

Trending Articles