google / tsunami-security-scanner-plugins

This project aims to provide a central repository for many useful Tsunami Security Scanner plugins.
Apache License 2.0
860 stars 178 forks source link

AI PRP: Request Gardio exposed UI & arbitrary file read #410

Closed maoning closed 2 months ago

maoning commented 3 months ago

Create a Tsunami plugin to find exposed Gardio interface: https://github.com/gradio-app/gradio

Check if the followings are possible via exposed UI:

Please read the rules of engagement first at https://github.com/google/tsunami-security-scanner-plugins/issues/409.

inkz commented 3 months ago

@maoning I would like to take this one :wave:

maoning commented 3 months ago

Hi @inkz,

Thank you for picking up this request! Please make sure the following items are completed before the plugin implementation:

inkz commented 3 months ago

Vulnerability Research

CVE-2023-51449

Affected versions < 4.11.0

One CVE covers both file traversal and SSRF vulnerability. This research focuses on file traversal.

the response is something similar to:

["/tmp/gradio/9dbba294c83fef4e2a0ce799f105514d8e4c6d25/myfile.txt"]

so it is possible to disclose the real path tmp directory and create a subdirectory inside that can be used for successful path traversal

TL:DR Plugin Design

inkz commented 3 months ago

@maoning PR for testbed: https://github.com/google/security-testbeds/pull/38

maoning commented 3 months ago

@inkz Thanks for the detailed analysis. Please submit our participation form and you can start working on the development.

inkz commented 3 months ago

@maoning submitted detector here: https://github.com/google/tsunami-security-scanner-plugins/pull/446

vsutedjo commented 2 months ago

Hi @inkz,

Your PR has been merged. This usually means a reward will be granted. Google will start the internal QC process and the reward amount will be determined based on the quality of the detector report. Please be patient and allow up to a week for the QC process to finish. You'll be notified once the decision is made.

Thanks!

inkz commented 2 months ago

@vsutedjo thank you!

maoning commented 3 weeks ago

@inkz Thank you for the contribution, the reward has been granted.

inkz commented 3 weeks ago

@maoning thank you!