By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
Security Parrot - Cyber Security News, Insights and ReviewsSecurity Parrot - Cyber Security News, Insights and Reviews
Notification
Latest News
OpenAI may use Associated Press archive for AI training
July 14, 2023
EU users can hold conversations with Google Bard from training set
July 14, 2023
Aptos, the new default font for Microsoft Office
July 14, 2023
BlackLotus UEFI bootkit sources published on GitHub
July 14, 2023
Hackers from the XDSpy cyber-espionage group attacked Russian organizations on behalf of the Ministry of Emergency Situations
July 14, 2023
Aa
  • News
  • Tutorials
  • Security InsiderComing Soon
  • Expert InsightComing Soon
Reading: Not the WordPress Newsletter you’ll want to receive
Share
Security Parrot - Cyber Security News, Insights and ReviewsSecurity Parrot - Cyber Security News, Insights and Reviews
Aa
Search
  • News
  • Tutorials
  • Security InsiderComing Soon
  • Expert InsightComing Soon
Follow US
Security Parrot - Cyber Security News, Insights and Reviews > News > Not the WordPress Newsletter you’ll want to receive
newsletter
News

Not the WordPress Newsletter you’ll want to receive

Last updated: 2020/08/05 at 6:12 PM
Jim Koohyar Biniyaz Published August 6, 2020
Share
newsletter
SHARE

WordPress is by far the most popular CMS out there, but it’s also no stranger to nasty bugs and vulnerabilities. The latest one involves an uber popular newsletter plugin, that, if exploited could lead to a total website compromise.

Aptly named newsletter, the WordPress plugin has more than 300,000 downloads, but now, it has emerged, also a pair of nasty vulnerabilities that could lead to code-execution and even site takeover.

The tool offers site admins a quick and easy visual editor that can be used to create newsletters and email campaigns from within WordPress.

According to Wordfence, the issues are a reflected cross-site scripting (XSS) vulnerability and a PHP object-injection vulnerability (both remedied by using the latest version of the newsletter plugin).

The first bug, which hasn’t got a CVE yet, is an authenticated reflected XSS problem. Successful exploitation could allow logged-in attackers to inject malicious code into a web window.

According to Wordfence: “If an attacker tricked a victim into sending a request containing a malicious JavaScript , the malicious JavaScript would be decoded and executed in the victim’s browser.”

Wordfence also stressed that the specific issue arises because vulnerable versions of Newsletter use an AJAX function, tnpc_render_callback, to display edited blocks based on a set of options sent in the AJAX request.

However these options aren’t filtered, but are instead passed directly on to a second function, restore_options_from_request, which displays the blocks using the render_block function.

This is all detailed in a very interesting blog post.

As such, the researchers explained, it was possible for an attacker to get malicious JavaScript to display in multiple ways.

One method of exploitation could be to send a POST request to wp-admin/admin-ajax.php with the action parameter set to tnpc_render, the b parameter set to html and the options parameter set to arbitrary JavaScript.

Or, the options parameter could be set to an empty array options[]=, and the encoded_options parameter set to a base64-encoded JSON string containing arbitrary JavaScript. In both cases, JavaScript would be rendered in a logged-in user’s browser.

Newsletter: the second bug

The second bug, also CVE pending, is a high-severity PHP object-injection bug.

This could lead to a PHP object injection that in turn could be processed by code from another plugin or theme, and used to execute arbitrary code, upload files or any number of other tactics that could lead to site takeover.

In terms of methods of exploitation, Wordfence researchers explained that the __destruct function is used by many sites to automatically delete files and “clean up” once a pre-defined, legitimate process is completed. An example would be a script on an e-commerce site that calculates product prices, stores a log of that action, and then deletes the log when it’s done.

If this code were running on a site that also contained the PHP object injection vulnerability, an attacker could delete the wp-config.php file containing the WordPress site’s core configuration settings by sending a specially crafted payload.

Wordfence explained that “The deletion of the wp-config.php file would reset the site and allow an attacker to take over by pointing the site’s new configuration to a remote database under their control” .

The researchers added that “although an attacker might need to know which plugins are installed in order to tailor their attack to a given POP chain, it is often fairly simple to determine this with scanning tools. The good news is that such vulnerabilities are difficult to automatically exploit in bulk, except in cases where a PHP Object Injection vulnerability and an insecure magic method are both used in the same plugin”.

Weekly Updates For Our Loyal Readers!

Jim Koohyar Biniyaz August 6, 2020
Share this Article
Facebook Twitter Email Copy Link Print

Archives

  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • February 2023
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020

You Might Also Like

News

OpenAI may use Associated Press archive for AI training

July 14, 2023
News

EU users can hold conversations with Google Bard from training set

July 14, 2023
News

Aptos, the new default font for Microsoft Office

July 14, 2023
News

BlackLotus UEFI bootkit sources published on GitHub

July 14, 2023
Security Parrot - Cyber Security News, Insights and Reviews > News > Not the WordPress Newsletter you’ll want to receive

Newsletter

Last updated: 2022/08/19 at 5:06 PM
Jim Koohyar Biniyaz Published July 19, 2020
Share

© 2022 Parrot Media Network. All Rights Reserved.

  • Home
  • Parrot Media Group
  • Privacy Policy
  • Terms and Conditions
Join Us!

Subscribe to our newsletter and never miss our latest news, podcasts etc..

Zero spam, Unsubscribe at any time.

Removed from reading list

Undo
Go to mobile version
Welcome Back!

Sign in to your account

Lost your password?