Bug in Upload Config File Section: Improper Config File Validation Leads to Crash
Posted: Fri Feb 07, 2020 5:19 am
Hello All,
Recently I was trying to test around the upload section and found a CRASH.
This CRASH happens in the Upload Config Section when the users try to upload a file other than the config.xml or an XML file that is Not SafeSquid's config.xml
The Two Validation missing here is:
The Upload Config File Handling is Problem.
Since even if it is any other file it should just be discarded rather than leading to SafeSquid-SWG service getting Stopped.
I hope the problem will be solved in the later versions
[ Current Tested SafeSquid-SWG Version: safesquid-2020.0131.1457.3-swg-standard ]
Below I have attached the logs. for both the scenarios.
Recently I was trying to test around the upload section and found a CRASH.
This CRASH happens in the Upload Config Section when the users try to upload a file other than the config.xml or an XML file that is Not SafeSquid's config.xml
The Two Validation missing here is:
- Check whether the file is XML or Not
- If it is XML check for Valid Sections are present or not, Because even if SafeSquid Config FIle is uploaded user might have removed few Sections.
The Upload Config File Handling is Problem.
Since even if it is any other file it should just be discarded rather than leading to SafeSquid-SWG service getting Stopped.
I hope the problem will be solved in the later versions
[ Current Tested SafeSquid-SWG Version: safesquid-2020.0131.1457.3-swg-standard ]
Below I have attached the logs. for both the scenarios.