Live data from Hacker News

Payment iframe - the easiest way to insert Stripe into your website

paymentiframe.com

71–80 of 84 posts

Re: Payment iframe - the easiest way to insert Stripe into your website

#71

Earlier quoted context omitted.

@cperciva – it is and it isn't. Implicit vs explicit. This answer expands: http://stackoverflow.com/a/3978372

This reminds me of the WAT talk. It's also crazy enough that I wouldn't want to trust that every browser in the world will always share that same behaviour.

This document.domain behaviour is documented as part of the HTML spec:

http://www.whatwg.org/specs/web-apps/current-work/multipage/...

Re: Payment iframe - the easiest way to insert Stripe into your website

#72
post #55

Earlier quoted context omitted.

I think highly of you, but my irritation here has more to do with being shouted down about getting crazy third party JS services off banking applications than it does with who runs this particular static iframe. I think this issue is LITERALLY this simple: people are accustomed to third-party applications that work by "just copy this tiny snippet of JS code into your layout template", and all the cool kids do it, so…

Agreed, people are far too casual about dropping random javascript into their web sites. (I tried to make this point last year when I blogged about how Iran should have forged an SSL certificate for ssl.google-analytics.com instead of *.google.com, but that blog post didn't get much attention sadly.)

Great article! (The URL is http://www.daemonology.net/blog/2011-09-01-Iran-forged-the-w... in case anyone wonders.)

It surely gives food for thought.

Re: Payment iframe - the easiest way to insert Stripe into your website

#73
post #37

If I was Stripe I'd be politely asking you to take this down. It's using their trademark (presumably) without permission and encouraging their users to do something very inadvisable. Offering to host this seems like a really bad idea. I know you're well meaning and trustworthy, but this shouldn't be run by a third party. For long term reliability reasons as much as security.

I showed it to people at Stripe before announcing it.

Showing it "to people at Stripe" and getting permission to use it are two different things.

Re: Payment iframe - the easiest way to insert Stripe into your website

#74
post #4

Stripe is meant for developers, and it is quite easy to integrate using their javascript api. If you can code a form you write basic javascript you can integrate stripe.

Exactly. Stripe is probably one of the easiest integrations I've ever done. In fact, their tutorials are so well written and their signup so frictionless that I'd say that any interested website creator should have little trouble setting up a form actually using stripe instead of an iframe.

The whole point of the iframe is that it prevents the code from inside the iframe (ie the payment handling code that sends data to stripe) from having access to the parent page's data. Sometimes the CC info isn't the most sensitive info a user has given that website (particularly for a service that manages your online backups).

Re: Payment iframe - the easiest way to insert Stripe into your website

#75
post #73

Earlier quoted context omitted.

I showed it to people at Stripe before announcing it.

Showing it "to people at Stripe" and getting permission to use it are two different things.

I asked if it was OK; they said it was.

Re: Payment iframe - the easiest way to insert Stripe into your website

#76

Please don't use this. There is nothing stopping paymentiframe.com from taking your customer's credit card numbers.

By using this, you're saying that you trust cperciva more than you trust Stripe. I'm confident that neither are going to try and deliberately steal your credit card numbers. But furthermore, you are saying that cperciva is going to protect paymentiframe.com from hacks better than stripe is going to protect theirs. Myself, I'd place a lot of trust on cperciva, the former FreeBSD security officer, a guy who has written…

> Myself, I'd place a lot of trust on cperciva

Sure, but you can just compare the two sites' external measures of security, and they're not even close.

Stripe domains:

- Pass optional HTTP security headers (like X-Frame-Options on manage.stripe.com)

- Are pinned to Chrome's HSTS list (http://src.chromium.org/viewvc/chrome?view=rev&revision=...) and pass a Strict-Transport-Security header

Re: Payment iframe - the easiest way to insert Stripe into your website

#77
post #76

Earlier quoted context omitted.

By using this, you're saying that you trust cperciva more than you trust Stripe. I'm confident that neither are going to try and deliberately steal your credit card numbers. But furthermore, you are saying that cperciva is going to protect paymentiframe.com from hacks better than stripe is going to protect theirs. Myself, I'd place a lot of trust on cperciva, the former FreeBSD security officer, a guy who has written…

> Myself, I'd place a lot of trust on cperciva Sure, but you can just compare the two sites' external measures of security, and they're not even close. Stripe domains: - Pass optional HTTP security headers (like X-Frame-Options on manage.stripe.com) - Are pinned to Chrome's HSTS list ( http://src.chromium.org/viewvc/chrome?view=rev&revision=... ) and pass a Strict-Transport-Security header

Aren't you comparing Colin's iframe with a level of security unobtainable to normal Stripe developers? If you just use Stripe's JS interface the way they tell you to, you're not strictly speaking benefiting from Stripe's HSTS or XFO; your site still needs to defend against clickjacking and SSL stripping.

I feel like Colin built this little thingy to solve a real problem --- that by adding Stripe to his site, he was giving Stripe control over his site, and his site hosts information more sensitive than credit cards --- and people are piling on because his solution to his little problem doesn't solve every other imaginable security problem.

This would be less galling if the kinds of sites using Stripe today weren't almost uniformly rife with application security flaws that defeat most of the good intentions that Stripe has.

Post reply on HN