Cybersecurity news

Jessica Doner

Back to the list

Critical WordPress Flaws Allow Attackers to Execute Remote Code Without Authentication

GBHackers,

Two WordPress flaws let attackers run remote code without login credentials by chaining a REST API issue with SQL injection.

Vulnerabilities and patches

Overview

Two vulnerabilities in WordPress Core allow attackers to run remote code on a serverA computer or program on a network that stores data and responds to requests from client devices without needing valid login credentialsThe login details, such as a username and password or key, that prove who an account belongs to. This exploit chainTwo or more separate vulnerabilities linked together in sequence to break through multiple layers of defense, named WP2Shell, combines a flaw in the REST APIA common style of web API that uses standard HTTP requests to read, create, update, or delete data batch controller with a SQL injectionPutting database commands into a web form or request so the server runs them by mistake issue in the posts endpoint. The first weakness lets attackers bypass authenticationVerifying that a user, device, or program really is who it claims to be before allowing access to reach protected functions, while the second allows them to manipulate databaseAn organized digital store of structured records, such as customer accounts, orders, or messages, queried by software queries. Together, these flaws let an attacker create an administrator accountThe highest permission level on a computer or network, allowing full control over software and settings and install a malicious pluginAn add-on software module that extends a website, browser, or application with extra features that acts as a web shellA small malicious script uploaded to a web server that lets an attacker run commands through a browser. The attack sequence involves staging temporary files and extracting PHP payloads into the server's plugin directory. This issue affects WordPress versions 6.9.0 through 6.9.4 and 7.0.0 through 7.0.1.

Terms in this story

server
A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
credentials
The login details, such as a username and password or key, that prove who an account belongs to. Many breaches begin when attackers steal an employee's login credentials through a fake website and sign in to the company network as if they belonged there. Security+ objective 4.6 lists the term
exploit chain
Two or more separate vulnerabilities linked together in sequence to break through multiple layers of defense. A single bug in a browser tab might not be enough on its own, so an attacker combines a browser bug with a second kernel bug in an exploit chain to escape the sandbox.
REST API
A common style of web API that uses standard HTTP requests to read, create, update, or delete data. Cloud platforms and web apps expose a REST API for mobile clients and partner services, and broken permission checks on those endpoints are a frequent cause of data leaks.
API
A structured interface that lets one software program request data or actions from another program. Mobile apps, websites, and cloud services talk to backend servers through an API, and a poorly protected API can let attackers pull customer records in bulk. Security+ objective 4.7 lists the term
SQL injection
Putting database commands into a web form or request so the server runs them by mistake. When a website builds a database query directly from user input without checking it, an attacker can use SQL injection to dump customer tables or log in as an administrator. Security+ objective 2.3 lists the term
SQL
The standard query language used to read, add, update, and delete records in relational databases. Almost every banking, retail, and hospital system stores its records in a database controlled by SQL, which is why SQL injection bugs that alter those queries are so dangerous.
Authentication
Verifying that a user, device, or program really is who it claims to be before allowing access. When you enter a password, scan a fingerprint, or present a key, authentication checks your identity before a server decides what your account is allowed to do.
database
An organized digital store of structured records, such as customer accounts, orders, or messages, queried by software. Behind almost every website and mobile app sits a database, and attackers target misconfigured or unpatched databases to copy millions of user records at once.
administrator account
The highest permission level on a computer or network, allowing full control over software and settings. Attackers try to steal accounts with administrative privileges because those accounts can turn off antivirus tools, read any file, and install malware across the network.
plugin
An add-on software module that extends a website, browser, or application with extra features. Small businesses add dozens of third-party plugins to their websites for contact forms or shopping carts, and an unpatched plugin flaw is a common way attackers take over a site.
web shell
A small malicious script uploaded to a web server that lets an attacker run commands through a browser. After exploiting a flaw in a website, attackers often drop a hidden web shell in a public folder so they can upload tools and browse the server's files at will. Security+ objective 2.4 lists the term

This page is a short description made for this site. The article itself, with its author's name and its own link, is on the GBHackers website. Cite the article, not this page.

Read the full article on GBHackers (opens in a new tab)

Course connections

Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.

How a story is connected to the course, and every objective, week and job role

Same story at other outlets

Related