Advisory

GHSA-8639-qx56-r428

Also known as: CVE-2022-31000

Summary

CSRF allows attacker to finalize/unfinalize order adjustments in solidus_backend

Details

Impact
CSRF vulnerability allowing attackers to change the state of an order's adjustments if they hold its number, and the execution happens on a store administrator's computer.

Reproduction steps:

  • Take an order's number.
  • Log in as an administrator.
  • Visit that order's adjustments section (_Orders -> {Click on number} -> Adjustments_) and check that its adjustments are finalized (closed padlock under the State column).
  • On another tab, visit {your_site_url}/admin/orders/{order_number}/adjustments/unfinalize.
  • Notice how the adjustments are unfinalized (open padlock), even if the previous was a GET request which could have been linked from any other site.
  • Visit {your_site_url}/admin/orders/{order_number}/adjustments/finalize.
  • Notice how the adjustments are again finalized.

That happened because both routes were handled as GET requests, which are skipped by Rails anti-forgery protection.

Patches
Users should upgrade to solidus_backend v3.1.6, v3.0.6, or v2.11.16, depending on the major and minor versions in use.

References

For more information
If you have any questions or comments about this advisory:

Severity

Low Basis: The source's own band: LOW

Dates

Published
2022-06-01 20:26 UTC
Modified
2023-11-08 04:09 UTC

Affected packages and fixes

solidus_backend

RubyGems · All systems

Affected

  • introduced 0, fixed 2.11.16 (ecosystem)

Fixed versions

2.11.16

Fix

The export has no generic command for this ecosystem.

solidus_backend

RubyGems · All systems

Affected

  • introduced 3.0.0, fixed 3.0.6 (ecosystem)

Fixed versions

3.0.6

Fix

The export has no generic command for this ecosystem.

solidus_backend

RubyGems · All systems

Affected

  • introduced 3.1.0, fixed 3.1.6 (ecosystem)

Fixed versions

3.1.6

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences