Skip to content

Admin user can call arbitrary Module class's constructor via Cart Price Rules  #35135

Closed
@oskar-olaussen

Description

@oskar-olaussen

Preconditions (*)

  1. Magento 2.4.3

Steps to reproduce (*)

  1. Create a new Cart Price Rule
    Screenshot from 2022-02-24 09-30-10

  2. Modify value of Conditions option value in browser's inspect. For example:
    Screenshot from 2022-02-24 09-09-23

  3. Select the option that you have modified.

Expected result (*)

  1. Validation error

Actual result (*)

  1. Inserted class is created and Magento tries to call methods on it. Have not found an actual exploit but this seems to be really bad practice at best.
    Screenshot from 2022-02-24 09-40-01

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • 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

No one assigned

    Labels

    Area: UI FrameworkComponent: SalesRuleIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneReported on 2.4.3Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions