Re:Payment iframe - the easiest way to insert Stripe into yo...
by slexaxton on Monday August 13, 2012 @03:06PM
(#4377517)
bentlegen _is_ an expert in third party javascript, and is correct that both domains need to opt in to a `document.domain` even if they would match with only one changing. This is to prevent this exact security exploit.
[ Parent
| on HN ]
Re:Payment iframe - the easiest way to insert Stripe into yo...
by tptacek on Monday August 13, 2012 @03:17PM
(#4377569)
This part of the discussion is a bit of a sideshow, isn't it? PAYMENTS.YOURDOMAIN.COM is not in fact a real mitigation for malicious Javascript on WWW.YOURDOMAIN.COM.
Re:Payment iframe - the easiest way to insert Stripe into yo...
by bentlegen on Monday August 13, 2012 @03:49PM
(#4377760)
Seems like the best solution from where I'm sitting.
Listen, if you don't trust Stripe's JavaScript, just use their HTTP API instead from your server: https://stripe.com/docs/api
Re:Payment iframe - the easiest way to insert Stripe into yo...
by tptacek on Monday August 13, 2012 @03:59PM
(#4377808)
You can't do that without incurring a PCI Audit, can you?
The best answer is "don't link to Javascript URLs that you don't control and audit on your website". Nobody likes that answer, but that doesn't make the second-best answer any more meaningful.
Re:Payment iframe - the easiest way to insert Stripe into yo...
by cperciva on Monday August 13, 2012 @04:01PM
(#4377825)
You can't do that without incurring a PCI Audit, can you?
Exactly. There's no way I would be serving up third party javascript to a logged-in Tarsnap user, even inside an iframe, if it weren't for the fact that dealing with PCI auditing would irreparably damage my sanity.