Skip to content
Access control Disclosed report Beginner

Unauthenticated clients can modify Livechat Business Hours

The Meteor method livechat:saveOfficeHours did not check whether the caller was authenticated before writing business hours to the database. An unauthenticated client could call it directly and change the global Livechat business hours.

gronke Follow

Originally disclosed on HackerOne

Medium 5.3 View original
  • Triaged in 2 hours
  • Fixed in 38 days
  • Disclosed after 3.6 years

Summary: Missing authentication of the livechat:saveOfficeHours Meteor.method allows unauthenticated clients set global Livechat Business Hours.

Description:

The Meteor Method livechat:saveOfficeHours directly forwards user inputs to the database model without authenticating the client:

JavaScript
Meteor.methods({
	'livechat:saveOfficeHours'(day, start, finish, open) {
		console.log('Method "livechat:saveOfficeHour" is deprecated and will be removed after v4.0.0');
		LivechatBusinessHours.updateDayOfGlobalBusinessHour({
			day,
			start,
			finish,
			open,
		});
	},
});

Releases Affected:

  • 3.9.3 / develop

Steps To Reproduce (from initial installation to vulnerability):

1.) Open Rocket.Chat in a Browser 2.) Open Web Inspector 3.) Execute Meteor.call

JavaScript
Meteor.call(
  'livechat:saveOfficeHours',
  'Monday', // day
  '00:23', // start
  '00:42', // finish
  true // open
);

Suggested mitigation

  • Require a user role to edit livechat hours

Impact

Unauthenticated clients can configure the Livechat Business Hours by calling a Meteor Method.

The original report as published on HackerOne, by gronke. 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 method forwarded user input straight to the database model without any authentication or role check.

Impact

An unauthenticated client could change the global Livechat Business Hours.

What the attacker needed

Network access to the Rocket.Chat instance; no account needed

The fix

The method should require an authenticated user with a suitable role before allowing edits to livechat hours.

How it was found

  1. Open Rocket.Chat in a browser.
  2. Open the browser's web inspector.
  3. Call the livechat:saveOfficeHours Meteor method with day, start, finish and open values.

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 Meteor method is a function the server exposes so the browser can call it. This one changed the chat's opening hours but never checked who was calling, so anyone could change them without logging in.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by gronke

View all

27 more disclosed reports, best first.

More from Rocket.Chat

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.