Broken Access Control: How a Client-Side Role Could Rewrite a Contract from Fixed-Term to Permanent
An EU-role user, who should only be able to view contracts, could change a contract's classification from fixed-term to permanent by altering a parameter in the registration request. The server accepted the modified value and created a contract with the unauthorised classification.
Published on medium.com
Bug Bounty Writeup
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
The target was an HR management platform used to manage temporary workers and their employment contracts. It was reached through a private bug bounty program on YesWeHack, and the domain is referred to throughout as test.com.
The application supported two user roles relevant to this write-up:
- ETT: represents the temporary worker provider. These users can list and consult Needs, Orders, Contracts, Missions and RA.
- EU: represents the company contracting temporary workers. These users can list and consult Needs and Orders, consult Contracts, check Mission statuses, and list and consult RA.
The important difference between the two roles was the level of access to contract information: ETT users could list and consult contracts, while EU users were only permitted to consult them. The feature under examination was the HR functionality used to register a temporary worker and create the associated employment contract.
Setup
The researcher worked with an EU test account and logged in to the platform. The main tool was Burp Suite with interception enabled, used to inspect and modify the requests sent to the server rather than relying on what the browser displayed. No versions are given in the report.
Finding it
While exploring the HR contract creation functionality with the EU account, the researcher noticed that the contract classification was controlled by a parameter submitted to the backend. That raised the question the write-up is built around: could an EU user modify a contract-related field even though their role was only supposed to consult contracts?
Exploitation
Step 1: Capture the registration request
The researcher logged in with the EU test account, navigated to the HR functionality used to register a temporary worker, enabled interception in Burp Suite and submitted the registration form. The application sent a POST request to the following endpoint:
POST https://test.com/Patt/creationInterimaire_onEnregistrerCreationInterimaire.action
Among the submitted parameters, one field stood out:
nature=CDD
This parameter represented the contract classification.
Step 2: Modify the classification
The question at this point was whether the backend actually enforced the permissions associated with the EU role, or whether it simply trusted the value submitted by the client. To find out, the researcher changed the nature parameter in the intercepted request:
- Original value:
nature=CDD - Modified value:
nature=CDI-I
Step 3: Forward and observe
The modified request was forwarded to the server, which responded with:
HTTP/1.1 200 OK
The application processed the request, and the resulting contract reflected the modified classification. The EU account had been able to submit and successfully process a contract classification value that it should not have been authorised to modify. The restriction expected from the role was not effectively enforced for this operation.
Root cause
The report does not describe the server-side code. What it establishes is that the contract classification was taken from a client-submitted parameter and that the backend did not enforce the EU role's restriction on modifying contract information for this operation. The restriction expected from the EU role was not effectively enforced for this operation. The report does not say which of these it was.
Impact
An EU user, whose role is meant to allow only consultation of contracts, could change the contract classification during the registration of a temporary worker, and the change was reflected in the resulting contract. The report frames this as a broken access control issue: a field the role should not have been able to modify was accepted and processed. The write-up does not enumerate further consequences beyond the classification change itself.
Fix
Variants to test
- Other contract fields in the same form: submit values for fields adjacent to
naturethat the role should not control. A positive result is a200 OKand a stored record reflecting the submitted value. - The same parameter on other actions: look for other endpoints under the same module that accept
natureor similar classification parameters. A positive result is the same acceptance of a modified value from a restricted role. - Role comparison: repeat the request with the more privileged role (ETT here) and compare responses, to see whether the backend distinguishes the two roles at all for this operation.
- Direct object references on the resulting contract: after creating a contract, try to consult or modify it from an account that should not have access. A positive result is data or a modification being returned to the wrong role.
Result
The finding was submitted through the private bug bounty program on YesWeHack with the relevant request and response evidence, screenshots, and a video demonstrating the behaviour. The report was accepted, and the final triage assessment assigned the vulnerability a CVSS score of 5.0 (Medium).

