Skip to content
XSS Write-up Advanced

Vtenext 25.02: A three-way path to RCE

VTENext CRM contained a reflected XSS, a CSRF token bypass, a session ID disclosure, an authenticated SQL injection, and an unverified password reset endpoint. An attacker could chain these to bypass authentication, take over accounts, and in some cases execute remote code on the server.

blog.sicuranext.com

Published on blog.sicuranext.com

TL;DR: In my spare time, I happen to research vulnerabilities in products or services that I have encountered in the past and have pinned down over time. In the last few months, I decided to take a closer look at a CRM solution used by a fair number of small and medium-sized Italian companies, named VTENext.

The author, on blog.sicuranext.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a combination of missing input sanitisation, improper CSRF token validation, unsafe SQL query construction, and missing authorisation checks in a password reset endpoint.

Impact

An attacker could bypass authentication, take over any user account, and execute arbitrary code on the server, though some vectors required user interaction and the password reset assumed the target had not enabled two-factor authentication.

What the attacker needed

Victim clicks a link or visits a malicious page; attacker has a valid user account for SQL injection; target user has not enabled 2FA for password reset; pearcmd.php present for LFI RCE

The fix

The vulnerabilities were fixed in versions 25.02.1 and 25.02.2.

How it was found

  1. Send a crafted request to the HomeWidgetBlockList endpoint with a malicious widgetId to trigger reflected XSS.
  2. Bypass CSRF token validation by changing the request method from POST to GET and omitting the token.
  3. Use the XSS to read the PHPSESSID from the Touch module and exfiltrate it.
  4. Alternatively, use the authenticated SQL injection in the Fax EditView to extract a password reset token.
  5. Use the extracted token to reset the victim's password and log in as them.
  6. Once authenticated, exploit a local file inclusion to include pearcmd.php and create a PHP web shell, or upload a custom module containing a web shell.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This report describes several security holes in a customer relationship management (CRM) product. One hole let an attacker run their own JavaScript in a victim's browser, another let them steal the victim's session cookie, and a third let them reset any user's password without knowing the old one. Together these could let an attacker log in as someone else and even run commands on the server.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.