Weak SSL Cipher Suites are Supported - Version-1.9.5

Weak SSL Cipher Suites are Supported - Version-1.9.5

by Vinod Kumar -
Number of replies: 26

Dear All,


As we are using Moodle integration with our internal site.

The site is scanned by security team for security riscks by IBM AppScan and found following these issues

1.) Factoring RSA Export Keys (a.k.a. FREAK

2.) Weak SSL Cipher Suites are Supported 

As I have tried to search on this but unable to find exact reason.

Can you please tell me is Moodle behind the F5 BigIP?


Thanks & regards




Average of ratings: -
In reply to Vinod Kumar

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Bret Miller -
Picture of Particularly helpful Moodlers

SSL cipher suites are not a Moodle issue--they are a web server issue, and you don't give us any information about your web server. So I will guess based on my own experience.

Perhaps you are running Windows Server 2008R2. Schannel.dll which handles all the SSL/TLS support does not support strong ciphers without other vulnerabilities being exposed. So you get your choice of strong ciphers or RC4 with other vulnerabilities. The best you can to do limit exposure is to run everything through a reverse proxy on a different OS on the same physical network. This limits your exposure to having physical access to your network since the https will then use strong ciphers on the other side of the reverse proxy.

If that's not the issue, then you simply need to tune your web server to use stronger ciphers. You can test them here: https://www.ssllabs.com/ssltest/. Google searches on how to strengthen your SSL should give you the information you need after that.

In reply to Bret Miller

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Vinod Kumar -

Dear Miller,

Thanks for your reply. I have some more security issues. Can you please answers on those issue?

Please let me how you would like to take these questions - I mean each question in seperate post of in single post?

Just for your information I have the following these issues


1.) Factoring RSA Export Keys 

2.) Inadequate Account Lockout

3.) Missing Secure Attribute in Encrypted Session (SSL) Cookie

4.) Session Identifier Not Updated

5.) MongoDB NoSQL Injection 


Please reply me if possible for you

Thanks a lot

Vinod Kumar



In reply to Vinod Kumar

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

You will need proper descriptions to get any useful help on those questions. For example the idea of MongoDB NoSQL injection is unclear. Moodle does not use MongoDB as its main database,  is it being used for caching?, the term SQL injection means (unsurprisingly) to inject SQL wheras MongoDB is known as a NoSQL database, i.e. not requiring SQL. 


Security issues can be very subtle and complex so you need a full and complete description of a setup and any potential security issues to find out anything useful.  

Update: The miracle of Wikipedia has just told me that No SQL means Not Only SQL, but my point is still relevent


In reply to Vinod Kumar

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

It's not clear to me that this has anything to do with Moodle. We like to help but please let's try to keep this on topic.

In reply to Vinod Kumar

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Bret Miller -
Picture of Particularly helpful Moodlers

OK. I will do my best, but as this is a Moodle forum, I will limit my comments to that. Also, Moodle 1.9.5 is VERY OLD and contains known security issues. If you are really trying to be secure, you need to upgrade and keep upgraded to the latest Moodle version, or at least the prior major version. So Moodle 2.8.5+ is your minimum for a secure Moodle at this point.


1.) Factoring RSA Export Keys - Has nothing to do with Moodle as Moodle is not the web server and does not deal with the https protocol at all.

2.) Inadequate Account Lockout - Settings can be adjusted in Site Administration > Security > Site Policiies (at least in 2.8.5+)

3.) Missing Secure Attribute in Encrypted Session (SSL) Cookie - Make your whole site SSL if you want the cookies to be SSL.

4.) Session Identifier Not Updated - And what difference does that make if the session identifier is complex enough?

5.) MongoDB NoSQL Injection - How does this relate to Moodle at all? If MongoDB is out of date, then upgrade it to be more secure.

In reply to Bret Miller

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Vinod Kumar -

Dear Miller,

Thanks a lot for your reply smile

I have mentioned your solution in my security team. They are very happy to your solution and asked one questions in related to 

Session Identifier Not Updated

They have concern as below given.

Session identifier not updating : this has again... nothing to do with session identifier complexity.... Irrelevant! :

