A plugin for faststore with buyer portal
An authenticated visit to the registered buyer-organization-manager route embeds an external Vercel application and sends it a VTEX authentication token and identity data. The external receiver is hard-coded in package source.
Source sends credentials or rich application records to a package-controlled external receiver enabled by default.
src/features/b2b-agent/layouts/B2BAgentLayout/B2BAgentLayout.tsxView on unpkgA registered buyer-organization-manager route loads a hard-coded external Vercel agent.
src/features/b2b-agent/layouts/B2BAgentLayout/B2BAgentLayout.tsxView on unpkg · L6The iframe receives the VTEX auth token plus account, locale, customer, and user IDs via postMessage.
src/features/b2b-agent/layouts/B2BAgentLayout/B2BAgentLayout.tsxView on unpkg · L50The postMessage target is the external agent origin, creating runtime credential disclosure.
src/features/b2b-agent/layouts/B2BAgentLayout/B2BAgentLayout.tsxView on unpkg · L43A registered buyer-organization-manager route loads a hard-coded external Vercel agent.
src/features/b2b-agent/layouts/B2BAgentLayout/B2BAgentLayout.tsxView on unpkg · L6The postMessage target is the external agent origin, creating runtime credential disclosure.
src/features/b2b-agent/layouts/B2BAgentLayout/B2BAgentLayout.tsxView on unpkg · L43The iframe receives the VTEX auth token plus account, locale, customer, and user IDs via postMessage.
src/features/b2b-agent/layouts/B2BAgentLayout/B2BAgentLayout.tsxView on unpkg · L50Source sends credentials or rich application records to a package-controlled external receiver enabled by default.
src/features/b2b-agent/layouts/B2BAgentLayout/B2BAgentLayout.tsxView on unpkg