Skip to content

[Medium] Product price, currency and rating rendered from unvalidated remote metadata #35

Open

Description

@primeobsession

What's wrong

offer.price is read before the !offer guard (dead code). currencyMappings[offer.currency] is a prototype-chain lookup. Arbitrary commercial claims displayed as app data.

Where

opengraph-react + src/components/products/price.js:5-12

Blame: BlArcher3127 106981675+BlArcher3127@users.noreply.github.com f5a3c886a7c4ded7b4b203230ea4afab4be11555

Fix

Guard offer first. hasOwn lookup. Treat price/rating as untrusted labels.

Catalog

  • ARAD: ARAD-OGR-008
  • CWE: CWE-20
  • CVSS: 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
  • Section: WSTG-4.10 Business Logic
  • Ref: src/components/products/price.js:5 (master)
  • Verification: verified

Activity

  1. added
    security
    arad
    on Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    aradsecurityseverity:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions