Skip to content
XSS Write-up Intermediate

[CVE-2020-14293] and [CVE-2020-14294] 2 vulnerabilities in Secure File Transfer Solution Qiata by Secudos

The Qiata file transfer appliance had a cross-site scripting flaw in the transfer comment field because its escaping mechanism could be escaped once more, and an authenticated OS command injection in the DOMOS web interface's timezone setting. An attacker could execute JavaScript in a victim's browser when they viewed the comment, and an authenticated admin could run commands as root on the appliance.

hesec.de

Published on hesec.de

The original lives on hesec.de

We do not hold its text, 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 the comment field's escaping routine was applied in a way that could be reversed by supplying already-escaped characters, and the timezone value was concatenated into a shell command without sanitisation.

Impact

An attacker could run JavaScript in the browser of anyone viewing a transfer's comments, and an authenticated admin (or an attacker who reached the internal interface with default credentials) could run commands as root on the appliance.

What the attacker needed

A user account on Qiata; victim views the transfer comments; access to the internal network; default admin credentials unchanged

The fix

The vendor fixed both issues by releasing Qiata version 2.00.00 and a DOMOS version greater than 5.8.0, and the report advises sanitising user input and never inserting it into system command calls.

How it was found

  1. Submit a comment containing an escaped version of an image tag with an onerror handler.
  2. The appliance's escaping mechanism turns the escaped string back into a working image tag.
  3. When someone views the transfer's comments, the JavaScript in the onerror handler runs.
  4. Log in to the DOMOS web interface on port 10000 with the default admin credentials.
  5. Intercept the request that changes the timezone and alter the zone value to include a shell command.
  6. The script runs the command as root, and the output can be written to a file such as /tmp/hacked.

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 two security holes in a file-sharing appliance. One lets a user put a special comment on a file transfer that runs code in the browser of anyone who later views that comment (cross-site scripting). The other lets someone who can log in to the appliance's management interface change the timezone setting in a way that runs their own commands on the underlying operating system as the root user.

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.