Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

I found 2 stored XSS vulnerabilities in ChatGPT. The XSS bug was the easy part, but sharing it required bypassing CSP, leveraging a mass assignment issue for client-side path traversal (thanks Critical Thinking - Bug Bounty Podcast) to force a request to a BFLA endpoint. 🧵 [1/5]

77,055 Aufrufe • vor 2 Jahren •via X (Twitter)

10 Kommentare

Profilbild von Ron Masas
Ron Masasvor 2 Jahren

I noticed that when ChatGPT quotes from an uploaded file, clicking on a citation creates a BLOB with the content of the uploaded file and opens it. So, I've uploaded an HTML file and voilà, it was blocked by a CSP policy.

Profilbild von Ron Masas
Ron Masasvor 2 Jahren

Reading the CSP policy I noticed the same nonce value was used which allowed me to bypass it.

Profilbild von Ron Masas
Ron Masasvor 2 Jahren

I shared my conversation with the XSS payload, but when I tried to trigger the XSS from another ChatGPT account, it didn't work because uploaded files are restricted to the account that uploaded them.

Profilbild von Ron Masas
Ron Masasvor 2 Jahren

I found an endpoint used by OpenAI GPTs to manage knowledge files. When a GPT is made public, any knowledge file can be downloaded from any ChatGPT account. While I think it's a very low impact, broken function-level authorization issue, it was perfect for my bug.

Profilbild von Ron Masas
Ron Masasvor 2 Jahren

I then found the last piece of the puzzle: a mass assignment bug in the `/backend-api/conversation` endpoint that allowed me to inject arbitrary metadata into a conversation by pretending to be the assistant. Blog:

Profilbild von TESS
TESSvor 2 Jahren

@ctbbpodcast haha nice one

Profilbild von Ron Masas
Ron Masasvor 2 Jahren

@ctbbpodcast Thanks!

Profilbild von ); 🇵🇸
); 🇵🇸vor 2 Jahren

@ctbbpodcast congrats buddy this is not luck its real try harder ron masas

Profilbild von Nurav
Nuravvor 2 Jahren

@ctbbpodcast Amazing work bru !!!

Profilbild von Maskot-DF2
Maskot-DF2vor 2 Jahren

@ctbbpodcast bugbointy man kkk

Ähnliche Videos