Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Highcharts "exploit" and fix

Discussion and support for 3rd-party (non-Sandaysoft) tools for Cumulus
Post Reply
ct2iub
Posts: 2
Joined: Sat 15 Feb 2014 11:06 pm
Weather Station: WeatherDuino Pro2 / Auriol
Operating System: Linux, Windows 7/8
Location: Estarreja
Contact:

Highcharts "exploit" and fix

Post by ct2iub »

Hello everyone,
I'm quite new around here and although I'm here since last month, this is my first post.

Anyway, yesterday I started to upload to my web site this great tool - Highcharts - with the script that is available here.
When I analysed the structure I found a potentially flaw, or better saying, a security risk.

At least in the 2.5 version, when wrong data is sent along the request - within a certain parameter - the script will actually return a warning saying that the key is wrong and will tell you the right one right away!
This is very dangerous especially, and we know that despite is not advised to do that, many people use the same password/key for several services. In that way, anyone with bad intentions could (and will) get your key.
If you are using the same key/password for other services, that services could be compromised also ...

It is very simple to fix this security risk, you just have to find a small portion of code and change it (in my case it was in ImportCumulusFile.php and ImportCumulusRealTime.php):

When you find:
die('Error: Failed security key check:' . $param_key . ' ' . $key);

You should change it to

die('Error: Failed security key check:' . $param_key);

or something else with just a more generic error like (you actually can enter other text at your choose here):

die('Wrong security key');

Probably it will be a good ideia also to the author change the code and re-upload it here so new installations won't be affected by this.

Best regards
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Highcharts "exploit" and fix

Post by mcrossley »

I have been away with work this week, and I go away for a long weekend tomorrow, I'll have at look at this next week....
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Highcharts "exploit" and fix

Post by mcrossley »

OK, fixed and version 2.6 uploaded to the Wiki
Post Reply