Potential XSS on checkout address page

74 views
Skip to first unread message

John Hawthorn

unread,
Feb 23, 2016, 12:05:37 PM2/23/16
to solidus-...@googlegroups.com
Versions Affected: All versions of Spree and Solidus
Not affected: None.
Fixed Versions: Solidus 1.0.5, 1.1.3, 1.2.1
Severity: Medium

Impact
------
It is possible for an attacker to inject HTML onto the address page by
submitting a specially crafted state_name.

By default this is difficult to exploit, as it is only that users cart which
will have the injected HTML. This would be dangerous in sites which support a
"masquerade"-like feature, which allows admins to view the frontend as another
user, exposing them to the exploited cart.

Releases
--------
The fixed releases are available on rubygems as well as in the github branches


Workarounds
-----------

Place the content of the following gist in your application at
app/views/spree/address/_form.html.erb

https://gist.github.com/jhawthorn/8ad13fbdddd5f087c5e6

--
John Hawthorn
1_0-Simplify-javascript-detection-in-address-form.patch
1_1-Simplify-javascript-detection-in-address-form.patch
1_2-Simplify-javascript-detection-in-address-form.patch
Reply all
Reply to author
Forward
0 new messages