Offizielles MASTR Logo MASTR Arbeit unterstützen
Inhalt
← Wiki-Startseite

Technical reference

Solana CPI: follow permissions into the called program

One instruction can call another program using accounts and privileges from the original request.

Source-based reference · Updated 12 September 2026

Rechercheartikel und Referenzeinträge erscheinen auf Englisch. Die Navigation ist in sieben Sprachen verfügbar.

In diesem Artikel
  1. The inner call
  2. Why the outer label is incomplete
  3. Inspect the recipient of authority
  4. Sources

The inner call

A cross-program invocation lets one Solana program invoke another. Account privileges propagate under runtime rules: a caller cannot simply turn a read-only account into a writable account or invent a user's signature. PDA signing provides a separate, checked mechanism for the deriving program.

Why the outer label is incomplete

The first instruction shown by a frontend may not describe every effect of the transaction. Its called programs can transfer tokens or modify supplied accounts within the permitted authority. A review stopping at the outer program name misses that call path.

Inspect the recipient of authority

Verify the invoked program ID and the accounts passed into it. Then trace writable and signer privileges through inner instructions. If application code accepts an arbitrary program account where it intended a known token or system program, runtime privilege rules alone do not prove the application's business intent was preserved. The finding should identify the missing program-identity or account constraint.

Sources

Weiterlesen

MASTR

Unabhängige Recherche unterstützen

Die Untersuchungen, Originalbelege und Anleitungen hier sind frei zugänglich. Freiwillige Spenden finanzieren die Recherche mit und helfen, die MASTR-Tools weiterhin anzubieten.

Wallet öffnen