A SQL injection vulnerability in rConfig 3.9.7 exists via lib/ajaxHandlers/ajaxCompareGetCmdDates.php?command= (this may interact with secure-file-priv).
https://www.rconfig.com/downloads/rconfig-3.9.7.zip
http://packetstormsecurity.com/files/171613/rconfig-3.9.7-SQL-Injection.html