MeshCentral From Agent-Controlled Stored XSS to Fleet-Wide R...#2376
Open
carlospolop wants to merge 1 commit into
Open
MeshCentral From Agent-Controlled Stored XSS to Fleet-Wide R...#2376carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://techanarchy.net/meshcentral-from-xss-to-rce Content Categories: Based on the analysis, this content was categorized under "Network Services Pentesting -> 80,443 - Pentesting Web Methodology -> MeshCentral; also cross-reference from Pentesting Web -> XSS and WebSocket Attacks". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
The post documents a full exploit chain against MeshCentral, an open-source, self-hosted remote monitoring and device management platform. The vulnerability is tracked as GitHub Advisory GHSA-c7hr-448w-65px and affects MeshCentral 1.1.59 and below. The core issue is stored XSS in agent-controlled metadata: a rogue or compromised
MeshAgentcan inject arbitrary HTML/JavaScript into theosdescOS description field of itscoreinfo...🔧 Technical Details
Agent-controlled stored XSS through trusted device metadata: Management platforms often trust metadata submitted by enrolled agents and later render that metadata in administrator dashboards. If fields such as OS description, hostname, device model, username, or agent status are stored and displayed without output encoding, a rogue or compromised agent can inject HTML/JavaScript. In this case, MeshCentral accepted an agent
coreinfovalue namedosdescand rendered it in the device details UI. A payload such as<img src=x onerror="alert('XSS: '+document.domain)">becomes stored XSS and executes when an admin views the device.Agent impersonation using locally readable enrollment secrets: If an endpoint agent stores its enrollment configuration, node identity, certificate, or private key material in files readable by low-privileged users, a local attacker can copy those files and impersonate the agent from another system....
🤖 Agent Actions
Done.
Updated:
src/network-services-pentesting/pentesting-web/meshcentral.mdsrc/network-services-pentesting/pentesting-web/README.mdsrc/SUMMARY.mdAdded a new MeshCentral page covering:
MeshAgent.msh/MeshAgent.db/agent.ashxhandshake notes/control.ashxWebSocket abuseruncommands/runAsUser:0fleet-wide RCE patternValidation:
git diff --checkmdbook buildcould not be run becausemdbookis not installed in this environmentThis PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.