Skip to content

[High] API credential embedded in the client-side bundle by design and sent from every visitor's browser, with no throttle and no README warning #30

Closed
0 of 1 issue completed

Description

@primeobsession

What's wrong

appId prop is interpolated into a browser fetch query string. No proxy mode. README teaches the pattern with placeholders only. No committed secret in this repo. apifur-ui Debug Preview uses dontMakeCall so that particular consumer does not leak a key this way.

Impact

Any visitor extracts the consumer's OpenGraph.io key and burns their quota / attributes scrape traffic to them.

Where

opengraph-react + src/index.js:18,31,47; README.md

Blame: BlArcher3127 106981675+BlArcher3127@users.noreply.github.com 5777c076f2d311e095a636a55408bd66ecb89c89

Fix

Add a proxyUrl/server-side mode. Document that the key is public. Prefer a header. Debounce/cache fetches.

Catalog

  • ARAD: ARAD-OGR-005
  • CWE: CWE-522
  • CVSS: 7.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L
  • Section: WSTG-4.10 Business Logic
  • Ref: src/index.js:18 (master)
  • Verification: verified

Sub-issues

Sub-issues

0 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    security
    arad
    on Sep 16, 2026
  2. cwooley commented on Oct 7, 2026

    @cwooley
    Member

    Fixed in 4f9e985 (merged to master in #44).

    appId still has to live in the browser when the component calls OpenGraph.io directly. The README now says that plainly. A new proxyUrl prop fetches your own endpoint and never sends app_id, so the key can stay on the server. Use a domain-restricted key, or proxyUrl.

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:high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions