Skip to content
Access control Disclosed report Beginner

An unsafe design practice in the Passphrase may result in Secret being accidentally changed.

The Passphrase feature requires granting edit permission to share a secret, but this also allows recipients to modify the secret. An attacker with edit permission could change the secret, and other users might not notice the modification.

kevin_c Follow

Originally disclosed on HackerOne

  • Disclosed after 13 hours

Summary: An unsafe design practice in the Passphrase may result in Secret being accidentally changed. Preface: If a user wants to share his/hers secrets, he/she may use the Passphrase. But when he/she created the credential and setted who can view it and who can edit it, they will soon discover that if they not set the edit permission to the one they want to share secret with, it is impossible success. Naturally, they would give the edit permission to everyone they want to share the secret with. So, here is the problem. It means they can change the secret. If someone ignores the edit records, he/she may under attack inadvertently. Because the secret has been modified. Reproduction steps: Open three different browsers (to simulate three different users) BROWSER A: Log in as user A BROWSER B: Log in as user B BROWSER C: Log in as user C BROWSER A: Go to the Passphrase and create new credential. Make it visible to both user A user B and user C. Make it editable to only user A. BROWSER B: Open the https://yourdomain.com/K1(your id) and discover it is impossible to show the secret. BROWSER A: Make it editable to both user A user B and user C. BROWSER B: User B can see the secret and can change it. BROWSER C: Open the https://yourdomain.com/K1(your id) but only can see the the secret has been modified.

Please fix it right away.

Best regards, Kevin C.

The original report as published on HackerOne, by kevin_c. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the permission model does not separate view and edit rights, forcing edit permission to be granted for viewing, which allows unintended modification.

Impact

A user with edit permission could change the secret, and other users might not notice, potentially leading to unintended use of a modified secret.

What the attacker needed

Three user accounts; user A creates a credential; user A grants edit permission to share

How it was found

  1. Open three browsers and log in as three different users.
  2. User A creates a new credential visible to all three but editable only by A.
  3. User B tries to view the credential and finds it impossible.
  4. User A changes the credential to be editable by all three.
  5. User B can now view and change the secret.
  6. User C views the credential and sees only that the secret has been modified.

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 report has not been written yet. The Original tab links to the source.

A secret-sharing tool lets you choose who can view or edit a secret. The report says that to let someone view a secret, you must also let them edit it, so they can change it without you noticing. This is unsafe because the person you share with could alter the secret.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Phabricator

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.