Magento 2 – Dirty COW Linux OS Vulnerability

In Magento 2, you will see notification about Dirty COW Linux OS Vulnerability. So what is this ? What it means ?

Dirty COW (CVE-2016-5195) is a privilege escalation vulnerability in the Linux Kernel that can allow a local user (like a web hosting account) to gain root access to the server. This can also be a huge problem if your Magento store is compromised and the attacker has the ability to upload files to your server or hosting account.

More Information: http://dirtycow.ninja/

If you manage your own server, you will need to update the kernel (and reboot your server) once the security patch is issued by your operating system providers.

If you do not manage your own server or if you are using shared hosting, contact your server administrator or hosting provider to make sure that you are protected against this vulnerability.

Please take news into consideration and secure your online store.

Ref: https://magento.com/security/vulnerabilities/new-linux-operating-system-vulnerability

How to reset admin password in Magento 2?

In order to reset the admin password from phpmyadmin in Magento 2, please follow below simple steps.

1) Go to phpMyAdmin
2) Open table admin_user
3) Run the following sql query

Here, NewPassword -> Replace it with your password.

Thats it. Enjoy Magento 2!! Enjoy Magewallet!!!

How to get extension version in Magento 2?

In order to retrieve version of any extension/module in Magento 2, you can use following code snippet.

Here, Wallet is vendor name and Version is module name.

Enjoy cool stuff! Enjoy Magento 2!! Enjoy Magewallet!!!

Magento 2 – How to add jQuery calendar to custom frontend form?

Recently I have found one solution to add jQuery calendar to custom frontend form. Lets discuss in detail.

In order to add jQuery calendar to custom frontend form, we have to add text input field to custom frontend form.

As per below code create one new text input field inside form block.

In order to bind jquery-ui calendar with above input field, add below jquery snippet.

If you want to add date ranges on front-end, then use below code.

Thats it. Enjoy Magento 2!! Enjoy Magewallet!!!