All Projects

ID Status Summary Opened by
 577 Closed Unauthenticated private-task metadata oracle via js/cal ...wedustejo Task Description

Summary
`js/callbacks/checksave.php` on security.alwaysdata.com performs no authentication or permission check. It queries a task's `last_edited_time` and echoes `ok` when the supplied `time` parameter is >= that timestamp. The response is therefore an oracle: an anonymous user can determine whether any task exists — including private tasks (mark_private=1) — and recover its exact `last_edited_time` by binary search over `time`.

Mechanism (tracker commit a1ffafd65d5662d69e8b0334315b857449e3ea38, js/callbacks/checksave.php L6-12)
The script reads `task_id` and `time` from GET, runs `SELECT last_edited_time FROM {tasks} WHERE task_id = ?` (bound parameter), and echoes `ok` if `time >= last_edited_time`. There is no user/permission check anywhere in the file. For a non-existent task the timestamp is empty, so the comparison is true and the response is `ok`; for an existing task with a later edit time the response is empty.

Proof of concept (anonymous, no cookies; header X-Bug-Bounty: Hacker-research-readonly sent on all test requests)
- `GET /js/callbacks/checksave.php?task_id=999999999&time=1` → `ok` (task does not exist)
- `GET /js/callbacks/checksave.php?task_id=576&time=1` → empty (task exists, edited after epoch)
- `GET /js/callbacks/checksave.php?task_id=576&time=99999999999` → `ok`
- The same behaviour was verified against currently-private tasks: existence confirmed, and 15 requests of binary search recovered one private task's last_edited_time to under one hour precision (2026-09-21 13:16-14:13 UTC). IDs/contents of other reporters' private tasks are deliberately not reproduced here; triage can reproduce on any private task.

Impact
Metadata disclosure about private security reports on the bounty tracker itself: existence of a private report and its exact last-edit timestamp, enabling correlation with incidents/research activity and confirmation that a private report is being processed/edited. No task contents are exposed. Severity: Low.

Why this is not a duplicate / by-design
- Different class from the getfile attachment enumeration reports ( FS#335 / FS#476 ): no files involved, and private-task attachments are correctly denied there.
- feed.php correctly filters private tasks (mark_private); this endpoint does not.
- Not user enumeration, not scanner output, not a missing-header issue.
- Third-party code (Flyspray), but the program's exception applies: it leaks metadata, and upstream has never fixed it — the file dates to 2006, its last functional change was in 2018 (647711bc), and `git log a1ffafd6..origin/master` for this file is empty, so current upstream master is still unauthenticated. This differs from  FS#571 , where the component was already at the latest upstream version.

Related, same class (reported together, not separately)
- `js/callbacks/checkrelated.php` L8-15: also unauthenticated; echoes `ok` when the supplied `project` equals the task's project_id (or the task has none) — a project_id oracle for private tasks.
- `scripts/depends.php` L30-50 loads private tasks' summary/closure comment/reporter name into the dependency node list, although L180-181 only renders the task link — dependency relations to private tasks leak for connected graphs. Minor.

Suggested fix
Require login and a can_view_task check before answering, as gethistory.php already does; return an identical response for non-existent and non-viewable tasks.

Reporter IP (testing source): 54.67.158.131. All test requests carried `X-Bug-Bounty: Hacker-research-readonly`, GET only, ~1 req/s, no accounts used, no state changed.

Showing tasks 1 - 1 of 1 Page 1 of 1

Available keyboard shortcuts

Tasklist

Task Details

Task Editing