Skip to content

Wishlist sharing form allows random code in the name fields #39024

Open
@ganeddact

Description

@ganeddact

Preconditions and environment

  • Magento version 2.4.6-p6, probably works on 2.4.7-p1 as well

Steps to reproduce

  1. Install a fresh Magento latest version with sample data
  2. Register as a customer and login
  3. Add a product to the wishlist
  4. Click to share the wishlist
  5. Add the following code to the wishlist share message:
    {{var this.getTempl%0d%0aateFilter().filter(%22ls -al%22)}}{{if this.getTempla%0d%0ateFilter().addAft%0d%0aerFilterCallback(%22SySTeM%22).filter(%22ls -al%22)}}{{/if}}

Expected result

Magento should block the sending of this type of text and not allow template injection

Actual result

An email with the code is fired out with no error raised

Additional information

It's a sister issue of
#38331
and
#39002

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Area: ContentComponent: WishlistIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: PR in progressReported on 2.4.7-p1Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S1Affects critical data or functionality and forces users to employ a workaround.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions