haseeb-heaven / coderunner-chatgpt

Run and save the code in Chat-GPT directly in your browser, Supports upto 70+ languages.
http://code-runner.heavenplugins.com
Other
39 stars 18 forks source link

ChatGPT Code Runner Plugin RCE #7

Open 1chig0 opened 11 months ago

1chig0 commented 11 months ago

ChatGPT Code Runner Plugin RCE

Overview of the Vulnerability

During our test, We occasionally found a Remote code execution (RCE) in a ChatGPT plugin, Code Runner, which may cause potential losses to the developer.

Steps to Reproduce

Proof of Concept

The screenshot below demonstrates the RCE in the application through the specified parameter:

image

Suggestion

Add a sanitizer to check the sensitive code. "Don't rely on ChatGPT for sanitization.

haseeb-heaven commented 11 months ago

Thanks for suggestion, you are welcome to open PR if you want to solve this issue.