Skip to content

Commit ba962e0

Browse files
authored
added security fix notes to CHANGELOG
1 parent d44965f commit ba962e0

File tree

1 file changed

+64
-1
lines changed

1 file changed

+64
-1
lines changed

CHANGELOG.md

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,100 @@
66

77
[Solved Issues](https://github.com/basemate/matestack-ui-core/issues?q=is%3Aissue+is%3Aclosed+milestone%3A0.7.4)
88

9+
### Security Fixes
10+
11+
XSS/Script injection
12+
13+
* matestack-ui-core is vulnerable to XSS/Script injection
14+
* matestack-ui-core does not excape strings by default and does not cover this in the docs
15+
* matestack-ui-core should escape strings by default in order to prevent XSS/Script injection vulnerability
16+
17+
```ruby
18+
class Pages::MyApp::MyExamplePage < Matestack::Ui::Page
19+
20+
class FakeUser < Struct.new(:name)
21+
end
22+
23+
def prepare
24+
@user = FakeUser.new("<script>alert('such hack many wow')</script>")
25+
end
26+
27+
def response
28+
components {
29+
div do
30+
heading size: 1, text: "Hello #{@user.name}" # is not escaped
31+
plain "Hello #{@user.name}" # is not escaped
32+
end
33+
}
34+
end
35+
end
36+
37+
```
38+
39+
Affected Versions
40+
41+
<= 0.7.3
42+
43+
Patched Versions
44+
45+
>= 0.7.4 --> please update!
46+
47+
Workarounds
48+
49+
escape string explicitly/manually
50+
51+
reported by @PragTob
52+
953
### Improvements
1054

1155
* On form submit, matestack form values are reset to previous values by fiedl
56+
1257
--> The form component now does not reset itself when using `put`
58+
1359
--> The reset behavior can now be configured (described in `form` component docs)
1460

1561
* Dockerized core dev and test environment by jonasjabari
62+
1663
--> easy local dev and test setup, cross-platform default for dev and testing
64+
1765
--> CI is configured to run tests via dockerized test suite; same as local testing and good base for matrix testing (upcoming)
66+
1867
--> Usage described in contribution docs
1968

2069
* Add `follow_response` option to action component by fiedl
70+
2171
--> same behavior enhancement as added to the `form` component in 0.7.3
72+
2273
--> server may now decide where the transition should navigate to
74+
2375
--> described in `action` component docs
2476

2577
* Add confirm option to action component by fiedl
78+
2679
--> easily add confirmation before performing an action
80+
2781
--> prevent unintended delete action for example
82+
2883
--> described in `action` component docs
2984

3085
* New webpacker features by fiedl
86+
3187
* make webpacker create es5 code instead of es6 code
88+
3289
* Switch to Vue Production Mode if RAILS_ENV=staging or production
90+
3391
* Establish webpack(er) and asset-pipeline workflows
3492

3593
--> webpacker now builds assets for asset pipline usage AND webpacker usage (both usage approaches are described in the installation docs)
94+
3695
--> webpacker now builds minified versions of matestack-ui-core.js (great improvement in file size!)
96+
3797
--> webpacker now builds es5 code, which is compatible with IE11
98+
3899
--> when used via asset pipeline, the minified version of matestack-ui-core together with the production build of vue.js is automatically required
39-
--> when used via webpacker, matestack-ui-core can be used within a modern javascript workflow, importing and extending single matestack module for example
100+
101+
--> when used via webpacker, matestack-ui-core can be used within a modern javascript workflow, importing and extending
102+
single matestack module for example
40103

41104
* New components
42105
* Add HTML `<picture>` tag to core components by pascalwengerter

0 commit comments

Comments
 (0)