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

[Warning]Config Command Execute in ShuiZe_0x727 v1.0 #160

Open
Leeyangee opened this issue Jul 19, 2023 · 0 comments
Open

[Warning]Config Command Execute in ShuiZe_0x727 v1.0 #160

Leeyangee opened this issue Jul 19, 2023 · 0 comments

Comments

@Leeyangee
Copy link

Leeyangee commented Jul 19, 2023

Vulnerability Product: ShuiZe_0x727 v1.0
Vulnerability version: v1.0
Vulnerability type: Config Command Execute
Vulnerability Details:
Vulnerability location: ShuiZe_0x727/ShuiZe.py -> func: get_GitSensitiveInfo, ShuiZe_0x727/Plugins/infoGather/Intranet/scanPort/scanPort.py -> var: _web_ports

users may guided to set config:/ShuiZe_0x727/iniFile/config.ini, without checking data from unsafe config: /ShuiZe_0x727/iniFile/config.ini and eval variables in n ShuiZe_0x727/ShuiZe.py -> func: get_GitSensitiveInfo, ShuiZe_0x727/Plugins/infoGather/Intranet/scanPort/scanPort.py -> var: _web_ports, causes command execute
image
image

payload: 'connect' if __import__('os').system('echo 触发成功') else 'connect'

PROVE:

Users need to set /ShuiZe_0x727/iniFile/config.ini -> var: GITHUB_TOKEN to trigger this vulnerability(or they download an entire unsafe /ShuiZe_0x727/iniFile/config.ini contains github_token and payload directly)
image

Firstly append a payload in list: /ShuiZe_0x727/iniFile/config.ini -> var: github_keywords
image

Secondly run ShuiZe
example: python3 ShuiZe.py -d steam.com

Thirdly you can find it successfully run cmd: echo 触发成功
image

proved Config Command Execute

discovered by leeya_bug

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