# Attacker can create malicious child epics linked to a victim's epic in an unrelated group

Attacker with Ultimate license creates a child epic referencing a victim's epic via parent_id in the REST API, linking attacker-controlled content into a victim's unrelated group.

- Payout: $1,160
- Severity: medium
- Program: GitLab
- Found by: cryptopone
- Disclosed: 2023-06-02
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/1892200
- Library page: https://bugbountylibrary.com/r/h1%3A1892200
- Tags: area:web domain:api domain:web impact:integrity kind:bounty platform:hackerone sev:medium tech:rest technique:param-pollution vuln:access-control vuln:idor

**Target:** GitLab REST API /api/v4/groups/:group/epics (multi-level epics)
**Root cause:** The epic create endpoint accepts an arbitrary parent_id without verifying the caller has access to the parent epic's group, so cross-group parent linkage is allowed.
**Steps:**
1. Victim creates public/internal group with an epic; attacker reads global epic id from page source (`gid://gitlab/Epic/29`).
2. Attacker creates own group and epic, opens 'Add a new epic' child flow.
3. Intercept POST `/api/v4/groups/attackerepicgroup/epics` with body `{"parent_id":30,"confidential":false,"title":"Attacker Child Epic"}`.
4. Change `parent_id` to victim's id `29` and forward.
5. Epic is created and appears as child of victim's epic.
**How found:** Noticed the epic create request carries a parent_id and that the global epic id is exposed in page source; hypothesized the server wouldn't validate parent ownership and tested by swapping parent_id in Burp.
**Exploitation:** Attacker needs an Ultimate-licensed account to create multi-level epics. They obtain the victim epic's global id from public/internal group page source, then tamper the parent_id in their own epic-creation request to bind attacker-controlled content under the victim's epic, enabling social-engineering/lure via the trusted association.
**Insight:** When a create endpoint accepts a parent/owner reference id, test cross-tenant parent ids harvested from public page source (gid:// global IDs) — authorization is often checked on the object being created, not on the referenced parent.

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

**POST body with victim's parent_id**

```
{"parent_id":30,"confidential":false,"title":"Attacker Child Epic"}

Update the parent_id so the request looks like:
{"parent_id":29,"confidential":false,"title":"Attacker Child Epic"}
```

