Skip to content
Path traversal Write-up Advanced

SmarterStats – Yet Another RPC Framework

The SmarterStats service on TCP port 50003 exposed an unauthenticated gRPC interface with methods that allowed arbitrary file read and file write. An attacker could read sensitive configuration files and write a file to achieve remote code execution as SYSTEM.

frycos.github.io

Published on frycos.github.io

First of all, the SmarterTools team is pretty cool, a vendor I practice responsible disclosure with pleasure. I also needed some positive vendor vibes after my last experiences.

The author, on frycos.github.io

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 the gRPC service methods used user-controlled input in file path operations without proper validation, and the file write method's authorization check used a key derived from user-controlled data.

Impact

An unauthenticated attacker could read arbitrary files and achieve remote code execution as NT AUTHORITY\SYSTEM.

What the attacker needed

Network access to TCP port 50003; no authentication required

The fix

The vulnerabilities were fixed in Build 8195.

How it was found

  1. Connect to the gRPC service on TCP port 50003.
  2. Call the GetExportedLogsForSite method with a crafted file name to read arbitrary files.
  3. Call the SaveFileTo method with a crafted Auth and CreationDate to bypass the authorization check.
  4. Write a file to a web-accessible directory.
  5. Request the written file to execute code.

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.

The software had a network service that anyone could talk to without logging in. One of its functions let you specify a file path, and it didn't check that the path stayed inside the intended folder, so you could read or write any file on the server. This let an attacker run their own code on the machine.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.