Tachyon Security

Find the flaws before attackers do.

Pull requests, read the way an attacker reads them. Ask for a review on any pull request, and Tachyon comments on the line that lets someone in.

Pull request #1842 · Shared file downloads

apps/api/src/FileController.ts

33export class FileController {
34 async download(req: Request, res: Response) {
35 const { fileId } = req.query;
36 const file = await storage.getById(fileId);
37 if (!file) {
38 return res.status(404).send("Not found");
39 }
40 return res.download(file.path);
41 }
42}

Any signed-in user can download another tenant's files

High

download looks the file up by the id in the query string and never checks that it belongs to the caller's tenant.

Findings that show the attack. A second review checks each one against your code, so what reaches you holds up.

Any signed-in user can download another tenant's files

High

Reproduction

  1. Sign in as a user of tenant globex.
  2. Request /files/download?fileId=f_8c21, a file owned by acme.
  3. The response is 200 with acme's file.

Recommendation

Look the file up within the caller's tenant, and answer 404 for any other.
Verified by a second review

Your code stays yours.

Scoped access
The GitHub App reads your code and writes only its own review on the pull request.
A sandbox per review
Each analysis runs in its own isolated sandbox, destroyed when it finishes.
Zero data retention
Models are reached through providers that neither store your code nor train on it.
How Tachyon handles your code

See what Tachyon finds in your code.

Contact sales