Skip to content

HTML encode display_name output.#5284

Merged
varyonic merged 2 commits intoactiveadmin:masterfrom
markstory:display-name
Dec 15, 2017
Merged

HTML encode display_name output.#5284
varyonic merged 2 commits intoactiveadmin:masterfrom
markstory:display-name

Conversation

@markstory
Copy link
Contributor

The display_name helper can end up invoking methods on ActiveRecord models or other arbitrary ruby objects that can contain unsafe user supplied data resulting in XSS holes.

Refs #5198
Refs #5265
Refs #5275

The display_name helper can end up invoking methods on ActiveRecord
models or other arbitrary ruby objects that can contain unsafe user
supplied data resulting in XSS holes.

Refs #5198
Refs #5265
Refs #5275
@codecov
Copy link

codecov bot commented Dec 12, 2017

Codecov Report

Merging #5284 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5284      +/-   ##
==========================================
- Coverage   98.28%   98.27%   -0.01%     
==========================================
  Files         292      292              
  Lines       10893    10900       +7     
==========================================
+ Hits        10706    10712       +6     
- Misses        187      188       +1
Impacted Files Coverage Δ
lib/active_admin/view_helpers/display_helper.rb 98% <100%> (ø) ⬆️
spec/unit/view_helpers/breadcrumbs_spec.rb 100% <100%> (ø) ⬆️
spec/unit/view_helpers/display_helper_spec.rb 100% <100%> (ø) ⬆️
lib/active_admin/views/pages/index.rb 98.85% <0%> (-1.15%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6a0f248...4f33fb0. Read the comment docs.

Copy link
Member

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me!

@varyonic varyonic merged commit b46f4d4 into activeadmin:master Dec 15, 2017
@markstory markstory deleted the display-name branch December 15, 2017 17:11
@markstory
Copy link
Contributor Author

Thanks!

varyonic pushed a commit that referenced this pull request Dec 15, 2017
The display_name helper can end up invoking methods on ActiveRecord
models or other arbitrary ruby objects that can contain unsafe user
supplied data resulting in XSS holes.

Refs #5198
Refs #5265
Refs #5275
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants