SGSPECTER.GHOSTCOMMUNITY EDITION
← LABS
// GUIDED TRAINING · Secure Coding

Cart Integrity

Business logic validation

Medium350 PTSOFFLINE SIMULATION
// 01 · LEARN

BUSINESS LOGIC VALIDATION

Client-submitted totals are untrusted. Servers should recalculate prices from authoritative product data before payment.

LEARNING GOAL

Identify the failure from the supplied synthetic evidence and explain a defensive fix.

// 02 · INVESTIGATE

EVIDENCE

catalog: item-7 unitPrice=30 quantity=2
POST /checkout {"item":"item-7","quantity":2,"clientTotal":1}
expectedTotal=60
review_marker=server_sets_totals
HINT

The client claims 1, but catalog price times quantity is 60.

// 03 · PRACTICE

KNOWLEDGE CHECK

Which value must the server recalculate?

// 04 · CAPTURE FLAG

Submit the review marker in SG{marker} format.

Progress stays in this browser.