Can We Safely Use the Answer Botie Returned?

A response can be valid JSON and still name the wrong pump or contain unwanted markup. Check its structure, its relationship to the request, and the context that will consume it.

15 sections · 4 questions · 1 coding challenge

1 / 15

A Correct String Can Become an Instruction to Another Program

BOTIE

Web applications have long had to distinguish text supplied by a user from markup interpreted by a browser. Cross-site scripting demonstrates what happens when that distinction is lost. Generated text introduces another source of untrusted content; the consuming browser still applies its own parsing rules.

Typed validation libraries help applications reject malformed records, while guardrail libraries organise additional checks and their failure actions. Our teaching example keeps the questions visible: are the fields usable, do their identifiers match this request, and will the display treat the content as text? These checks leave the correctness of the inspection advice for a separate review.

Sources for this history