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

Account Takeover through Login/Redirect #1042

Open
grozdniyandy opened this issue Nov 7, 2023 · 8 comments
Open

Account Takeover through Login/Redirect #1042

grozdniyandy opened this issue Nov 7, 2023 · 8 comments

Comments

@grozdniyandy
Copy link

Description

Login credentials should be posted only via POST request but get sent via GET request.

Proof of Concept

https://demo.microweber.org/v2/api/user_login?username=admin&password=password&http_redirect=1&where_to=admin_content

Impact

Attacker will get credentials through traffic as they are passed in GET request

Remediation

I think the problem is with the redirect after login. I am not a programmer but maybe issue is related to this code

                <?php if (isset($_GET['redirect'])): ?>
                <input type="hidden" value="<?php echo mw()->format->clean_xss($_GET['redirect']); ?>" name="redirect">
                <?php endif; ?>

Reference

https://cwe.mitre.org/data/definitions/598.html - Use of GET Request Method With Sensitive Query Strings

CVSS Score

image

Request

It would be great if it is possible to assign a CVE as huntr dev is not accepting reports to your repo.

@peter-mw
Copy link
Member

peter-mw commented Nov 8, 2023

Thanks for report. Fixed for version 2.0.4

@grozdniyandy
Copy link
Author

Thanks for the reply. Is there any way to hunt and get CVEs, because huntr.dev (huntr.com) is no longer accepting responses and I really wanna pentest your product.

@peter-mw
Copy link
Member

peter-mw commented Nov 8, 2023

hi , can you try to submit from the profile link https://huntr.com/repos/microweber/microweber

@grozdniyandy
Copy link
Author

It doesn't get submitted no matter what I do, i guess the product isn't supported anymore.

image

image

@peter-mw
Copy link
Member

peter-mw commented Nov 8, 2023

Hi, i have send them a message from the contact form at https://huntr.com/contact-us

@grozdniyandy
Copy link
Author

Thanks! Please let me know if there is any update!

@peter-mw
Copy link
Member

peter-mw commented Nov 8, 2023

This is what i got as response on discord

image

image

@grozdniyandy
Copy link
Author

That's sad, I submitted CVE to MITRE, hopefully they will reply. Thanks for contacting them!

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

2 participants