Skip to content
Info disclosure Disclosed report Beginner

bug reporting template encourages users to paste config file with passwords

The bug reporting template for ownCloud and Nextcloud instructs users to paste their config file content, with incomplete warnings about removing sensitive fields. Users may inadvertently disclose passwords such as the database password, secret, or mail SMTP password in public bug reports.

hanno Follow

Originally disclosed on HackerOne

  • Fixed in 3 months
  • Disclosed after 3 months

The dangerous bug reporting template

The github bug reporting template for owncloud's server and some apps contains this:

The content of config/config.php:

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your instance's installation folder

or 

Insert your config.php content here
(Without the database password, passwordsalt and secret)

This is obviously very problematic. From the wording and instructions it is very likely that users will do the wrong thing: Paste the config.php without removing all passwords, for various reasons:

It's likely to assume that many users won't read the detailed instructions and will just do the first thing they're told: Insert the content of config/config.php. The instruction with sudo and www-data is specific to certain server configurations and may not work everywhere, thus it will fail for some users who will try the next option, namely inserting config.php directly. The instruction "Without the database password, passwordsalt and secret" is incomplete. There can be more sensitive fields in the config file, e.g. "mail_smtppassword". Not surprisingly users misread these instructions and paste sensitive passwords. See e.g.: https://github.com/owncloud/core/issues/9066 https://github.com/owncloud/core/issues/9458 https://github.com/owncloud/core/issues/9764 https://github.com/owncloud/core/issues/9734 https://github.com/owncloud/core/issues/20910 https://github.com/owncloud/core/issues/14240 (list is incomplete!)

Proposed remediation

I think it's necessary that you search all existing bug reports that have been created with this template for sensitive passwords and edit them to remove the password. It is probably also appropriate to inform the affected users.

I also believe encouraging users to paste a config file with passwords is inherently dangerous and no amount of warnings will prevent all users from making mistakes. In general I think it should always be a guiding principle of software design to make it hard for users to make security mistakes.

There are various ways the situation could be improved, this is what I could think of:

Provide a way in the webinterface to let users view a version of the config file where all sensitive values are removed (like the command line instruction, but more accessible). Change the instruction and avoid all references to pasting the raw config file content. If there's a need to get the config file in rare circumstances a developer could ask a bug reporter for it, ideally via private channels and only post a manually vetted version to the bug report. Leakage of instanceid

One additional observation: The "occ config:list" command removes dbpassword, secret and mail_smtppassword, but it leaves instanceid intact. I'm not familiar enough to judge how sensitive this value is, but it seems to be an unique identifier for each owncloud installation. It would probably be wise to remove that, too.

Affects owncloud and nextcloud

This issue affects the development of both owncloud and nextcloud in the same way. Thus I will report it to both projects.

The original report as published on HackerOne, by hanno. 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

The template encouraged pasting a raw configuration file and its warning about removing sensitive fields was incomplete, so users could easily leave passwords in.

What the attacker needed

User follows bug report template; user pastes config file without removing all passwords

The fix

The template should be changed to avoid asking for raw config content, and existing reports should be searched and edited to remove passwords.

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 bug report template is a form that helps people describe problems. This template told users to copy their configuration file, which contains passwords, into the report. Because the warning about removing passwords was incomplete, some users posted real passwords publicly.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by hanno

View all

13 more disclosed reports, best first.

More from ownCloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.