inDriver Job - Admin Approval Bypass
The job offer publishing flow relied on a client-supplied status value in a GraphQL mutation, so an attacker could change the status from moderation to active and publish arbitrary content without admin approval. This allowed scam, malware or advertising content to go live and could flood the platform with unapproved offers.
Originally disclosed on HackerOne
- Triaged in 24 hours
- Fixed in 3 months
- Paid in 10 days
- Disclosed after 5 months
Summary by the program
The authorization malfunctioning vulnerability was found allowing an attacker to completely bypass the moderator's approval step within the vacancy or CV publishing process, giving the attacker the ability to publish any content even that one contradicting the Terms of Use or general morals.
The report
Summary:
A vulnerability has been found in "inDriver Job", an application located at https://injob.indriver.com/, a platform that allows employers to publish job offers and candidates to sign up for them. It seems like the application has heavy use, with a plethora of job offers in many categories.
In the app, anyone can request to create job offers, but, to prevent spam, scamming and phishing, every job offer creation and edit has to be approved by a site admin before being published. This is essential, since it prevents the app from getting flooded with scammers.
The vulnerability discovered allows an attacker to completely bypass this approval step, allowing the publishing of arbitrary content.
Technical Details:
On the last step of the job offer creation, the application makes a final POST request to /api/graphql, calling for UpdateVacancyStatus.
{"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.
Video POC
██████████
Steps To Reproduce:
Note for Triager: A phone number is required for signup. To skip this step, I've attached my session cookies. Using these, you could reproduce the steps noted below.
(Please see video for in-depth demo)
- In employer mode, create a new job offer
- Fill in the required fields
- After the creation, the offer will appear as "Pending Approval"
- In Burp Proxy, send the last "UpdateVacancyStatus" request to Repeater, modifying "status":"ACTIVE"
- The arbitrary ad will now show up as "Active", it will have been verified and published. All users will be able to see it.
Impact
An attacker can use this vulnerability to upload arbitrary content, for scamming, malware or even advertising purposes. It is also possible to flood the platform with infinite offers, making it unusable for legitimate users.
Context
inDriver Job, at https://injob.indriver.com/, is a job platform where employers publish job offers and candidates sign up for them. The researcher describes it as heavily used, with job offers across many categories.
Anyone can request to create a job offer, but to keep out spam, scams and phishing, every creation and edit has to be approved by a site admin before it goes live. That moderation gate is the whole defence against the platform being flooded with scammers, so it is the natural thing to attack.
The program's own summary describes the finding as an authorisation malfunction that lets an attacker completely bypass the moderator's approval step in the vacancy or CV publishing process, publishing any content, including content that contradicts the Terms of Use or general morals.
Setup
Reproduction needs an employer account. Signup requires a phone number, which the researcher flagged for the triager and worked around by attaching session cookies so the steps could be followed without registering. The only tool named in the report is Burp, specifically Proxy and Repeater, used to capture and re-send the final status request.
Finding it
The researcher focused on the last step of job offer creation. When an offer is submitted, the application sends a final POST request to /api/graphql calling the UpdateVacancyStatus operation. The request carries a vacancyId and a status value, and the client itself sets that status to MODERATION:
{"operationName":"UpdateVacancyStatus","variables":{"vacancyId":"█████","status":"MODERATION"}
...
The status is a client-supplied GraphQL variable, and the server accepts the modified value. If the value decides whether the offer sits in the moderation queue or is live, then the client is choosing its own approval state, which is exactly what a moderation workflow must not allow.
Exploitation
Step 1: create the offer
In employer mode, create a new job offer and fill in the required fields. After creation the offer appears as "Pending Approval".
Step 2: capture the status request
In Burp Proxy, take the last UpdateVacancyStatus request and send it to Repeater. This is the same POST /api/graphql call shown above, with status set to MODERATION.
Step 3: change the status and re-send
Modify the status variable from MODERATION to ACTIVE and re-send the request:
The server accepts the new value. The moderator approval step is skipped entirely and the ad is published.
Step 4: confirm the result
The arbitrary ad now shows up as "Active": it has been verified and published, and all users can see it. The report includes a video proof of concept showing the full flow.
Root cause
The UpdateVacancyStatus operation takes the target status from the client, and the server accepts a value of ACTIVE without moderator approval. The legitimate client sends MODERATION at creation time, but the server accepted ACTIVE when the request was edited. Authorisation for the transition to ACTIVE is therefore effectively delegated to the front end, and the moderation queue is bypassed by anyone who edits the request. The report does not show the server-side code, so the exact check that is missing is inferred from behaviour rather than observed.
Impact
An attacker can publish arbitrary content through the job offer flow, which the researcher lists as usable for scamming, malware distribution or advertising. The same primitive allows flooding the platform with unlimited offers, making it unusable for legitimate users. The program rated the issue medium severity with a 1000 USD bounty, under Incorrect Authorization.
Fix
The report does not describe the fix that was applied. What the behaviour calls for is server-side enforcement: the status transition to ACTIVE should only be accepted from an authorised moderator or admin, and the client should not be able to select its own approval state. Whether that is what was changed is not stated.
Variants to test
- Send other status values in the same mutation, such as rejected or archived states, and see whether the server accepts transitions the UI never offers. A positive result is any state change the workflow should reserve for a moderator.
- Apply the same edit to the edit flow for an existing offer, since the report says edits are moderated too. A positive result is an edited offer going live without review.
- Look for the equivalent mutation on the CV side of the platform, which the program summary mentions alongside vacancies. A positive result is a CV published without approval.
- Check whether the mutation enforces ownership of the
vacancyId, by submitting a status change for an offer belonging to another account. A positive result is a successful change on someone else's vacancy.
Hunting notes
This kind of bug hides in multi-step approval workflows where the client sends the state it wants: status fields, isApproved style flags, and GraphQL mutations whose variables map directly onto workflow states. During recon, watch the requests made at the end of a creation or edit flow and note any value that names a moderation or publication state; if the client picks it, try picking a different one. The researcher showed the offer listed as Active and visible to all users, and spelled out the abuse cases: scam content, malware and flooding.
Timeline
The report was disclosed on 2023-07-05.
What happened, in plain words
inDriver Job is a website at https://injob.indriver.com/ where employers post job offers and candidates sign up for them. The researcher describes it as heavily used, with job offers in many categories.
Anyone can ask to create a job offer. But to keep out spam, scams and phishing, every new offer and every edit has to be checked and approved by a site admin before it goes live. That approval step is the only thing standing between the platform and a flood of scammers, so it is the obvious place to attack.
The program's own summary calls the finding an authorisation malfunction: an attacker can completely bypass the moderator's approval step in the vacancy or CV publishing process and publish any content, including content that breaks the Terms of Use or general morals.
In plain terms, the browser sent the state the job offer should be in, and the server accepted a value of active instead of waiting for approval. The visitor simply said "active" instead of "waiting for approval", and the offer went live.
Background you need first
A few ideas come up again and again below, so here they are from zero.
An API is the part of a website that the page talks to behind the scenes. Think of a restaurant: the menu and the waiter are the website you see, and the kitchen is the API. You never walk into the kitchen yourself; you tell the waiter what you want and the waiter carries the order back. When you click a button on a modern site, your browser usually sends a small message to the API and the API replies with data.
GraphQL is one particular style of API. Instead of many separate addresses for different actions, there is usually one address, here /api/graphql, and each message names the operation it wants, such as UpdateVacancyStatus, plus some variables. It is like a single service counter where you fill in a form: the form says what you want done and lists the details.
A cookie is a small piece of text that a website stores in your browser after you log in, and that your browser sends back with every request so the site knows who you are. It works like a wristband at an event: you show it at the door once, and after that staff recognise you by the band. If someone copies your wristband, they can walk around as you, which is why cookies are treated as secrets.
Burp is a tool that sits between your browser and the website and lets you look at, pause and change the messages going back and forth. Two parts of it are named in the report: Proxy, which records the traffic, and Repeater, which lets you take one captured message, edit it and send it again as many times as you like.
Authorisation means deciding whether a logged-in person is allowed to do a particular thing. Authentication is proving who you are; authorisation is what you may then do. An incorrect authorisation bug, the class this report is filed under, means the site lets someone do something they should not be allowed to do, often because it checks who you are but not what you may change.
Setting up
To follow the steps you need an employer account. Signing up requires a phone number, which the researcher flagged for the triager and worked around by attaching session cookies, so the steps could be followed without registering a new account. The only tool named in the report is Burp, specifically Proxy and Repeater, used to capture and re-send the final status request.
Finding it
The researcher focused on the last step of creating a job offer. When an offer is submitted, the application sends a final POST request to /api/graphql calling the UpdateVacancyStatus operation. The request carries a vacancyId and a status value, and the browser itself sets that status to MODERATION:
{"operationName":"UpdateVacancyStatus","variables":{"vacancyId":"█████","status":"MODERATION"}
...
Line by line:
operationNameisUpdateVacancyStatus: this is the name of the action being asked for, "change the status of a vacancy".variablesis the bag of details that go with the action.vacancyIdidentifies which job offer is being changed. The value is blacked out in the report.statusis set toMODERATION, meaning "put this offer into the queue where a moderator will review it".- The
...shows that the message continues beyond what is quoted.
The important observation is that the status is a value supplied by the client, meaning the browser, and the server appears to trust it. If that value decides whether the offer waits in the moderation queue or is live, then the visitor is choosing their own approval state, which is exactly what a moderation workflow must never allow. It is like a form where you tick a box saying "approved by manager" and the office files it without asking the manager.
Exploitation
Step 1: create the offer
In employer mode, create a new job offer and fill in the required fields. After creation the offer appears as "Pending Approval". This step is taken first so there is a real offer to work with, and so the normal, honest request can be captured.
Step 2: capture the status request
In Burp Proxy, take the last UpdateVacancyStatus request and send it to Repeater. This is the same POST /api/graphql call shown above, with status set to MODERATION. The reason for capturing it is that you cannot edit a message that has already flown past; you need a copy you can hold and change.
Step 3: change the status and re-send
Modify the status variable from MODERATION to ACTIVE and re-send the request:
Line by line:
- Everything is identical to the captured request except one word.
vacancyIdstill points at the same job offer, so the change targets the offer you just created.statusis nowACTIVEinstead ofMODERATION, meaning "publish this offer now" rather than "send it for review".- The
...again marks the rest of the message, which is unchanged.
The server accepts the new value. The moderator approval step is skipped entirely and the ad is published. The reason this works is that the server accepted the edited status and published the offer without moderator approval.
Step 4: confirm the result
The arbitrary ad now shows up as "Active": it has been verified and published, and all users can see it. The report includes a video proof of concept showing the full flow.
Why it works
The UpdateVacancyStatus operation takes the target status from the client, and the server accepts ACTIVE without moderator approval. The honest browser sends MODERATION at creation time, but the server accepted ACTIVE when the request was edited. Authorisation for the switch to ACTIVE is therefore effectively handed to the front end, and the moderation queue is bypassed by anyone who edits the request. The report does not show the server-side code, so the exact check that is missing is inferred from behaviour rather than observed.
Impact
An attacker can publish arbitrary content through the job offer flow, which the researcher lists as usable for scamming, malware distribution or advertising. The same trick allows flooding the platform with unlimited offers, making it unusable for legitimate users. The program rated the issue medium severity with a 1000 USD bounty, under Incorrect Authorization.
Fix
The report does not describe the fix that was applied. What the behaviour calls for is enforcement on the server: the change to ACTIVE should only be accepted from an authorised moderator or admin, and the client should not be able to select its own approval state. Whether that is what was changed is not stated.
Variants to test
- Send other status values in the same operation, such as rejected or archived states, and see whether the server accepts changes the interface never offers. A positive result is any state change the workflow should reserve for a moderator.
- Apply the same edit to the edit flow for an existing offer, since the report says edits are moderated too. A positive result is an edited offer going live without review.
- Look for the equivalent operation on the CV side of the platform, which the program summary mentions alongside vacancies. A positive result is a CV published without approval.
- Check whether the operation enforces ownership of the
vacancyId, by submitting a status change for an offer belonging to another account. A positive result is a successful change on someone else's vacancy.
Hunting notes
This kind of bug hides in multi-step approval workflows where the client sends the state it wants: status fields, isApproved style flags, and GraphQL operations whose variables map directly onto workflow states. During recon, watch the requests made at the end of a creation or edit flow and note any value that names a moderation or publication state; if the client picks it, try picking a different one. The researcher showed the offer listed as Active and visible to all users, and spelled out the abuse cases: scam content, malware and flooding.
Timeline
The report was disclosed on 2023-07-05.
Glossary
- API: the behind-the-scenes part of a website that the page sends messages to and receives data from.
- Authorisation: deciding whether a logged-in person is allowed to perform a particular action.
- Authentication: proving who a person is, for example by logging in.
- Incorrect Authorization: a bug class where the site lets someone do something they should not be permitted to do.
- GraphQL: a style of API with a single address where each message names an operation and supplies variables.
- Operation (GraphQL): the named action a message asks for, here
UpdateVacancyStatus. - Variable (GraphQL): a named detail sent with an operation, here
vacancyIdandstatus. - Mutation: a GraphQL operation that changes data rather than only reading it.
POSTrequest: an HTTP message that sends data to the server, typically to create or change something.- Endpoint: the address a request is sent to, here
/api/graphql. - Cookie: a small piece of text stored by the browser and sent with requests so the site recognises your session.
- Session cookie: a cookie that proves you are logged in; anyone who copies it can act as you.
- Burp Proxy: the part of Burp that records and lets you inspect traffic between browser and site.
- Burp Repeater: the part of Burp that lets you edit one captured request and send it again.
- Moderation queue: the holding area where submitted content waits for a human reviewer to approve it.
- Status value: the field that says which stage a record is in, such as waiting for review or live.
- Client-side: happening in the visitor's browser, which the visitor controls.
- Server-side: happening on the website's own computers, which the visitor cannot change.
- Proof of concept (POC): a demonstration that the bug really works, here a video of the full flow.
- Severity: the rating of how serious a bug is; this one was rated medium.
- Bounty: the money paid to the researcher for reporting the bug, here 1000 USD.
- Triager: the person who first reviews a submitted report and decides whether it is valid.