Module 3 of 8Free to explore

Web hypotheses: objects, operations, and trust

2 hoursTheory and practiceMedium

Lesson 1. Distinguish a mechanism from its evidence

Web assessment starts with an ordinary user operation: reading an order, editing a profile, or submitting a document. Authentication establishes identity; authorization determines whether that identity may perform a particular action on an object. An HTTP status alone does not fully describe the decision. A 200 response may contain a denial, while a 404 may hide an existing resource. Compare response content, application state, and server decision logs as well as status codes.

IDOR, SSRF, and XXE describe different boundaries. IDOR concerns object access; SSRF concerns server-side outbound requests; XXE concerns external entities in XML processing. One unusual response cannot establish all three. The foundational skill is to state a narrow hypothesis and a control case; detailed techniques belong in the web pentesting course.

Lesson 2. Artifact: sample orders

order 17 owner=buyer-A total=100
order 18 owner=buyer-B total=200
A → GET /orders/17 → 200 {"id":17,"owner":"buyer-A"}
A → GET /orders/18 → 200 {"id":18,"owner":"buyer-B"}
anonymous → GET /orders/18 → 401
B → GET /orders/18 → 200 {"id":18,"owner":"buyer-B"}
policy: each buyer may read only their own orders

This demonstrates a horizontal authorization failure: A reads B’s object. The anonymous check is useful, but successfully rejecting anonymous requests does not repair separation between authenticated buyers. There are no outbound server requests or XML documents in the artifact, so SSRF and XXE are not established here.

Lesson 3. Select a mechanism from evidence

Object authorization governs who can read or modify an object. SSRF concerns server-side requests influenced by input; XXE concerns external XML entities. This module introduces classification while separate WEB modules develop mechanisms and practical work. Do not classify every server error as XXE or assume one input change tests every category.

HTTP status requires body and state context. Cross-owner reading needs verified ownership, valid training identities, and a minimal control pair. IDOR often describes such a failure, but numeric identifiers are not inherently defective. Missing permission enforcement matters, not the address format.

Lesson 4. Count supported observations locally

Save object_evidence.py and run Python 3. It analyzes supplied normalized records and sends no HTTP requests.

# object_evidence.py: only supplied observation pairs
records = [
 {'caller':'buyer-A','object':17,'owner':'buyer-A','status':200},
 {'caller':'buyer-A','object':18,'owner':'buyer-B','status':200},
 {'caller':None,'object':18,'owner':None,'status':401},
]
violations = [x for x in records if x['status']==200 and x['caller']!=x['owner']]
assert len(violations) == 1
print('cross-owner read observations:', len(violations))
print('affected object:', violations[0]['object'])
print('SSRF evidence: absent; XML entity evidence: absent')

Expect one cross-owner observation affecting object18. Remove buyer-A/18 in a copy: the defect evidence disappears while anonymous 401 remains. Authentication presence does not establish authorization correctness. The anonymous record cannot become a success merely because owner is None; the filter requires status200 first.

Prepare separate records for confirmed access failure and an unconfirmed server-URL hypothesis. The latter lists necessary evidence without inventing a result. State limits: updates, deletion, bulk export, caching, and session lifecycle remain unassessed.

For a real backend, identify frameworks, reverse proxy, and identity sources. Burp and DevTools preserve requests rather than define business policy. OWASP provides technical guidance while owner requirements define access. Use purpose-created objects without real customer information. Deliver precise classification, a control pair, and a transition plan into the specialist WEB course rather than a claim of complete application assessment.

Exercise

Build a subject–object–operation matrix for A, B, and the anonymous identity. Record expected and observed results for every request. Describe the smallest sufficient proof without enumerating more orders. Propose a server-side ownership check and two negative regression tests. Use only the supplied records; no external service is required.

Acceptance criteria and limitations

Identify one confirmed policy violation without assigning unrelated vulnerability classes. Retesting covers A→17 and B→18 as positive controls, A→18 and B→17 as negative controls, and requests without a session. Remediation must not rely only on hiding a user-interface button. Explicitly state that reading was tested: creating, updating, and deleting need separate matrix entries. These boundaries make the report useful to developers and prevent unjustified generalization.

Sources

Try the idea yourself

Why a service cannot be reached

Change the conditions and observe this training model. It runs in your browser and does not change your computer.

DNS→Firewall→HTTPS :443
Observation

Choose conditions above to see an explanation of the result.

Independent exercise · Russian

На приёмке кабинета оптовика в Казани команда получила ведомость трёх синтетических накладных и готовый протокол внутренних тестов. По договорённости менеджер филиала видит только свои накладные. Владельцу продукта нужно решить, к какому контролю отнести расхождение.

Evidence

Ведомость указывает владельца Н-11 и Н-12 «Восток», владельца Н-13 «Запад». В протоколе под ролью менеджера «Восток» чтение Н-11 вернуло документ, Н-12 — документ, Н-13 — документ. Все три результата подтверждены полем номера в полученном учебном документе. Телеметрия XML и исходящих соединений не собиралась.

Assignment

Сдайте карточку наблюдения с тремя ожидаемыми и тремя фактическими решениями. Назовите правило, которое должен изменить разработчик, и критерий приёмки.

Compare your reasoning

Отклонение одно, у Н-13. Сервер должен сверять филиал субъекта и владельца накладной до выдачи документа. При повторной приёмке обе свои накладные доступны, чужая отклонена без содержимого. Отдельным механизмам сетевого обращения и обработки XML статус по этому пакету присвоить нельзя.

Personal practice environment

Check an excerpt, find matching lines and compute the SHA-256 of the original text. Temporary data expires after 30 minutes or when you close the environment.