Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raw credit card data is being included in the HTTP request body alongside encrypted data when client-side encryption is enabled in the Magento 2 module. #126

Open
basanskii opened this issue Dec 4, 2023 · 0 comments

Comments

@basanskii
Copy link

Environment:

  • Module "sapient/module-worldpay" version 2.4.5-p10123
  • Type of the credit card form integration: Direct

Preconditions:

A. In the Adobe Commerce admin panel navigate to Stores -> Configuration -> Sales -> WorldPay -> Credit Cards
B. Set Client Side Encryption Enabled to “Yes”
C. Save configurations and flush cache

Steps to reproduce

  1. On the Adobe Commerce storefront add a product to cart
  2. Proceed to checkout
  3. On payment step open browser console > network tab
  4. Place order
  5. Pay attention to the payload sent to /rest/default/V1/carts/mine/payment-information endpoint

Actual Result:

When client-side encryption is activated, the HTTP request body contains both encrypted data and raw credit card information, potentially exposing sensitive cardholder data:
image

Expected Result:

The HTTP request body, when client-side encryption is enabled, should solely contain encrypted data without any inclusion of raw credit card information. This ensures the secure handling of sensitive credit card data and compliance with data protection standards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant