(0Day) NI FlexLogger usiReg URI File Parsing Directory Traversal Remote Code Execution Vulnerability
The usiReg component in NI FlexLogger fails to validate a user-supplied path when parsing URI files, allowing a crafted file to write arbitrary files. An attacker could use this to execute code in the context of the current user, though the victim must open a malicious file or visit a malicious page.
06fe5fd2bc53027c4a3b7e395af0b850e7b8a044 Follow
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to create arbitrary files on affected installations of NI FlexLogger. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
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 usiReg component uses a path taken from a URI file in file operations without validating or restricting it, allowing directory traversal.
Impact
An attacker could create arbitrary files and potentially execute code as the current user, but only if the target opens a malicious file or visits a malicious page.
What the attacker needed
Victim opens a malicious file; or victim visits a malicious page
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.
A program that opens URI files trusts the path written inside them. Because it does not check that path, an attacker can make it write files to places it should not, and then get those files run as the logged-in user. The victim has to open a malicious file or visit a malicious page for this to work.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.