What happened, in plain words
A security researcher found a way for one kind of user on a website to change something they were only supposed to look at. The website was an HR platform used by companies to manage temporary workers and their employment contracts. The researcher had a test account of the type that is only allowed to consult contracts, not change them. By using a tool that lets you see and edit the messages your browser sends to the website, the researcher changed one small value in a form submission, and the website accepted it. The resulting contract reflected a different classification than the one the user was allowed to choose. The company that ran the bug bounty programme accepted the report and rated it 5.0 (Medium) on the CVSS scale, which is a standard way of scoring how serious a security flaw is.
This article explains the whole story from zero: what the platform does, what the two user roles are, what a request is, what a parameter is, what Burp Suite does, and why changing nature=CDD to nature=CDI-I mattered. No prior security knowledge is assumed.
Background: the platform and its roles
The target was an HR management platform used to manage temporary workers and their employment contracts. It was reached through a private bug bounty programme on YesWeHack. A bug bounty programme is a scheme where a company invites researchers to look for security problems in its systems and pays or credits them for valid reports. A private programme means only invited researchers can take part. Throughout the write-up the domain is referred to as test.com so the real name is not published.
The application supported two user roles relevant to this write-up:
- ETT: represents the temporary worker provider. These users can list and consult Needs, Orders, Contracts, Missions and RA.
- EU: represents the company contracting temporary workers. These users can list and consult Needs and Orders, consult Contracts, check Mission statuses, and list and consult RA.
A role is a label attached to an account that decides what that account is allowed to do. Think of a hotel: a guest can open their own room, a cleaner can open many rooms but only to clean them, and a manager can open any room and change the booking. The role is the rulebook; the website is supposed to check it every time the account asks for something.
The important difference between the two roles was the level of access to contract information: ETT users could list and consult contracts, while EU users were only permitted to consult them. In plain terms, an EU account could read a contract but was not supposed to change anything about it. The feature under examination was the HR functionality used to register a temporary worker and create the associated employment contract.
Setup: the account and the tool
The researcher worked with an EU test account and logged in to the platform. The main tool was Burp Suite with interception enabled. Burp Suite is a program that sits between your browser and the website, like a post office clerk who opens every letter you send, lets you read it, and lets you rewrite it before it goes out. Interception means Burp pauses each request so you can inspect or edit it before it reaches the server. The point of using it is to see and change what the browser actually sends, rather than trusting what the page shows on screen. The report gives no software versions.
Finding it
While exploring the HR contract creation functionality with the EU account, the researcher noticed that the contract classification was controlled by a parameter submitted to the backend. A parameter is a named value sent along with a request, like a field on a paper form: the name is the label (nature) and the value is what is written in the box (CDD). The backend is the server-side program that receives the request and does the real work; the browser is the frontend. The question the write-up is built around was: could an EU user modify a contract-related field even though their role was only supposed to consult contracts?
That question matters because a website can enforce rules in two places. It can hide or disable a field in the browser, which only stops honest users, or it can check the rule on the server, which stops everyone. If the server simply trusts whatever value the browser sends, then anyone who can edit the request can send a value the page would never have offered.
Exploitation
Step 1: Capture the registration request
The researcher logged in with the EU test account, navigated to the HR functionality used to register a temporary worker, enabled interception in Burp Suite and submitted the registration form. The application sent a POST request to the following endpoint:
POST https://test.com/Patt/creationInterimaire_onEnregistrerCreationInterimaire.action
Line by line:
POSTis the method, the verb of the request.GETusually means "give me a page";POSTusually means "here is data, do something with it". Submitting a form that creates a record is a typical POST.https://test.comis the address of the site. Thesinhttpsmeans the traffic is encrypted, so nobody between you and the server can read it in transit./Patt/creationInterimaire_onEnregistrerCreationInterimaire.actionis the path, the specific door on that server. The name suggests a French-language application:creationInterimairerelates to creating a temporary worker, andonEnregistrerrelates to saving. The.actionending is a convention used by some Java web frameworks to mark an action endpoint. An endpoint is simply a URL that performs a particular operation.
Among the submitted parameters, one field stood out:
nature=CDD
Line by line:
natureis the name of the parameter. In this application it represented the contract classification.=separates the name from the value.CDDis the value. In French employment law, CDD stands for contrat à durée déterminée, a fixed-term contract. The report does not translate the abbreviations, but the title of the write-up contrasts a fixed-term contract with a permanent one, soCDDis the fixed-term classification here.
This parameter represented the contract classification. Seeing it in the intercepted request is what made the researcher ask whether the server checked the EU role's restriction, or just accepted whatever the browser sent.
Step 2: Modify the classification
The question at this point was whether the backend actually enforced the permissions associated with the EU role, or whether it simply trusted the value submitted by the client. Enforcing a permission means the server checks it itself before acting. Trusting the client means the server believes whatever the browser says, which is dangerous because the browser is under the user's control.
To find out, the researcher changed the nature parameter in the intercepted request:
- Original value:
nature=CDD - Modified value:
nature=CDI-I
CDI stands for contrat à durée indéterminée, an open-ended or permanent contract. The report does not explain the -I suffix. The change is small on purpose: one value swapped for another in a request that was otherwise identical. If the server accepts it, the restriction expected from the EU role was not effectively enforced for this operation.
Step 3: Forward and observe
The modified request was forwarded to the server, which responded with:
HTTP/1.1 200 OK
Line by line:
HTTP/1.1is the version of the HTTP protocol used for the response. HTTP is the language browsers and servers use to exchange requests and responses.200is the status code. Codes in the 200s mean success.OKis the human-readable reason phrase for 200.
A 200 OK here means the server did not reject the request. The application processed the request, and the resulting contract reflected the modified classification. The EU account had been able to submit and successfully process a contract classification value that it should not have been authorised to modify. The restriction expected from the role was not effectively enforced for this operation.
This is what broken access control means: the rules about who may do what exist, but the application fails to apply them at the point where the action happens. It is like a building with a staff-only door that has a sign on it but no lock.
Root cause
The report does not describe the server-side code. What it establishes is that the contract classification was taken from a client-submitted parameter and that the backend did not enforce the EU role's restriction on modifying contract information for this operation. The restriction expected from the EU role was not effectively enforced for this operation. Persisted means the value was saved in the application's data, not just echoed back once.
Impact
An EU user, whose role is meant to allow only consultation of contracts, could change the contract classification during the registration of a temporary worker, and the change was reflected in the resulting contract. The report frames this as a broken access control issue: a field the role should not have been able to modify was accepted and processed. The write-up does not enumerate further consequences beyond the classification change itself.
Fix
In everyday terms: put the lock on the staff-only door, and check the badge at the door, not at the sign in the lobby.
Variants to test
These are follow-up ideas in the same spirit, useful for a beginner learning how to extend a finding:
- Other contract fields in the same form: submit values for fields adjacent to
naturethat the role should not control. A positive result is a200 OKand a stored record reflecting the submitted value. - The same parameter on other actions: look for other endpoints under the same module that accept
natureor similar classification parameters. A positive result is the same acceptance of a modified value from a restricted role. - Role comparison: repeat the request with the more privileged role (ETT here) and compare responses, to see whether the backend distinguishes the two roles at all for this operation.
- Direct object references on the resulting contract: after creating a contract, try to consult or modify it from an account that should not have access. A positive result is data or a modification being returned to the wrong role.
Result
The finding was submitted through the private bug bounty programme on YesWeHack with the relevant request and response evidence, screenshots, and a video demonstrating the behaviour. The report was accepted, and the final triage assessment assigned the vulnerability a CVSS score of 5.0 (Medium).

