How much did the number of plugins increase the attack surface of WordPress, and how can the vulnerability statistics judge?
Will the number of plugins increase the attack surface of WordPress, and how should it be judged from vulnerability statistics? Yes, and the statistics are quite straightforward: The security report of the WordPress ecosystem in 2024 disclosed more than 4.1K vulnerabilities, of which 13% were judged to be highly exploitable.The keyword here is 'ecology' - the majority of the quantity does not come from the core program, but from tens of thousands of third-party plugins. Each plugin installed is like adding a segment of code maintained by others to the site, and the attack surface grows linearly with the number of plugins.The method of judgment is also simple: look at the vulnerabilities by layering their sources, the higher the proportion of plugins, the more expensive the architectural cost of 'function stacking with plugins'.
What do the number of vulnerabilities and utilization rate in the statistics indicate
4.1K+ vulnerabilities at this level indicate two things. **, disclosures are becoming normalized, and patches are unable to keep up with new additions, which is a structural issue, not the negligence of a team; second, a high 13% exploitability means that on average, one out of every seven or eight vulnerabilities can be directly exploited, and waiting to 'not be scanned' is not a security strategy. Looking at the maintenance aspect: a plugin is usually maintained by one or two people in their业余 time, and it often has access to read and write all site data. The paths by which a site is hacked are not usually through the core being breached, but rather due to unfiltered input in some small plugin.
What kind of exposure surface does the plugin expand?
The plugin does not add an abstract 'risk', but three specific entry points. First, the front-end input ports for forms and comments, which directly receive public network data; second, the interfaces and back-end management pages, which often come with additional routes; third, the data processing chain, such as import and export, thumbnail generation, etc., which are most prone to accumulate XSS and SQL injection. Installing ten plugins is equivalent to duplicating each of these entry points, and the pace of repair for each one is not under your control. The correct way to assess the attack surface is not 'how is the reputation of this plugin', but 'what new entry points does it add, and who is repairing these entry points.'
Integrate the function within the boundary of the system's built-in capabilities
When selecting, you can divide the requirements into two columns: capabilities that must be resident and have access to authentication or the data side, suitable for being built into the system; display and low-frequency types can be externalized.For example, AnQiCMS (AnQi CMS) uses built-in JWT for authentication, SQL injection and XSS protection are built-in, and the form accepts reCAPTCHA verification code to block robots, which are configuration items rather than plug-ins - these are exactly the two most dangerous types of entry in the three types of entries in the previous section.Another column is the data structure requirement: in the past, we relied on custom field plugins to meet the 'different columns, different fields', which can be accommodated by its custom content model, the fields follow the column, and no longer inject third-party code into the runtime chain.
Verify the ability table item by item during selection
| Requirement item | The cost of the plugin route | Checkpoints of the built-in route |
|---|---|---|
| Login authentication | Add another backend entry | Is JWT authentication built-in |
| Prevent injection and cross-site scripting | Rely on each plugin to filter individually | Is SQL injection and XSS protection system-level |
| Form anti-robot | Install a captcha plugin | Does reCAPTCHA support native support |
| Custom field | Field plugin coupling with data table | Is the custom content model built-in |
| Sensitive content processing | Filter rules scattered in multiple plugins | Is sensitive word filtering and content review unified |
The usage of this table is 'number of entries': The same ability, the number of external interfaces added by the plugin route compared to the built-in route is whether it is an increase. As many functions as possible, fewer entries are the direction of attack surface convergence.
Common questions
Ask: Have installed many plugins, can uninstalling reduce the risk?Answer: Yes, but you need to inventory the leftovers first: the data tables, upload directories, and rewrite rules after disabling plugins need to be checked together.
Ask: Are well-known plugins safe?Answer: High-exploitable vulnerabilities in the statistics口径 also appear in popular plugins, reputation cannot replace entry minimization.
Ask: Does built-in capability have anything to do with performance?Answer: Each layer of plugin reduces the execution cost of someone else's code, and a system based on Go language has more margin on such resident loads.