Skip to content
Access control Disclosed report Beginner

Github wikis are editable by anyone https://github.com/paragonie/password_lock/wiki

GitHub wikis on some of the organisation's repositories were editable by any logged-in GitHub user, not just collaborators. An attacker could add fake or phishing pages to the wiki and trick visitors into downloading malware.

nitish_mathur Follow

Originally disclosed on HackerOne

  • Disclosed after 36 hours

submitted a misconfiguration in some of our GitHub repositories to us. Wikis are inherently editable for all users, but for some repositories an organization may want to restrict this access. In some cases it was possible for GitHub users . Github wikis on the following project https://github.com/paragonie/password_lock can be edited by any logged in user in the system. This poses security and reputation risk for the company. Steps To Reproduce:

  1. Go to https://github.com/paragonie/password_lock/wiki and follow the wiki.
  2. I can created a simple page in the wiki without be a collaborator of the repo, or and without any permission
  3. Going on https://github.com/paragonie/password_lock/wiki you can add a new fake or phishing page clicking on the New page or edit buttons.

The user would surely trust the code (of course if he trusts the company itself), so he will extrapolate this trust to the wiki and consider it being safe enough to follow the instructions and downloading himself a malware.

attachment / reference https://hackerone.com/reports/457032 https://hackerone.com/reports/459634

Impact

The user would surely trust the code (of course if he trusts the company itself), so he will extrapolate this trust to the wiki and consider it being safe enough to follow the instructions and downloading himself a malware. As wikis listed above can be edited by any person on the internet, a malicious actor can accurately craft a message or a note which would lead a user to download a malicious component in a natural way.

The original report as published on HackerOne, by nitish_mathur. 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 repository's wiki feature was left at its default setting, which allows any GitHub user to edit it, rather than being restricted to collaborators.

Impact

A malicious actor could craft a convincing note that leads a trusting user to download a malicious component, damaging the company's reputation.

What the attacker needed

A free GitHub account; victim visits the project wiki

The fix

The wiki should be restricted so that only collaborators can edit it.

How it was found

  1. Open the wiki page of the affected repository.
  2. Create a new wiki page without being a collaborator or having any permission.
  3. Use the New page or edit buttons to add a fake or phishing page.

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 wiki is a set of pages attached to a code project that anyone can normally edit. Here the project owner assumed only trusted team members could change it, but any GitHub account could add pages. Because visitors trust the project, they might follow instructions on a fake page and install something harmful.

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 Paragon Initiative Enterprises

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.