Skip to content
This repository was archived by the owner on Aug 27, 2021. It is now read-only.
This repository was archived by the owner on Aug 27, 2021. It is now read-only.

Leave Off Unneeded Information #5

Closed

Description

@adamroach

This is a recommendation from the Security and Privacy Checklist review. See https://docs.google.com/document/d/1w7ginyzNg-xZUmITK4vzcGUKB4gbMOAvlkWWaRtX14k/edit?usp=sharing for additional detail

The Basic Card Payment specification provides additional information that forms a unique correlator. Unlike unique, cross-origin information provided by the Payment Request API, the cardNumber field provided by the Basic Card API is (necessarily) required rather than optional. The current document appears to assume that any Basic Card Payment app will request all possible fields; however, there is a PR filed for leaving off unneeded information. For the sake of privacy, we recommend this PR be accepted.

Activity

  1. mattsaxon commented on Mar 24, 2017

    @mattsaxon

    The PR that @adamroach mentions was closed after discussion at the Sept 2016 F2F, pending a potential reopen. With Nick Doty's email to the group this morning, it is worth considering if we should once again look at this issue prior to moving to CR.

    Options;

    1. Add fields filter to Basic-Card
    2. Add fields filter to Payment-Request (so it can apply to all PMIs)
    3. Defer till a later version
  2. adrianhopebailie commented on Apr 1, 2017

    @adrianhopebailie
    Contributor

    @mattsaxon For clarity, are you suggesting that the merchant website be able to specify which fields are mandatory and which optional in the payment response for a basic-card payment?

    i.e. A merchant website can say "I support basic card but I only want you to return the PAN and expiry"?

  3. mattsaxon commented on Apr 2, 2017

    @mattsaxon

    @adrianhopebailey, that's correct

  4. adrianhopebailie commented on Apr 2, 2017

    @adrianhopebailie
    Contributor

    Is the privacy implication here that the merchant doesn't want to see the name on the card?

  5. ianbjacobs commented on Apr 2, 2017

    @ianbjacobs
    Contributor

    My recollection from previous discussions is that about friction collecting information (which may lead to dropoff). Matt cited CVV as one example. ("I don't want you to prompt for CVV; I accept the risk.")

    However, it is not clear to me that shipping implementations allow for collection of less than the five fields.

    Ian

  6. marcoscaceres commented on Sep 20, 2017

    @marcoscaceres
    Member

    Apart from cardNumber, the spec makes members optional... if the user chooses not to include some member's details, then they are just set to the empty string.

    However, certain user agents force the user to enter all credit card information before they can proceed... but all user agents allow the user to abort the payment process.

    Now, just the first 6 digits of the card number can reveal about a user (using https://www.bindb.com):

    • Card Brand:
    • Issuing Bank:
    • Card Type:
    • Card Level:
    • Iso Country Name:
    • Iso Country A2:
    • Iso Country A3:
    • Iso Country Number:
    • Bank's website:
    • Customer Care Line:
    • Bank Address:
    • Formal Bank:
    • Commercial/Personal Card:
    • Additional Info:

    @adamroach, do you think we should make some kind of mention of the above?

  7. mnoorenberghe commented on Apr 17, 2018

    @mnoorenberghe
    Member

    What's clear to me is that my complete billing address (including phone number) shouldn't be sent to every merchant using basic-card since most checkout web forms using credit cards don't require all that information now and so users won't expect the information to be leaked. It seems like Apple has a similar viewpoint since their Apple Pay payment method doesn't include the billing address by default, the merchant needs to specifically request an array of requiredBillingContactFields. I personally don't think Mozilla should ship an implementation of basic-card that leaks the billing address by default.

    Even if the merchant indicates they require a postal billing address, it's not clear whether a billing phone number is required even though that is also part of the PaymentAddress structure. It seems like we should have a separate option to request the billing phone number. e.g. if we copy Apple's approach we could have

    requiredBillingContactFields: [
      "name",
      "phone",
      "postalAddress",
    ]

    (values are a subset of ApplePayContactField options)

    I would ideally like the address to be even more fine-grained since some merchants only need the ZIP code for fraud detection, not the rest of the address.

    Btw. I don't think an exclusion approach (#29) is the right idea as the defaults will heavily influence what developers request and we should only be giving the minimum required by default.

  8. marcoscaceres commented on Apr 19, 2018

    @marcoscaceres
    Member

    Proposal is to have certain fields excluded for privacy reasons. Then, we can add something like requiredBillingContactFields if we need it.

  9. stpeter commented on Apr 19, 2018

    @stpeter
    Collaborator

    As I noted in IRC during the F2F, our user research at Mozilla indicates that users are quite leery about exposing more sensitive information like their phone number. If they know the phone number is needed for shipping purposes they're more accepting. Gathering this data (or exposing data that's really not required) will legitimately raise privacy concerns among a broad swath of users - especially these days. Furthermore, there's no method by which the merchant can specify why any given field is being requested (e.g., "we need your phone number to contact you if there are any problems with delivery"). For some users, being asked for phone number without a legitimate or putative need might be a cause of shopping cart abandonment. This too would be worth researching with users.

  10. ianbjacobs commented on Apr 26, 2018

    @ianbjacobs
    Contributor

    My takeaway from discussion in Singapore [1] is that there was some support default behavior of not returning phone information.

    [1] https://www.w3.org/2018/04/19-wpwg-minutes.html#card5

  11. added a commit that references this issue on Apr 30, 2018
    c217900
  12. marcoscaceres commented on Apr 30, 2018

    @marcoscaceres
    Member

    Now part of #52

  13. added a commit that references this issue on May 1, 2018
    e507b37
  14. 4 remaining items

  15. marcoscaceres commented on May 14, 2018

    @marcoscaceres
    Member

    Happy to revisit. At the f2f, we only agreed to remove phone number.

  16. marcoscaceres commented on May 14, 2018

    @marcoscaceres
    Member

    Just a note... we can discuss further here to understand the scope of the problem, but the above looks like it should spin off into multiple (related) bugs.

  17. marcoscaceres commented on Nov 21, 2018

    @marcoscaceres
    Member

    @ianbjacobs, do we have an authority in the WG on credit card fraud detection that can definitively tell us exactly which parts of the billing address are pertinent to fraud detection? I want to make sure @mnoorenberghe's concerns are addressed, specially if we can drop more fields from billingAddress.

  18. marcoscaceres commented on Nov 21, 2018

    @marcoscaceres
    Member

    Also, is AVS the only reason for billingAddress?

    Ok, The You Tubes tells me that cardholder name doesn't participate in AVS. So that's a potential target for removal.

  19. marcoscaceres commented on Nov 21, 2018

    @marcoscaceres
    Member

    So, some options here:

    • On "payment method change": billingAddress redacts "organization", "phone", "recipient", "addressLine" and can chop post code.
    • On "user accepts payment": billingAddress redacts "organization", "phone", "recipient", and can chop post code. The "addressLine" stays tho, because that is matched by AVS.
  20. mnoorenberghe commented on Nov 21, 2018

    @mnoorenberghe
    Member

    That sounds good for when the merchant opts in to getting a billing address.
    IMO the default should be a null billingAddress for both algorithms and if the merchant uses AVS they can opt-in to it.

  21. marcoscaceres commented on Nov 22, 2018

    @marcoscaceres
    Member

    IMO the default should be a null billingAddress for both algorithms and if the merchant uses AVS they can opt-in to it.

    Agree 💯. AVS is only used in 3 countries, so why we should pass billing address by default doesn't make much sense.

  22. marcoscaceres commented on Nov 22, 2018

    @marcoscaceres
    Member

    Ok, I've updated #65 so it's always null, unless it's explicitly asked for.

    From what @zkoch said previously, it might be too late for Chrome to roll this back. So we might need to make a concession and say that in certain regions the billingAddress MAY be added by default.

  23. marcoscaceres commented on Nov 22, 2018

    @marcoscaceres
    Member

    Ok, also made it optional for the user agent to add the billing address in, say, the US, UK, and Canada...

  24. changed the title [-]Leave Off Unneeded Information[/-] [+]Leave Off Unneeded Information from BillingAddress[/+] on Nov 22, 2018
  25. changed the title [-]Leave Off Unneeded Information from BillingAddress[/-] [+]Leave Off Unneeded Information[/+] on Nov 27, 2018
  26. ianbjacobs commented on Nov 27, 2018

    @ianbjacobs
    Contributor

    Hi @marcoscaceres,

    I changed the title back to the original title. The original use case from @mattsaxon was for the merchant to say to the browser (or other payment handler): don't collect the CVV; I would rather the user have less friction and I accept the increased risk.

    One proposal had been that each payment method might support an array in request data where the merchant could specify which response fields to exclude when building the response.

    Since the original use case ("don't collect CVV due to friction") other use cases have arisen:

    • The user doesn't want to share information for privacy reasons.
    • The merchant doesn't want to collect information for liability reasons.

    I would prefer that this issue remain merchant-focused (rather than user-focused). The original issue is that the merchant wants to indicate which payment method response fields it wants the payment handler to exclude.

    Ian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions