Merge branch 'hotfix/0.0.3.2'
This commit is contained in:
commit
3e32472dbb
4 changed files with 14 additions and 2 deletions
|
|
@ -1,3 +1,7 @@
|
|||
# 0.0.3.2
|
||||
|
||||
* Fix XSS vulnerability in conversations#new [#4010](https://github.com/diaspora/diaspora/issues/4010)
|
||||
|
||||
# 0.0.3.1
|
||||
|
||||
* exec foreman in ./script/server to replace the process so that we can Ctrl+C it again.
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
keyDelay: 0,
|
||||
startText: '',
|
||||
emptyText: '#{t('no_results')}',
|
||||
preFill: [{name : "#{params[:name]}",
|
||||
preFill: [{name : "#{h params[:name]}",
|
||||
value : "#{@contact_ids}"}]
|
||||
});
|
||||
autocompleteInput.focus();
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
defaults:
|
||||
version:
|
||||
number: "0.0.3.1"
|
||||
number: "0.0.3.2"
|
||||
heroku: false
|
||||
environment:
|
||||
url: "http://localhost:3000/"
|
||||
|
|
|
|||
|
|
@ -33,6 +33,14 @@ describe ConversationsController do
|
|||
get :new, :aspect_id => alice.aspects.first.id
|
||||
assigns(:contact_ids).should == alice.aspects.first.contacts.map(&:id).join(',')
|
||||
end
|
||||
|
||||
it "does not allow XSS via the name parameter" do
|
||||
["</script><script>alert(1);</script>",
|
||||
'"}]});alert(1);(function f() {var foo = [{b:"'].each do |xss|
|
||||
get :new, name: xss
|
||||
response.body.should_not include xss
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe '#index' do
|
||||
|
|
|
|||
Loading…
Reference in a new issue