Skip to content
Path traversal Advisory Advanced CVE-2023-34394

KeySight N6841A RF Sensor deleteFirmwarePackage Directory Traversal Local Privilege Escalation Vulnerability

The deleteFirmwarePackage function in KeySight N6841A RF Sensor fails to validate a user-supplied path before using it in file operations, allowing a local attacker with low-privileged code execution to escalate privileges and run arbitrary code as SYSTEM.

Steven Seeley Follow

Originally disclosed on Zero Day Initiative

High 7.8 View original

This vulnerability allows local attackers to escalate privileges on affected installations of KeySight N6841A RF Sensor. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.

Steven Seeley (mr_me) of Source Incite, on the Zero Day Initiative

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the deleteFirmwarePackage function does not validate or sanitise a user-supplied path before using it in file operations, allowing directory traversal.

Impact

An attacker who can execute low-privileged code on the target system could escalate privileges and execute arbitrary code with SYSTEM rights.

What the attacker needed

Ability to execute low-privileged code on target

The fix

KeySight has issued an update to correct this vulnerability.

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 report has not been written yet. The Original tab links to the source.

This is a local privilege escalation bug. A program on the device takes a file path from the user but does not check it properly. Someone who can already run low-level code on the device can use this to delete or overwrite files that only the system administrator should be able to touch, and then run their own code with full system rights.

What is Path traversal?

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

More by Steven Seeley

View all

404 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

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.