Back to skill

Security audit

Crossly Buyer API

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this buyer API skill benign with medium confidence: the reported OAuth, cart, checkout, and external API examples appear aligned with its purpose, though Skillspector coverage is partial.

The verdict is benign, but benign does not mean risk-free. Consider whether you need a skill that discusses buyer API access and checkout, and review its OAuth and checkout guidance before using it. The scan is marked partial: it inspected the listed Markdown component, but several local references could not be resolved, so the evidence is incomplete.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (7)

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 13)May include surrounding context.

md
## Setup

1. Create a free Crossly account: https://crossly.net/register
2. Buyer calls need an OAuth access token with `buyer:*` scopes from Crossly sign-in (`https://crossly.net/atlas/oauth2/authorize`, PKCE). Guide: https://crossly.net/shop/docs/authentication
3. Send it as `Authorization: Bearer <token>` to `https://crossly.net/api/v1/buyer/*`. Full docs: https://crossly.net/docs

## Auth: OAuth only, buyer scopes only

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 18)May include surrounding context.

md
## Auth: OAuth only, buyer scopes only

There is no buyer personal access token. Every buyer token comes from a person clicking Allow on Crossly's consent screen, including for your own account.

- Authorization server: issuer `https://crossly.net/atlas`, authorization code + **PKCE S256** (required for every client, confidential ones too). Authorize at `https://crossly.net/atlas/oauth2/authorize` with `resource=https://crossly.net/api/v1`, exchange and refresh at `POST https://crossly.net/atlas/oauth2/token`, revoke at `https://crossly.net/atlas/oauth2/revoke`. The full flow is in **crossly-api-setup**.
- Ask only for `buyer:*` scopes. A session the shopper proved with a shopping sign-in (for example an emailed link) can grant `buyer:*` scopes and nothing else.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 22)May include surrounding context.

md
PKCE S256** (required for every client, confidential ones too). Authorize at `https://crossly.net/atlas/oauth2/authorize` with `resource=https://crossly.net/api/v1`, exchange and refresh at `POST https://crossly.net/atlas/oauth2/token`, revoke at `https://crossly.net/atlas/oauth2/revoke`. The full flow is in **crossly-api-setup**.
- Ask only for `buyer:*` scopes. A session the shopper proved with a shopping sign-in (for example an emailed link) can grant `buyer:*` scopes and nothing else.
- The access token is a JWT that lives 8 hours. Refresh tokens rotate: store the new one every time and never refresh from two processes. A `401 invalid_token` after a failed refresh means the shopper disconnected your app (they can at `/shop/settings/connected-apps`): send them back through consent.
- Register the app under Settings → API & developers → Your OAuth apps.

Base URL `https://crossly.net/api` (sandbox `https://sandbox.crossly.net/api`); every path is under `/v1/buyer/*`. Send `Authorizat

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 48)May include surrounding context.

ts
import { createBuyerClient, CrosslyBuyerAPIError } from '@crossly/buyer-sdk';

const crossly = createBuyerClient({ token: process.env.CROSSLY_BUYER_TOKEN! }); // Atlas access token (JWT)

createBuyerClient({ token, baseUrl?, fetch?, timeoutMs?, userAgent? }) throws CrosslyBuyerConfigError at construction for a missing token or a crossly_pat_…. Version 0.2.0 accepts a JWT or a legacy crossly_oat_… string, but the API no longer honours crossly_oat_ tokens: use the Atlas JWT.

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 94)May include surrounding context.

md
- `GET /v1/buyer/cart` lines carry `unitPriceCents` captured when added, `available` and `listingStatus`. The sum of lines is **not** what will be charged.
- Adding a listing already in the cart raises its quantity (capped at 10) instead of adding a second line.
- `DELETE /v1/buyer/cart/items/{id}` removes a line. `POST /v1/buyer/cart/items/{id}/save-for-later`, `GET /v1/buyer/cart/saved` (last 200), `POST /v1/buyer/cart/saved/{id}/move-to-cart` (at today's price; refused if sold) and `DELETE /v1/buyer/cart/saved/{id}` manage saved-for-later. A line from an accepted offer cannot be saved for later.
- `POST /v1/buyer/cart/quote` runs the real checkout pricing and charges nothing: `itemsTotalCents`, `shippingCents`, `taxCents`, `totalCents`, `dutiesCents`/`dutiesStatus`, per-seller `shippingOptions`, and `meta.checkoutUrl`. `taxComplete: false` means no saved address, so `totalCents` is a **floor**: say so. Body (optional): `shippingServiceBySeller: { "<sellerUserId>": "<serviceId>" }`

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 94)May include surrounding context.

md
- `GET /v1/buyer/cart` lines carry `unitPriceCents` captured when added, `available` and `listingStatus`. The sum of lines is **not** what will be charged.
- Adding a listing already in the cart raises its quantity (capped at 10) instead of adding a second line.
- `DELETE /v1/buyer/cart/items/{id}` removes a line. `POST /v1/buyer/cart/items/{id}/save-for-later`, `GET /v1/buyer/cart/saved` (last 200), `POST /v1/buyer/cart/saved/{id}/move-to-cart` (at today's price; refused if sold) and `DELETE /v1/buyer/cart/saved/{id}` manage saved-for-later. A line from an accepted offer cannot be saved for later.
- `POST /v1/buyer/cart/quote` runs the real checkout pricing and charges nothing: `itemsTotalCents`, `shippingCents`, `taxCents`, `totalCents`, `dutiesCents`/`dutiesStatus`, per-seller `shippingOptions`, and `meta.checkoutUrl`. `taxComplete: false` means no saved address, so `totalCents` is a **floor**: say so. Body (optional): `shippingServiceBySeller: { "<sellerUserId>": "<serviceId>" }`

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 119)May include surrounding context.

Body: listingSlug and paymentMethodId (from GET /v1/buyer/payment-methods) required; quantity 1-10; listingVariantId (required on listings with options: without it the quote is refused and details.options lists them); maxTotalCents (send the price the shopper agreed to); shippingServiceId (default cheapest); shipTo { name, street1, city, street2?, state?, zip?, country?, phone? } or the saved address; localPickup; pickupPoint; gift; protectionPlanId; payInCurrency (e.g. "eur", with a 3% conversion charge; limits and maxTotalCents stay USD cents). There is no field for card details.

bash
curl -X POST https://crossly.net/api/v1/buyer/checkout \
  -H "Authorization: Bearer $CROSSLY_BUYER_TOKEN" \
  -H "Idempotency-Key: checkout:$USER_ID:vintage-levis-501:v3" \
  -H "Content-Type: application/json" \