GRR <= 3.0.0-RC1 (all versions) RCE with privilege escalation through file upload filter bypass (authenticated)
GRR is an open source resources manager tool used in many french public institutions. The application allows administrators to change the enterprise's logo uploading a new image with .png,.jpg or .gif extension only. Once uploaded, image name is 'splitted' in an array and renamed with the name 'logo' followed by the extention saved as 2nd array's element. This file called for example 'logo.jpg' is also 'chmoded' as 0666 permission and directly accessible in image folder (img_grr by default) by all users. It's possible for an attacker to add a second extension that will be used when the image will be renamed in order to bypass this basic filter (double extension upload filter bypassing). So, a file called backdoor.php.jpg will be renamed as logo.php with chmod 0666 permissions and could be used by attacker to gain more privileges on the targeted server (privesc due to 0666 permissions).