Summary
rConfig's Config Search View Matches dialog renders configuration context as HTML without escaping it, allowing stored markup in device-related fields to execute as script in a user's browser. If a user opens a dialog containing attacker-controlled content, the script may act within that user's session and access information available to them, including stored configurations.
Affected context
The issue affects rConfig Core versions before 8.2.17 and rConfig Pro versions before 8.4.0. It occurs in the Config Search View Matches dialog when configuration context—such as device banners, interface descriptions, ACL remarks, or SNMP locations—is rendered through an HTML sink without escaping.
Exploit preconditions
- Attack surface: The rConfig web interface, specifically the Config Search View Matches dialog.
- Required access: An attacker must be able to cause attacker-controlled markup to be stored in a field displayed in the dialog; the precise access path depends on deployment permissions and workflows.
- Trigger point: A user views matching configuration context containing the stored content.
- Why exploitation is possible: The dialog renders the content with
v-htmlwithout escaping it, so the browser may interpret the stored markup as executable HTML or script.
Why this happens
The underlying issue is unsafe rendering of untrusted, persisted data in an HTML context. Using v-html without appropriate sanitization or context-aware output encoding allows markup to be interpreted by the browser rather than displayed as text. This is a stored cross-site scripting flaw mapped to CWE-79: Improper Neutralization of Input During Web Page Generation.
Potential impact
- Script may execute in the context of a user's rConfig session.
- An attacker could potentially access configuration data that the affected user is authorized to view.
- Session actions or information available to the user may be exposed or misused, depending on application controls.
- Trust in the integrity of configuration review workflows could be undermined.
General mitigation guidance
Defensive patterns focus on treating stored configuration content as untrusted and preventing it from being interpreted as active HTML.
- Prefer rendering untrusted values as text with framework-default escaping.
- Avoid raw HTML rendering for configuration context; where rich markup is necessary, apply a restrictive, well-maintained sanitizer with an explicit allowlist.
- Validate and constrain data at ingestion where practical, while retaining output encoding as the primary browser-side defense.
- Limit who and what can write device metadata and configuration fields displayed in the interface.
- Apply least privilege to user accounts and restrict access to sensitive configurations.
How teams detect issues like this
- Use static analysis to identify raw HTML rendering sinks such as
v-html, and trace whether their inputs can contain user- or device-controlled data. - Review UI components that display configuration values, banners, descriptions, remarks, or location fields; check that output encoding or a narrowly scoped sanitizer is applied.
- Add tests that verify markup in stored values is displayed inertly in the Config Search View Matches dialog.
- Enforce code-review or CI policies that require security review for raw HTML rendering and changes to sanitization behavior.
- Monitor authorized application workflows for unexpected changes to device metadata or configuration fields that appear in search results.

