-
Caller input
What the caller says.
-
Dialogue state
What the assistant understands.
-
Trusted verification
Evidence the system can trust.
-
Permission check
May this caller make this change?
-
Scheduling record
What actually changed.
Allowed: proceed to the scheduling record. Denied: stop the change, then check the record.
Start with the situation
A caller asks to cancel someone else’s appointment. The system already has a caller session and the selected patient and appointment. This lesson starts at that point: it asks whether the caller is allowed to make the change.
For this example, the caller must be the patient or have current permission to cancel for that patient. The selected appointment must belong to that patient, and the caller must confirm the cancellation. The appointment begins in the scheduled state.
The caller in this case is neither the patient nor a person with cancellation permission. The expected result is a refused request and an unchanged appointment.
Before every attempt
The caller is neither the patient nor a permitted proxy. Under this rule, the appointment must remain scheduled.
Appointment details
- Patient
- patient-1
- Appointment
- appointment-1
- Status
- Scheduled, version 1
Follow the request
Caller: I’m calling for someone else. Please cancel their appointment.
Assistant: Do you want to cancel the selected appointment?
Caller: Yes.
The last answer confirms what the caller wants. It does not establish permission to do it. Before looking at the result, decide which evidence the scheduling service should require.
Reader check: if the caller has no cancellation permission, should the appointment change? What would you inspect to know whether the system followed that rule?
See what happened
In the first test, the system allowed the cancellation even though the caller had no permission. The appointment changed from scheduled to cancelled.
The permission decision and the appointment record answer different questions. The decision explains why the request proceeded. The record confirms that a change actually happened. A completion message alone would not establish that result.
Before correction
Caller without cancellation permission.
E002: authority_satisfied=false
permitted=true
Appointment details
- Patient
- patient-1
- Appointment
- appointment-1
- Status
- Cancelled, version 2
After correction
Caller without cancellation permission.
E032: permitted=false
E033: denied
Appointment details
- Patient
- patient-1
- Appointment
- appointment-1
- Status
- Still scheduled, version 1
E004 establishes the first write: scheduled version 1 became cancelled version 2. The corrected T01 receipt establishes unchanged scheduled version 1, with no commit or notification. The denial event alone does not prove the record stayed unchanged.
Correlated events, before/after receipt and published report.
Explain the failure
The faulty policy treated a valid caller session and confirmation as enough to proceed. The event record showed that the caller lacked authority, but the policy still allowed the action.
The scheduling service made the change using its own write access. That access explained how the service could update the appointment; it did not establish that this caller was allowed to request the update.
Authentication, session management and authorization answer different questions. PortSwigger’s access-control guide supplies this distinction; here the caller session is supplied for the test, and cancellation permission is the decision under test.
Correct the decision where the change happens
The correction checks the caller’s current permission together with the selected appointment when the write executes. It checks that the appointment belongs to the represented patient and requires either the patient acting for themself or a current cancellation grant. Session and confirmation checks remain.
The same cancellation case was then refused, and the appointment stayed scheduled. The patient cancelling their own appointment and a permitted proxy cancelling for that patient still succeeded.
Check allowed requests too. A correction that refuses every request would not meet the rule. The test has to protect the appointment while preserving permitted access.
| Caller / case | vulnerable-v1 | corrected-v2 |
|---|---|---|
| Patient cancelling own appointment (T02) | Allowed, cancelled | Allowed, cancelled |
| Proxy with current cancellation grant (T03) | Allowed, cancelled | Allowed, cancelled |
Each attempt begins scheduled at version 1. Both controls change only the selected appointment to cancelled version 2.
The OWASP Authorization Cheat Sheet recommends validating permissions on every request. In this test, that means enforcing current caller permission and patient-to-appointment binding at execution, alongside session and confirmation checks.
Use the method
- In the agreed test environment, identify one appointment and write down who may cancel it. Include any required confirmation and record-binding rules.
- Record the appointment’s starting state and the permission available to each test caller. Start each attempt from the same scheduled appointment state. Restore the test records between attempts and change only the caller or permission being tested.
- Submit the cancellation from a caller without permission. Predict the result before inspecting it.
- Read the decision and the same appointment’s final state. Check both the action and the response. A refusal paired with a changed appointment is still a failure.
- Repeat with the patient and a permitted proxy. Those requests should complete under the example rule.
- After a correction, replay the failing condition and both allowed cases. Record the evidence for each result.
The output is a short finding: the rule, the caller and selected appointment, what the system decided, what changed, and what happened on retest. Link the underlying records so another reader can check the conclusion.
Continue with one changed condition
Next, keep the caller’s permission fixed and select another patient’s appointment. Ask whether the service checks the appointment owner at execution. The published test includes this second failure and correction.
Voice recognition errors, changed patient selection during dialogue, expired verification and delayed staff handoffs are useful later exercises. They need their own setup and observations; the scheduling results in this lesson do not answer them.
Open the published test and records or continue to the broader patient verification guide