Local applications from user's computer can listen for webhooks via insecure gRPC server from stripe-cli
The stripe-cli daemon exposes an unauthenticated local gRPC server, allowing any local application to invoke the Listen procedure and receive all webhooks for the user's Stripe account. An attacker with another application on the victim's computer could execute this procedure to divert webhooks to themselves.
Originally disclosed on HackerOne
- Triaged in 9 days
- Fixed in 15 days
- Paid in 15 days
- Disclosed after 12 months
Summary by the program
The stripe daemon command from the stripe-cli exposes a local gRPC server that does not require authentication and allows any local application to execute remote procedures. One of the procedures is Listen, which is an equivalent to stripe listen command and receives all webhooks for the user's account. To exploit this issue, the attacker must have another application installed on the victim's computer. Once the attacker executes the remote procedure, webhooks from the victims account are sent to the attacker. In response to this report, we removed some information delivered via the webhook. We have otherwise accepted the risk due to physical access, man-in-the-middle, or previous compromise as a prerequisite to this attack.
Summary by the researcher
Interestingly, this bug was never fixed. The developer tried to mitigate the Listen procedure by removing some information delivered via the webhook but he made a typo and this bug still works exactly as it had worked originally. I mentioned the fact in comments and, after 90 days, I submitted another report which was marked as a duplicate.
The attack scenario makes this attack extremely unlikely to affect any Stripe users. I wouldn't have a problem with it being Informational'ed at the beginning but paying out to then not fix the bug made it quite confusing. In the end, I'm happy to walk away with a bounty.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the local gRPC server lacks authentication, so any local process can call its procedures, including Listen.
Impact
An attacker with a local application on the victim's computer could receive the victim's Stripe webhooks, though the vendor accepted the risk due to the prerequisites and later removed some information from webhooks.
What the attacker needed
Another application installed on victim's computer; local access to the machine
The fix
The bug was never properly fixed; an attempted mitigation removed some webhook information but a typo left it working.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A command-line tool for Stripe starts a small server on your own computer that other programs can talk to. That server does not check who is connecting, so any other program on the same machine can ask it to listen for Stripe webhooks and receive them. This means a malicious program already on your computer could steal those webhook messages.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.