DEMO  -- as follows


When we do first login :


Value of MoodleSession Identifier = 100oekkrtfcud38jb82u1mfs23


Then, I logout and Login again :


After that, once log in again, I check again the session ID, I should have a New session ID 

that it's not the case :

As you can see below, the Moodle session Identifier is the same, so, it has not been updated (and we are not speaking about complexity of it....), means too that the user's session has not been 

killed after the logout..

What is the risk ?


The risk is that the session can be reused by an hacker after the victim logout out of the

application. And the hacker does not need to know the victim credential.

The support could reply that as the MoodleSession cookie is secure, it's impossible to get it through the network because it's not transmit out of SSL/TLS connexion.


Can you please check this issue as per my understanding its because of Moodle old version 1.9.5 ?


Thanks

Vinod Kumar



In reply to Vinod Kumar

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

The Moodle 1.9 series is well out of support. If you find a security issue the best advice is to upgrade to a version that is in support.

In reply to Marcus Green

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Vinod Kumar -

Dear Marcus, All,


Thanks a lot reply me back smile


I agree your last point and planning to upgrade my old version with latest version of Moodle.


As I mentioned you earlier that I am completely new to Moodle Integration. 

Can you please reply the following queries?

1.) How to upgrade Moodle and is there any process of payment to upgrade latest version of Moodle?

1.)  Please mentions list of any regression, issues, problems can be happen after upgrading to new version of Moodle so that before starting to upgrade I will be prepare to solve those issues?

I really appreciate to all of you  and thank you to help/support us.


Thanks

Vinod Kumar 


In reply to Vinod Kumar

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

1. upgrade to Moodle 1.9.19
2. upgrade to Moodle 2.2 - https://docs.moodle.org/22/en/Upgrading_to_Moodle_2.2
3. upgrade to Moodle 2.8 - https://docs.moodle.org/28/en/Upgrading

