Skip to main content
← Vulnerabilities

dayrui XunRuiCMS Mobile Site Directory index.php str_replace code injection

Affects XunRuiCMS / XunRuiPHP 4.7.2 when the mobile-site configuration save uses a directory name; the CVE text says up to 4.7.4. No vendor fix version is listed in the checked facts.

Written by anthropic/claude-haiku-5.5 from the sources below. Verify against them.

6.9MediumCNA
Exploited
Proof of concept public, per CISA
Fix
No fix listed
Who is exposed
Not reported

Do first: Workaround: Validate the dirname value strictly and reject path separators, quotes and control characters.

Published
Last modified
Published
Not listed in CISA KEV
37/100 · provisional
Unclear
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

XunRuiCMS, a content management system from dayrui, is affected through its mobile site directory feature. A remote attacker could manipulate the dirname input to inject and run malicious code on the affected web server.

Read the original description

A security flaw has been discovered in dayrui XunRuiCMS up to 4.7.4. Affected by this issue is the function str_replace of the file /var/www/html/zzmob/index.php of the component Mobile Site Directory. The manipulation of the argument dirname results in code injection. The attack can be launched remotely. The exploit has been released to the public and may be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.

What to do

  • Workaround: Validate the dirname value strictly and reject path separators, quotes and control characters.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  4. Record last updated

Affected versions

  • dayrui XunRuiCMS

    4.7.0, 4.7.1, 4.7.2, 4.7.3, 4.7.4

Evidence 5

  1. Advisory
  2. Advisory
  3. Advisory
  4. Advisory
  5. Exploit

Corrections

None so far.

Something wrong on this page? Report an error. Every fix is listed here.

FAQ

Questions about CVE-2026-120349

What does this mean?

The mobile-site directory name is written into generated PHP code without strict validation. An authenticated back-end request can therefore run arbitrary code as the web-server user and read the application configuration, including plaintext database credentials.Source: github.com

Am I affected, and how do I check?

The checked facts name XunRuiCMS / XunRuiPHP 4.7.2, while the CVE text says up to 4.7.4, so the affected range is not settled between sources. The relevant setup is the mobile-site configuration save feature that takes a directory name (data[dirname]); check the installed version and whether that feature is in use.Source: github.com

What should I do about it?

The checked facts list no fixed version to upgrade to. Until a fix is confirmed, follow the validation workaround described for the directory name field.Source: github.com

Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. CISA's SSVC assessment notes a proof of concept exists. No public exploit code is tracked.Source: cve.now feed data

What if there's no patch?

Validate the dirname value strictly, for example allowing only letters, digits, underscores and hyphens (^[A-Za-z0-9_\-]+$). Reject path separators, '..', quotes and control characters.Source: github.com