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

LS Retail Magento 2 lsretailomni/lsmag-two uncontrolled filesystem access #103

Open
lbajsarowicz opened this issue Apr 25, 2023 · 0 comments

Comments

@lbajsarowicz
Copy link

lbajsarowicz commented Apr 25, 2023

Long-term issue in LS Retail extension:

https://github.com/lsretailomni/lsmag-two/blob/cb6e8013c1acf8e88d25c6659c7a4570f04c2017/src/Replication/Controller/Adminhtml/Logs/Report.php#L96-L112

Fixed in the 2.3.0 version (lsretailomni/lsmag-two@02f373a) but all the versions below are vulnerable. Any Administrator can access not only /etc/passwd, but also app/etc/env.php or even remove it!

Exploit

As a result, with a modified URL, you can display env.php or Server’s /etc/passwd (?log_filename=../../app/etc/env.php) and remove its contents (?log_filename=../../app/etc/env.php&submission=Clear).

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