Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Sensitive server data exposed for non logged in users.

Open maxsdw opened this issue 10 years ago • 10 comments

When accessing to "/api/info", some data like server OS, kernel version, cpu and ram, as well as other sensitive data is exposed, this could represent a security issue. All sensitive information should be remove from this response.

maxsdw avatar Dec 22 '15 17:12 maxsdw

i can confirm this on https://demo.rocket.chat/api/info

mrj0b avatar Dec 22 '15 17:12 mrj0b

Perhaps make the information visible somewhere on the administration pages and disable "/api/info" for production systems?

matthias-brun avatar Dec 22 '15 22:12 matthias-brun

we use the /api/info on the Mobile and Desktop clients.. to validate the version of Rocket.Chat before they attempt to login.

engelgabriel avatar Dec 24 '15 18:12 engelgabriel

I see, then is there a reason for information such as kernel version or available ram also being publicly exposed? Could just remove that information from it.

matthias-brun avatar Dec 24 '15 21:12 matthias-brun

it was mainly to help us give better support, but you are right, we will remove that.

engelgabriel avatar Dec 28 '15 13:12 engelgabriel

we might want to public-key encrypt a sysinfo-blob for support ?

Sing-Li avatar Dec 28 '15 15:12 Sing-Li

Maybe we just make this route only available to admin? Because I do think some points the info could be good for troubleshooting.

I also like the idea of pub-key encrypt

geekgonecrazy avatar Dec 28 '15 20:12 geekgonecrazy

Today you only get the chat version from api/info. If there is still something relevant in this issue, please reopen this with updated details. Thanks!

MartinSchoeler avatar May 29 '17 16:05 MartinSchoeler

Question: would it be a problem to block "/api/info" on nginx proxy side, e.g.:

	location ~ ^/apt/info {
		deny all;
	}

Or has it still to be public for mobile and desktop clients?

localguru avatar May 29 '17 16:05 localguru

@localguru I believe the new Android app uses this. The iOS app possibly uses this as well.

geekgonecrazy avatar Jun 01 '17 02:06 geekgonecrazy