Glossary
- API: a defined set of endpoints a program exposes so other software can talk to it; here, the URLs the browser calls when you use the site.
- Backend: the server-side part of an application that receives requests and does the real work.
- Broken access control: a class of vulnerability where the application fails to enforce who is allowed to do what.
- Burp Suite: a tool that sits between browser and server, letting you inspect and modify requests.
- CDD: French contrat à durée déterminée, a fixed-term employment contract; the original value of
naturehere. - CDI: French contrat à durée indéterminée, an open-ended or permanent employment contract; the modified value here was
CDI-I. - Client: the browser or program making the request, as opposed to the server answering it.
- CVSS: Common Vulnerability Scoring System, a standard 0 to 10 scale for rating the severity of a vulnerability; 5.0 is Medium.
- Endpoint: a specific URL that performs an operation on a server.
- Enforcement: the server checking a rule itself before acting, rather than trusting the client.
- ETT: the role representing the temporary worker provider in this platform; could list and consult contracts.
- EU: the role representing the company contracting temporary workers; could only consult contracts.
- Frontend: the part of the application that runs in the browser and is shown to the user.
- GET: an HTTP method typically used to retrieve a page or resource.
- HTTP: the protocol browsers and servers use to exchange requests and responses.
- HTTPS: HTTP carried over an encrypted connection.
- Interception: pausing a request in a proxy tool so it can be read or edited before it reaches the server.
- Parameter: a named value sent with a request, like a field on a form;
natureis one here. - Persisted: saved in the application's data rather than only echoed back.
- POST: an HTTP method typically used to send data that creates or changes something.
- Private bug bounty programme: a bounty programme open only to invited researchers.
- Role: a label on an account that determines what it is allowed to do.
- Status code: the three-digit number in an HTTP response; 200 means success.
- YesWeHack: the bug bounty platform through which the finding was submitted.