İlk CVE’lerim: Traccar’da iki küçük varsayımın peşinden gitmek
The DELETE /api/permissions endpoint bound values safely but used extra JSON keys from the request body as SQL column identifiers, letting a low-privileged authenticated user run a blind SQL injection and read admin fields. Separately, group parent relationships could be made cyclic, so a trips report walked the parent chain forever and left a Jetty worker thread stuck, giving a denial of service.
Traccar advisory sayfası açıktı. Başlık oradaydı, CVE ID oradaydı, ismim oradaydı.
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.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the storage layer treated request-supplied JSON keys as trusted SQL column identifiers, and the group parent traversal had no cycle detection or depth limit.
Impact
A low-privileged authenticated user could read admin fields through a blind SQL injection, and a user able to edit groups and access reports could leave Jetty worker threads stuck, so repeated requests could degrade the web and API.
What the attacker needed
Authenticated low-privileged user; non-readonly account; group edit and report access rights; local lab only, no live instances
The fix
The text says the issues were published as advisories; it recommends rejecting parent changes that would create a cycle and adding a visited set or depth limit in the parent chain helpers.
How it was found
- Build Traccar 6.13.3 from source and run a clean local instance with an H2 database.
- Create test users and device/group fixtures locally.
- Send a request to the permissions endpoint with an extra marker key and confirm the marker appears in the generated SQL.
- Use true/false conditions to confirm a blind oracle and compare extracted values with the H2 ground truth.
- Create two groups that are each other's parent and attach a device to the cyclic group.
- Request a trips report for that device and observe the client timeout while the worker thread stays stuck in the attribute lookup.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A database query is built from parts, and some parts are meant to be fixed names of columns while others are just data. The code treated extra field names sent by the user as trusted column names, so a user could slip their own database logic into the query. In the second bug, groups could be set to be each other's parent, so a loop that walks up the parent chain never reached the top and kept a server thread busy forever.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.