#Thibaut

1 messages · Page 1 of 1 (latest)

ivory islandBOT
main quest
#

What do you mean somebody is using your API key?

#

Note this will require you to change the keys in your live apps

signal lion
#

I'm working with Thibaut. To provide more information, the hacker user our publisahble API key (which is accessible on the frontend of our app). So, he is able to make a large number of request with this key, which trigger the rate limit

#

We are confortable to roll our key, but, as the publishable key is accessible from the browser (we use StripeElement on our frontend), the hacker will use the new key easily

#

Here is an example of the request he make
POST /v1/payment_intents/pi_3McnnaFgrf8fsEG40rc8t3Bz/confirm

main quest
#

Can you share that request ID?

signal lion
#

req_Qbh5vvuGivTBta

main quest
#

req_12345

#

ie, require authentication in order to get your backend to supply a PI + client secret

#

or using captchas etc

signal lion
#

Recaptcha will not be sufficient because the hacker makes just one payment on our application, then use the same paymentIntent for all the calls

#

But, I will take a look on what your said about the client_secret protection

#

One more question: if we protect all the client_secret of the paymentIntents, what will prevent the hacker to makes https call to the stripe API with older paymentIntents ?

robust lake
#

Thanks for your answer! Somebody is here?

main quest
#

Then further confirm calls will not be processed

main quest