Skip to content
Account takeover Disclosed report Beginner

HTTP-Basic Authentication on logs.nextcloud.com

The server at logs.nextcloud.com protected a page with HTTP Basic Authentication, and the reporter showed that the credentials were sent as a base64 string that decodes to a plain username and password. An attacker who can observe the traffic could read those credentials, and the login could also be guessed by brute force.

rbcafe Follow

Originally disclosed on HackerOne

  • Disclosed after 28 hours

Greetings,

While visiting https://logs.nextcloud.com/ , I noticed that this server use HTTP-Basic Authentication.

SAT.png
SAT.png From the original on HackerOne

POC :

GET https://logs.nextcloud.com/ HTTP/1.1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:50.0) Gecko/20100101 Firefox/50.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: br
DNT: 1
Connection: keep-alive
Upgrade-Insecure-Requests: 1
Authorization: Basic cmJjYWZlOnJiY2FmZQ==
Host: logs.nextcloud.com

Result :

cmJjYWZlOnJiY2FmZQ== is the base64 of rbcafe:rbcafe and it's transmitted plaintext

Risk :

  • Vulnerable to client side attacks.
  • Vulnerable to MITM attack.
  • Vulenrable to Eavesdropping attack.
  • Vulnerable to Brute force attacks.

Possible fix :

HTTP-Basic Authentication should be changed for HTTP-Digest Authentication.

Best regards @rbcafe

The original report as published on HackerOne, by rbcafe. 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 server relies on HTTP Basic Authentication, which sends credentials encoded rather than encrypted, so they are exposed on the wire.

Impact

Credentials could be captured by someone eavesdropping or performing a man-in-the-middle attack, and the login may be vulnerable to brute force.

What the attacker needed

Network access to the site; ability to observe traffic

The fix

The reporter suggests replacing HTTP Basic Authentication with HTTP Digest Authentication.

How it was found

  1. Visit the logs.nextcloud.com site and observe that it asks for HTTP Basic Authentication.
  2. Send a request with an Authorization header containing base64-encoded credentials.
  3. Decode the base64 value to recover the plain username and password.

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.

HTTP Basic Authentication is a simple login method where the browser sends the username and password with every request. The problem is that the credentials are only encoded, not encrypted, so anyone who can watch the network traffic can decode them. The reporter says this makes the login easy to steal or guess.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More by rbcafe

View all

11 more disclosed reports, best first.

More from Nextcloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.