OR (and I'm serious)

Don't upgrade and just create a new 2.8 site and rebuild your courses from scratch. There's a lot of differences between 1.9 and 2.8 and it might be easier. 

If you want any more detail, you'll need to do some reading for yourself. The release notes are a good place to start...

https://docs.moodle.org/dev/Releases

Average of ratings: Useful (2)
In reply to Howard Miller

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

I agree with Howard that re-creating courses from scratch can be a good option. It may seem rather painful, but it is frequently the best route. Check if you have any 3rd party plugins or custom code. I have found that to be the time consuming step of preparing an upgrade. I was not certain what you meant about money, but there are many consultants around the world who specialise in Moodle and a global network of approved developers called Moodle Partners.

In reply to Marcus Green

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Jeff Shrek -

Upgrading from 1.9 can be painful due to the file storage changes and the plugin/theme changes, but if you want to try:

https://moodle.org/mod/forum/discuss.php?d=312810


In reply to Vinod Kumar

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi Vinod

The question is how recent Moodle versions, say 2.8 or 2.7 LTS, withstand your security audit.
In reply to Visvanath Ratnaweera

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Vinod Kumar -

Dear All,

Thanks a lot for your reply smile


I have very serious concern from top management that is this upgrade from 1.9.5 to 2.8 will resolve the issue of "Session Identifier Not Updated" or not? I will be in problem if it will not resolve this issue after so much effect and time given to upgrade from old version to latest version. I hope you all will understand my situation.


I kindly request you to all of you to focus on my security issue "Session Identifier Not Updated" that Is the upgrade to latest version 2.8 will resolve this security issue?

Please reply me to keep in mind that this issue should be resolve after upgrade to latest version.

Vinod Kumar

In reply to Vinod Kumar

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi Vinod

If I understand you right, you've upgraded your Moodle site to 2.8 now and IBM AppScan still brings "Session Identifier Not Updated", issue 4 reported in https://moodle.org/mod/forum/discuss.php?d=312600#p1251617.

I can not help you there. You'll have a better chance in the security forum, I hope. You can request the moderator to move this discussion from 'Installation help' to 'Security and privacy'.

Edit: I've noticed that you've found this thread "Session Identifier Not Updated ?? Security Issue?" https://moodle.org/mod/forum/discuss.php?d=129570 and posted there. It is still about Moodle 1.9.5 and from 2009. Your 2.8 problem belongs to a new thread.
In reply to Visvanath Ratnaweera

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Vinod Kumar -

Dear All,


No I have not upgraded to latest version 2.8. I just want to know If I upgrade my old version 1.9.5 to latest version 2.8 then Is this upgrade will remove or fix this issue or not? 


If it really fix this issue I will go ahead for upgrading the latest version 2.8.


Thanks for reply me back.

Vinod Kumar


In reply to Vinod Kumar

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Dear Vinod

First thing, do you agree that there is no point in bringing up security concerns in the 1.9 series?
"Bug fixes for general core bugs in 1.9.x has ended June 2011 (3.5 years).
Bug fixes for serious security issues in 1.9.x by Moodle HQ ended June 2012 (4.5 years).
Bug fixes for serious security issues in 1.9.19+ branch by Catalyst IT ended Dec 2013 (6 years)."
https://docs.moodle.org/dev/Releases?redirect=no#Moodle_1.9

Secondly, whether the issue "Session Identifier Not Updated" will also appear in current Moodle or, whether there'll be other issues (according to IBM AppScan):
You need to test is yourself. For that you don't need to upgrade your site yet, installing the new version with the same plug-ins is sufficient.

Thirdly, which Moodle version:
There are many candidates. 2.7 is LTS. 2.8 is the current stable. In a couple of days 2.9 will be the stable. If you can wait till six months (you're on 1.9.5 for six years!) you might even have 3.0!

BTW, have you mentioned the system software: operating system, web server, database server, PHP? I believe they are relevant. Even the network architecture need to be taken in to consideration.

And lastly, consider moving the thread to the security forum.
In reply to Vinod Kumar

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Moving all this to the security forum. 

BTW... this is what happens when you run one of these scanner applications against anything you care to name. Are you *sure* you understand the problem it is reporting and that it has an actual or potential impact on your organisation? Security alerts aren't absolutes - they often apply to certain environments that may not apply to you.

My only other thought - there will have been an impressive list of security issues fixed in Moodle in the years between the release of version 1.9.5 and the release of 2.8. If your primary issue is security then the upgrade should be, as they say, a no-brainer wink

In reply to Howard Miller

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Vinod Kumar -

Dear Miller,


This issue "Session Identifier Not Updated" is raised by Security team only of my organization. As your support team mentioned that upgrade from 1.9.5 to 2.8 may be the solution. So I told this to my security team. Now they are asking me to upgrade. But before upgrade to 2.8 I want to make sure that this issue will resolved after upgrade.


Because from long period of time using 1.9.5, We have done so many changes in existing website. Hence it will impact and too much rework will be required if I upgrade to latest version.


Thanks to just clarify me that Upgrade is the only solution or there is another solution can be done in my 1.9.5 version without upgrade.


I really appreciate to reply me back.

In reply to Vinod Kumar

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Just H -
As Visvanath already suggested, install a test instance and get your security team to test it.

Regardless of the result, giving the pressure they are putting on you regarding security issues you really should seriously look at upgrading anyway. Again, as Visvanath and Howard have already stated, you are currently getting no security updates from Moodle and therefore potentially at even more risk.

The fact you seem to be "stuck" on 1.9+ due to local modifications is also a lesson to be learnt ... unless you have people capable and knowledgeable enough to resolve issues such as those asked here it's not a good idea to hack a system (of any kind) that will leave you in the situation you are in.

Average of ratings: Useful (1)
In reply to Just H

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I'm not sure I can put it any better but you should *never* back yourself into a corner where it becomes difficult or impossible to upgrade Moodle. 

It's not hard..

- don't hack core Moodle
- don't add optional plugins unless (a) the are not and never will be mission critical or (b) they appear to be well supported and/or you have the skill and motivation to support them yourself. 

In reply to Vinod Kumar

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi Vinod

You withheld an important piece of information too long:
> Because from long period of time using 1.9.5, We have done so many changes in existing website. Hence it will impact and too much rework will be required if I upgrade to latest version.

As others have pointed out that was a mistake and if you've stated that in the beginning this discussion wouldn't have gone in circles!

Now all that happende, what are you options? Here is how I would proceed.

- I'd forget automatically transferring the changes done to 1.9.5 in to any Moodle 2 version. That need to be done manually and will take time.

- If this is a professional site, Moodle 1.9.5 should not be on-line. There are simply too many known security issues. I would diff the changed 1.9.5 against original 1.9.5 and apply the patch to 1.9.19+, migrate the site to that and get the result streamlined as a short/medium term solution.

(Don't tell me you're on Windows! I notice that you never mentioned the operating system nor the other system software. sad )
Average of ratings: Useful (1)
In reply to Visvanath Ratnaweera

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers
Two different approaches - Visvanath's process to upgrade or Howards earlier suggestion just to install 2.8 separately and transfer your courses to there. Personally I would go with Howard's suggestion and make a fresh start with a new moodle setup. I am aaware you have said too much work would be involved in reworking a new site - I still believe that option is your best long term bet and that you may be surprised, if you actually test one of the latest versions how much additional benefit you get from it (as well as potentially removing the need for some of your existing customisations) - responsive themes, suitable for multiple devices, jQuery, the range of plugins, the apis that will enable you to create any of the rest of your customisations in a more modular, plugin fashion, the ongoing support and security updates of a newer version etc etc etc.

Look at your 1.9.5 site, look at what your customisations actually do (not so much the code itself at this stage, but the purpose of it). Then install 2.7LTS, 2.8 or in a couple of days 2.9 (on a test system). Investigate whether the new version actually removes the need for some of your customisations, or whether there are appropriate (supported!) plugins that will avoid you hacking core, and also whether any of your customisations can be refactored in Moodle2 into plugins rather than core hacks.

It's not a quick fix, but its probably the best long term solution to prevent this happening again!.
Its the approach I had to take a few years ago when a direct upgrade of 1.9>2.1 wasn't practical because of previous core hacks (prior to me being in the institution). I took core moodle2, looked at the purpose behind the previous hacks rather than the code, and redefined the site with the poiicy of minimising (eradicating) core hacks - just about the only time I now make changes to core moodle code is to apply fixes I know will be making it into the next version of Moodle, but we want in place before we can do a full point version update. Everything else is done via plugins/settings.

@Visvanath - not upgraded since 1.9.5, concerned about work involved to refactor customisations now that its a big leap rather than the small increments that could have been happening, expecting to have to pay to upgrade, delayed any security concerns (evidenced by the non-upgrade) until now when suddenly there is a 'panic' over security, which of course is down to the open source software being used (even though its x years out of date!): sounds like a M$Windows based IT department to me ;)  (tongue firmly in cheek)
Average of ratings: Useful (2)
In reply to Richard Oelmann

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Richard

Just to clarfiy: Howard's suggestion and mine differ in only one point, in the intermediate step through 1.9.19+.

Otherwise we both were talking of going to a recent Moodle version. Howard suggested migration or rebuild from scratch. I suggested course-by-course backup/restore: see https://moodle.org/mod/forum/discuss.php?d=312600#p1252531 f.f.

What nobody still seems to know is whether a recent Moodle version (2.7/8/9) withstands Vinod's security audit https://moodle.org/mod/forum/discuss.php?d=312600#p1252576.
In reply to Visvanath Ratnaweera

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Vinod could have installed a new version of Moodle 2.8 and tried it several times over while we have been discussing it. 

I don't wish to sound unhelpful (no more than usual anyway), but I don't see this as a general issue. If it matters to him that it passed this rather arbitrary audit then he needs to do some work. If it still doesn't work, then the next step is to raise a security report in the bug tracker. However, there is absolutely no point doing this for 1.9 as it will be ignored. 

Average of ratings: Useful (2)
In reply to Howard Miller

Re: Weak SSL Cipher Suites are Supported - Version-1.9.5

by Vinod Kumar -

Dear Miller,


I agree and doing some R & D to find out where "MoodleSession" is very first time generating so that I can re-generated this session key.


Thanks and lot and reply me back


Vinod Kumar