Cve 2020 29134 Totvs Fluig Platform
The TOTVS Fluig platform accepted a base64-encoded query string in a stream endpoint and passed the decoded file parameter to a file read without restricting the path. An attacker could use directory traversal to read sensitive XML configuration files containing database, LDAP and ERP credentials.
The original lives on systemweakness.com
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 stream endpoint decoded a base64 parameter and used the resulting file path directly in a file read without validating or confining it to an allowed directory.
Impact
An attacker could read sensitive XML files that may contain database access data and, in some cases, LDAP and ERP integration credentials.
What the attacker needed
Network access to the Fluig instance; no authentication mentioned
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.
A web server sometimes reads a file whose name is given in the URL. If it does not check that the name stays inside the intended folder, someone can use '../' to climb up the folder tree and read other files. Here the file name was also hidden inside a base64 string, which is just a way of encoding text so it looks like random characters.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.