Live data from Hacker News

New Paypal gateway UI susceptible to spoofing

homakov.blogspot.com

11–20 of 53 posts

Re: New Paypal gateway UI susceptible to spoofing

#11
post #6

Huh, this seems very obvious in hindsight. I guess with Stripe things are a bit easier since you have none of this username/password stuff to be dealing with (you could get your cc number swiped, but if you're an American you're dealing with that issue everyday anyways).

Exactly, giving your CC details to some website is a routine, but your email+password are critical credentials.

Re: New Paypal gateway UI susceptible to spoofing

#12
post #7

[deleted]

It doesn't make a difference. Just because a site is SSL-encrypted doesn't make it a site you should trust with your paypal credentials.

The only site you should trust with your paypal credentials is paypal. And the only way to be sure you're talking to paypal is to see paypal in the address bar with an SSL-encrypted session. (At least, that's what the whole web, browsers and CA's alike, have been striving to ensure is the case since the web has had encryption.)

Re: New Paypal gateway UI susceptible to spoofing

#13

Earlier quoted context omitted.

It's not just PayPal fraud per se. Leaking user's PayPal email address and password has a lot of other consequences. (Yeah yeah in theory you should use distinct passwords for different sites etc etc)

Yes, but if PayPal's security is good enough, that's everyone else's problem. (Yes, that's pretty nasty - but is putting a poorly-secured "startup" online really any better?)

To log in paypal account password is enough, user-agent and IP/location can be faked. When you're in you get access to user's transaction history. Ouch.

Re: New Paypal gateway UI susceptible to spoofing

#14
In cases like this, asking users for information, especially for payment details, for a different site than the user is visiting (e.g. PayPal) should be done using separate windows or iframes. Period. Additionally, the specification for visible iframes should make it clear to the user the iframe’s document URL. The iframe itself should have its own non-editable URL address bar, including an interactable area to allow the user to request information about the security details of the framed page for pages requested over SSL/TLS.

Re: New Paypal gateway UI susceptible to spoofing

#15
This seems like something that's going to become more and more of a problem as services attempt to create ever more seamless integrations to create better user experiences.

Has anyone seen anything in a spec or recommendation that addresses a browser-UI solution to verifying the authenticity of iframes or other embedded objects?

Re: New Paypal gateway UI susceptible to spoofing

#16
post #7

[deleted]

Yeah but what to stop me from serving a fake popup over https://myfraudsite.com ?

Nothing, but you can't hide that it is https://myfraudsite.com from the user since the browser always displays the URL (at least it does nowadays).

Re: New Paypal gateway UI susceptible to spoofing

#17
post #13

Earlier quoted context omitted.

Yes, but if PayPal's security is good enough, that's everyone else's problem. (Yes, that's pretty nasty - but is putting a poorly-secured "startup" online really any better?)

To log in paypal account password is enough, user-agent and IP/location can be faked. When you're in you get access to user's transaction history. Ouch.

I just spent 10 minutes navigating the Paypal website trying to activate 2-factor auth on my account. Apparently they don't even offer it, at least for Singapore accounts.

Re: New Paypal gateway UI susceptible to spoofing

#18
This isn't a new thing, it's been possible for a number of years to integrate paypal using an iframe.

Hands-up - I'm guilty of doing this. I hadn't really considered the issue before, but I agree it is a security concern.

One of the reasons developers switch to using an iframe rather than a separate window is due to popup blocking. Retrieving the url for a payment system usually requires making a server side call, so it's impossible to then launch a popup directly from the user action. The solution would be to require a second user action after having retrieved the url.

A complete redirect isn't always the best case for single page web apps, either. Thankfully, we're a bit smarter about deep-linking these days, so that should no longer be an issue.

Re: New Paypal gateway UI susceptible to spoofing

#19
untils websites become smart with these we need workarounds what I do on those occasions is one of two things, I would purposefully enter a random wrong username and password in to paypal which usually springs up a normal browser window with paypal url and then I retype my correct password. Or I would open a different blank browser window and log into paypal and then go to github and refresh which then automatically logs into paypal without reentering password..

Re: New Paypal gateway UI susceptible to spoofing

#20
post #14

In cases like this, asking users for information, especially for payment details, for a different site than the user is visiting (e.g. PayPal) should be done using separate windows or iframes. Period. Additionally, the specification for visible iframes should make it clear to the user the iframe’s document URL. The iframe itself should have its own non-editable URL address bar, including an interactable area to allow…

But it would be very easy to forge any secure iframe address bar using JS/CSS.
Post reply on HN