简体   繁体   English

结帐后收据中的 Shopify 脚本显示付款信息

[英]Shopify script from receipt after checkout displays payment info

Doing some research on Shopify, to determine if I want to use it.对 Shopify 做一些研究,以确定我是否要使用它。 So, I bought something from a site that uses it, and looked at the view source at each step所以,我从一个使用它的网站上买了东西,并在每一步都查看了视图源

I was horrified to see that in the Javascript returned with the checkout receipt, their is a horrifying amount of credit card info easily viewed and therefore easily captured by a hacker.我很震惊地看到,在与结帐收据一起返回的 Javascript 中,它们的信用卡信息数量惊人,很容易被黑客查看,因此很容易被黑客捕获。

Here is a sample with all my data changed这是我所有数据都已更改的示例

<script>
Shopify.checkout = {"created_at":"2019-11-13T19:57:17-    05:00","currency":"USD","customer_id":1234566541236,"customer_locale":"en","email":"zippy@hotmail.com","    location_id":null,"order_id":1870404943944,"payment_due":"114.33","payment_url":"https:\/\/elb.deposit.s  hopifycs.com\/sessions","phone":null,"presentment_currency":"USD","reservation_time":null,"reservation_time_left":0,"requires_shipping":true,"source_name":"checkout_next","source_identifier":null,"source_url":null,"subtotal_price":"99.00","taxes_included":false,"tax_exempt":false,"tax_lines":   [{"price":"6.41","rate":0.06,"title":"OR State Tax"},
 {"price":"1.07","rate":0.01,"title":"Oregon Tax"}],
"token":"4c9d55f9bb8898e40fe36e1e75988070",
"total_price":"114.33",
"total_tax":"7.48",
"updated_at":"2019-11-13T19:57:40-05:00",
"line_items":   [{"id":"0d2b6dd0ad0186984480fb36817f9ed8","key":"0d2b6dd0ad0186984480fb36817f9ed8","product_id":15925165 42536,"variant_id":15850525491272,"sku":"ESI 071252","vendor":"My Shopify Store","title":" Euro High  Flow S1 Male Coupler","variant_title":"3\/8\"  Male","image_url":"https:\/\/cdn.shopify.com\/s\/files\/1\/1239\/9256\/products\/DSC01397.jpg? v=1549034841","taxable":true,"requires_shipping":true,"gift_card":false,"price":"24.75","compare_at_pric e":null,"line_price":"49.50","properties":  {},
"quantity":2,"grams":85,"fulfillment_service":"manual","applied_discounts":[]},
 {"id":"062af9384331b020660f9a021afb55ed","key":"062af9384331b020660f9a021afb55ed","product_id":142986457 9144,"variant_id":12867363536968,"sku":"ESI 071202","vendor":"My Shopify Store","title":" Euro High Flow  S1 Female Coupler","variant_title":"3\/8\"  Female","image_url":"https:\/\/cdn.shopify.com\/s\/files\/1\/1239\/9256\/products\/0U9A6198.jpg? v=1568991566","taxable":true,"requires_shipping":true,"gift_card":false,"price":"24.75","compare_at_pric e":null,"line_price":"49.50","properties":{},
"quantity":2,"grams":85,"fulfillment_service":"manual","applied_discounts":[]}],
"gift_cards":[],
"shipping_rate":{"handle":"BOXIFY (2.0)-USPS%20Priority%20Mail%7CC7739467-7.85","price":"7.85","title":"USPS Priority Mail"},
"shipping_address":  {"id":1234566543458,"first_name":"Tim","last_name":"Simmons","phone":"+15555555555","company":"","address1":"123 Main Street","address2":"","city":"Juxnus","province":"Oregon","province_code":"OR","country":"United States","country_code":"US","zip":"12345"},
**"credit_card":   {"first_name":"Tim","last_name":"Simmons","first_digits":"123456","last_digits":"9876","brand":"american_express","expiry_month":1,"expiry_year":2085,
"customer_id":1234566541236},
"billing_address":   {"id":1234566543458,"first_name":"Tim","last_name":"Simmons","phone":"+19148260061","company":"","address1":"123 Main Street","address2":"","city":"Juxnus","province":"Oregon","province_code":"OR","country":"United     States","country_code":"US","zip":"12345"},**
"discount":null};
</script>

Is this standard behavior?这是标准行为吗? Showing 10 digits of the CC, mobile number, the expiration info and billing address?显示CC、手机号码、到期信息和账单地址的10位数字?

If someone from Shopify monitors SO如果 Shopify 有人监视 SO

PLEASE respond if this is standard behavior or a developer error, I certainly hope its the latter!如果这是标准行为或开发人员错误,请回复,我当然希望是后者!

A hacker can steal any information if the site has a security hole like some sort of XSS attack.如果网站存在诸如 XSS 攻击之类的安全漏洞,黑客可以窃取任何信息。

But the same applies for your online banking, so that's why there are security measures to prevent that.但这同样适用于您的网上银行,因此需要采取安全措施来防止这种情况发生。

That said Shopify has a very secure checkout flow, since it's redirecting to a new checkout every time and it's very hard to create a working XSS or CSRF attack.也就是说,Shopify 具有非常安全的结帐流程,因为它每次都重定向到新的结帐流程,并且很难创建有效的 XSS 或 CSRF 攻击。 ( not impossible, but a lot harder then a WooCommerce checkout for example ) (并非不可能,但比 WooCommerce 结账困难得多)

In addition the Checkout is a closed platform, no APPs ( they will have support for this soon ) are allowed there and only Shopify Plus members can actually edit the checkout.liquid file.此外,Checkout 是一个封闭平台,不允许使用任何 APP(他们很快就会支持此功能),只有 Shopify Plus 会员可以实际编辑checkout.liquid文件。

There is no difference if the card details are stored in a input field or in a JS object, if a hacker can get to the object he will be able to get to the inputs as well.如果卡详细信息存储在输入字段或 JS object 中,没有区别,如果黑客可以访问 object,他也将能够访问输入。

In addition Shopify is very active in the Whitehat Hacker Community any reported bug is paid for https://hackerone.com/shopify and they are quick to fix them.此外,Shopify 在 Whitehat 黑客社区中非常活跃,任何报告的错误都是为https://hackerone.com/shopify付费的,他们很快就会修复它们。

There is a reason why Shopify is the preferred E-Commerce solution. Shopify 是首选的电子商务解决方案是有原因的。 From security point of view it's a lot safer then a lot of other self hosted services like Magento/WooCommerce.从安全的角度来看,它比 Magento/WooCommerce 等许多其他自托管服务更安全。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM