?
avatar zero-24
zero-24
15 Nov 2017

Steps to reproduce the issue

  • install on PHP 7.1.6
  • Enable totp
  • set error level to development

Expected result

No errors / warnings etc.

Actual result

Deprecated: Function mcrypt_list_algorithms() is deprecated in JROOT/libraries/fof/utils/phpfunc/phpfunc.php on line 37

Deprecated: Function mcrypt_get_iv_size() is deprecated in JROOT/libraries/fof/encrypt/aes/mcrypt.php on line 155

Deprecated: Function mcrypt_get_iv_size() is deprecated in JROOT/libraries/fof/encrypt/aes/mcrypt.php on line 155

Deprecated: Function mcrypt_get_iv_size() is deprecated in JROOT/libraries/fof/encrypt/aes/mcrypt.php on line 155

Deprecated: Function mcrypt_decrypt() is deprecated in JROOT/libraries/fof/encrypt/aes/mcrypt.php on line 74

Additional comments

What is the plan? Hacking the EOL Framework ourself or reporting & waiting for a upstream fix?

As we are told in the readme notes the following:

Framework on Framework 2.x is End Of Life since June 2016

If you are still using it, too bad for you. We told you to update your components to FOF 3.x back in early 2015.

Don't cry if it's broken. Don't ask us to fix it. It's DISCONTINUED, remember?
avatar zero-24 zero-24 - open - 15 Nov 2017
avatar joomla-cms-bot joomla-cms-bot - change - 15 Nov 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 15 Nov 2017
avatar mbabker
mbabker - comment - 15 Nov 2017

It isn't not an issue as those method calls exist in places where there are already checks happening. IIRC mcrypt is only used when OpenSSL is unavailable in that code.

avatar franz-wohlkoenig franz-wohlkoenig - change - 15 Nov 2017
Category Administration
avatar franz-wohlkoenig franz-wohlkoenig - change - 15 Nov 2017
Status New Discussion
avatar zero-24
zero-24 - comment - 15 Nov 2017

Atleast there are still explizite calls to mcrypt: https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_users/models/user.php#L1014 Looks like they are only used incase we us a broken totp call as described in #18559

avatar wilsonge
wilsonge - comment - 16 Nov 2017

The explicit call I see there is just to convert people currently on mcrypt over to ssl?

avatar zero-24
zero-24 - comment - 30 Nov 2017

looks like a broken envoirment than.

avatar zero-24 zero-24 - change - 30 Nov 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-11-30 12:15:08
Closed_By zero-24
avatar zero-24 zero-24 - close - 30 Nov 2017
avatar wilsonge
wilsonge - comment - 30 Nov 2017

Not really. I mean basically this code converts from mcrypt to openssl. so to do that we need to actually call the mcrypt version first to decrypt the legacy string. then openssl to re-encrypt. so these deprecated functions are being called. But it's a one time only call per user who has a 'legacy' string

Add a Comment

Login with GitHub to post a comment