Skip to main content

How to Prevent your website to hack with PHPMailer library

The vulnerability could allow attackers execute arbitrary shell commands on web servers

How to Prevent your website to hack with PHPMailer library

A critical remote code execution vulnerability in PHPMailer, one of the most widely used PHP email sending libraries, could put millions of websites at risk of hacking.
The flaw was found by a security researcher named Dawid Golunski and an initial fix was included in PHPMailer 5.2.18, which was released on 28 Dec 2016. However, it turns out that the patch was incomplete and can be bypassed.
The PHPMailer library is used directly or indirectly by many content management systems (CMSs) including WordPress, Joomla and Drupal. Where the library is not included in their core code, it is likely available as a separate module or can be bundled with third-party add-ons.
Because of this, the flaw's impact can vary from website to website. For example, the Joomla security team determined that the Joomla JMail class, which relies on PHPMailer, has additional validations in place that make exploiting the vulnerability impractical.
The flaw is caused by insufficient validation of the sender email address input and can allow an attacker to inject shell commands that would be executed on the web server in the context of the sendmail program.
However, successful exploitation requires the presence of a web form on the website that uses PHPMailer to send emails and allows inputting a custom sender email address -- the address that appears in the From email header. It's not clear how common such configurations are, because usually web forms have the sender email predefined and only allow users to input their own email address as a recipient.
"All places in the core Joomla API which send mail use the sender address set in the global configuration and does not allow for user input to be set elsewhere," the Joomla security team said in an advisory. "However, extensions which bundle a separate version of PHPMailer or do not use the Joomla API to send email may be vulnerable to this issue."
The WordPress developers reached a similar conclusion, noting on their own bug tracker that the internal wp_mail() function used by the WordPress core code is not affected because it does not use the vulnerable PHPMailer feature. Third-party plug-ins that use wp_mail() correctly should theoretically not be affected either, but the impact to specific plug-ins is still under investigation.
"The upcoming 4.7.1 release will contain mitigation for these issues," WordPress lead developer Dion Hulse said. "We're committed to only shipping secure libraries with WordPress -- regardless of whether we use the feature or not."
The Drupal security team also put out a security advisory for this issue and marked it as critical, even though the Drupal core code is not affected by the flaw.
"Given the extreme criticality of this issue and the timing of its release we are issuing a Public Service Announcement to alert potentially affected Drupal site maintainers," the team said.
Because the initial fix can be bypassed and public exploit code is available, the vulnerability has zero-day status -- it is publicly known and unpatched. Furthermore, because the impact varies from website to website, depending on how PHPMailer is used, there's not easy way for webmasters to mitigate the problem without a thorough evaluation.
If they use PHPMailer directly in their website's code, they should upgrade the library to the latest patched version as soon as it's released. They should also determine if any of their site's contact, feedback, registration, email reset and other forms send out emails with the help of a vulnerable version of PHPMailer and if a potential attacker can input the sender email address.
If they use a content management system they should check its support website to determine if it's affected in its default configuration. Then they should asses the impact for any any third-party plug-ins or modules that they have installed and which might use PHPMailer on their own.

Comments

Popular posts from this blog

5 ways to make better and impressive meetings

Meetings come in all shapes and sizes. There are board meetings, stakeholder meetings, staff meetings, sales meetings — the list is endless. But no matter the purpose, every meeting has one thing in common: how clients, customers and stakeholders perceive you can directly determine the outcome. Months of hard work and tireless effort could all go to waste if you aren’t able to pitch an audience your company’s latest idea, project or venture. Here are five ways to run a successful business meeting and ensure you always leave a positive impression. 1. Measure the mood. If you want your meeting attendees to leave impressed, make sure you exceed their expectations. One way of going above and beyond — without anyone even realizing it — is to take a mental note of the mood of each person as they arrive and sit down. Use a basic scale of 1–10; the lower the number, the more unhappy or irritated the person appears. Then use that information to tailor your actions throughout the meetin

Tappay payment gateway integration woocommerce

TapPay  offers fast  payment  flow integration, allowing your customers to  pay  with a click of a button instead of redirecting to other websites, in this article you will see how you can integrate  Tappay payment gateway with woocommerce . how you get  Tappay payment gateway woocommerce module and integrate it. When it comes to data security,  TapPay is also very safe and reliable . TapPay provides friendly and flexible payment service, which allows citiesocial users to enjoy wonderful shopping experience.It has a significant impact on improving e-commerce conversion rate and lower operation cost. Tappay payment gateway integration woocommerce Tappay payment gateway integration woocommerce Integrated Payments Exclusive Cross-site modules for seamless checkout experiences Tokenized card management, Card-Free experience and self-updating card expiration dates TapPay is compatible with multiple payment method and E-wallet, including Apple Pay / Google Pay / Samsung Pay / LINE Pay / JKOP

Icici eazypay Payment gateway integration with woocommerce plugin php module

Icici eazypay Payment gateway integration with woocommerce plugin php module Icici eazypay Payment gateway integration with woocommerce plugin php module,  What is the icici eazypay? eazypay lets you pay your bills conveniently, be it your education, housing society maintenance or any other bills. You can pay your bills using Cash Deposit, Cheque Deposit, RTGS, NEFT, Net Banking or Cards. Why eazypay? Search bills with your registered  Mobile Number/Email ID Enjoy multiple payment options Get reminder before due date Pay from any of your Bank Accounts Pay bills of large number of Institutions Get e-Receipts for payments made Icici eazypay Payment gateway integration with woocommerce plugin php module Eazypay is a single platform for multiple collection modes which facilitates single Management Information System (MIS) reconciliation for all collection modes. It has a plug and play implementation and enhances speed of collection. Eazypay is