Post by Micas » Wed Oct 30, 2024 10:29 pm

Hi,

I'm Running Opencart version 3.0.4.0 on PHP 8.3.13 and getting the below errors in my error log.

PHP Warning: Undefined array key "email" in /storage/modification/catalog/controller/account/login.php on line 164

PHP Unknown: mb_strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /system/helper/utf8.php on line 30

PHP Warning: Undefined array key "email" in /storage/modification/catalog/controller/account/login.php on line 171

PHP Warning: Undefined array key "email" in /storage/modification/catalog/controller/account/login.php on line 178

PHP Warning: Undefined array key "password" in /storage/modification/catalog/controller/account/login.php on line 178

PHP Unknown: md5(): Passing null to parameter #1 ($string) of type string is deprecated in /httpdocs/system/library/cart/customer.php on line 54

PHP Warning: Undefined array key "email" in /storage/modification/catalog/controller/account/login.php on line 181

PHP Warning: Undefined array key "email" in /storage/modification/catalog/controller/account/login.php on line 164

Does anyone know what could be causing this and a possible solution please?

New member

Posts

Joined
Sat Sep 02, 2017 12:28 am

Post by softmonke » Wed Oct 30, 2024 10:41 pm

Seems like it could be caused by an extension that you've installed since the path shows under modifications.

Check out our ever-growing list of extensions for OpenCart here.
Some useful extensions for a better admin experience: Image File Manager ProDrag & Drop Sort Order

Reach out to us at hello@softmonke.com for your OpenCart web development needs or feedback for our extensions.


User avatar
Active Member

Posts

Joined
Tue May 23, 2023 4:42 am


Post by OSWorX » Sat Nov 02, 2024 5:20 pm

Micas wrote:
Wed Oct 30, 2024 10:29 pm
Hi,

I'm Running Opencart version 3.0.4.0 on PHP 8.3.13 and getting the below errors in my error log.

blablabla ...

Does anyone know what could be causing this and a possible solution please?
First of all, unless you can provide more details, nobody will be able to help you here.
Please read the Forum Rules before proceeding.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by Micas » Mon Nov 18, 2024 8:13 pm

Thank you for your reply softmonke.
To eliminate any effects that modifications may have I have built a dev site using the bog standard Opencart version 3.0.4.0 and the problem I think is that bots are trying to login and causing the error messages.
After further testing there seems to be an issue in that even after the incorrect login details are entered many times and after the maximum login attempts message 'Warning: Your account has exceeded allowed number of login attempts. Please try again in 1 hour.' has displayed you can still attempt to login and when the correct customer details are eventually entered the customer is allowed login.
I may be overlooking something but this seems to be a security issue as it allows bots many login attempts

New member

Posts

Joined
Sat Sep 02, 2017 12:28 am

Post by nonnedelectari » Mon Nov 18, 2024 9:24 pm

I may be overlooking something
that is correct as this
after the maximum login attempts message 'Warning: Your account has exceeded allowed number of login attempts. Please try again in 1 hour.' has displayed you can still attempt to login and when the correct customer details are eventually entered the customer is allowed login.
is incorrect.

These post requests on the login path come from bots who post without providing the required fields like email and password, i.e. direct posts not using the OC form. OC does not check if those fields are present, it assumes they are, and as such php logs a warning when those fields are referenced.
Is that OK from OC? No, is it a security issue? No.

Active Member

Posts

Joined
Thu Mar 04, 2021 6:34 pm

Post by Micas » Mon Nov 18, 2024 10:56 pm

To me that doesn't make sense, as a potential hacker could continue trying different passwords after the maximum number of attempts message has appeared and before the 1 hour re-set time has elapsed - I thought the whole idea of not being able to try and enter a password the maximum number of attempts was that you could not try to re-enter a password until the 1 hour had expired?

New member

Posts

Joined
Sat Sep 02, 2017 12:28 am

Post by nonnedelectari » Mon Nov 18, 2024 11:29 pm

Micas wrote:
Mon Nov 18, 2024 10:56 pm
To me that doesn't make sense, as a potential hacker could continue trying different passwords after the maximum number of attempts message has appeared and before the 1 hour re-set time has elapsed - I thought the whole idea of not being able to try and enter a password the maximum number of attempts was that you could not try to re-enter a password until the 1 hour had expired?
No, if different passwords are used, they are blocked for an hour.
These are bogus (not even) login attempts as they do not contain email addresses nor passwords, these are just probes.
Learn about how different bots behave, what they seek, how they seek it and how they might find what they seek.

It is true that OC has a very poor handling of bots, in many areas, but OC is not insecure with regard to bots.

In short, you are confusing login attemps with viable login attempts.

Active Member

Posts

Joined
Thu Mar 04, 2021 6:34 pm

Post by Micas » Tue Nov 19, 2024 12:24 am

nonnedelectari thanks very much for your help - yes that makes sense now!

New member

Posts

Joined
Sat Sep 02, 2017 12:28 am

Post by nonnedelectari » Tue Nov 19, 2024 2:15 am

Good, I know that some requests may freak people out but most of them are just probes, trying to figure out what you have there.
Some straightforward, some sophisticated, some ellusive, some mindboggling, some just freaking weird but most just innocent "let's see what you have got".

In general OC is pretty secure, the only thing you really need to worry about is extensions you install as they are not scrutinized on security, so in essence, your OC system is as secure as your extensions are.

Active Member

Posts

Joined
Thu Mar 04, 2021 6:34 pm
Who is online

Users browsing this forum: No registered users and 4 guests