# inDriver Job - Admin Approval Bypass

GraphQL UpdateVacancyStatus mutation accepted client-supplied status, letting an employer set a job offer to ACTIVE and bypass admin moderation.

- Payout: $1,000
- Severity: medium
- Program: inDrive
- Found by: mikejohnson_1
- Disclosed: 2023-07-05
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/1861487
- Library page: https://bugbountylibrary.com/r/h1%3A1861487
- Tags: area:web domain:api domain:web impact:integrity kind:bounty platform:hackerone sev:medium tech:graphql technique:param-pollution vuln:access-control vuln:business-logic

**Target:** GraphQL API /api/graphql UpdateVacancyStatus mutation on injob.indriver.com
**Root cause:** The UpdateVacancyStatus mutation trusted the client-supplied `status` variable, allowing a user to set a vacancy to ACTIVE instead of the intended MODERATION state without server-side authorization.
**Steps:**
1. Create a job offer in employer mode and fill required fields
2. Offer appears as 'Pending Approval'
3. Capture the final `POST /api/graphql` request with `{"operationName":"UpdateVacancyStatus","variables":{"vacancyId":"<id>","status":"MODERATION"}}`
4. Send to Repeater and change `"status":"ACTIVE"`
5. Resend; the offer is published as Active and visible to all users
**How found:** Noticed the final creation step sent a client-controlled `status` variable in the UpdateVacancyStatus GraphQL mutation and tested tampering with it.
**Exploitation:** Attacker creates a normal vacancy, intercepts the status-update GraphQL call, and rewrites status to ACTIVE, publishing arbitrary content without moderator review.
**Insight:** When a workflow has a moderation gate, look for the state-transition mutation itself and check whether the target state is client-supplied; GraphQL variables named status/state are prime tampering targets.

## Proof of concept (copied exactly from the original report)

**GraphQL UpdateVacancyStatus request with ACTIVE status**

```
{"operationName":"UpdateVacancyStatus","variables":{"vacancyId":"█████","status":"MODERATION"}
...
Re-sending this request, but modifying the **"status" variable to "ACTIVE"**, bypasses the need for a moderator approval, **publishing the ad**.
```

