[#46026] Re: [ruby-cvs:43788] shugo:r36612 (trunk): * insns.def (invokesuper): don't skip the same class. instead, use — Urabe Shyouhei <shyouhei@...>
このコミットで壊れました。
3 messages
2012/08/03
[#46037] Re: [ruby-core:47138] [ruby-trunk - Bug #6861][Open] ERB::Util.escape_html is not escaping single quotes — Shugo Maeda <shugo@...>
咳さん
12 messages
2012/08/13
[#46038] Re: [ruby-core:47138] [ruby-trunk - Bug #6861][Open] ERB::Util.escape_html is not escaping single quotes
— Masatoshi SEKI <m_seki@...>
2012/08/13
咳といいます。
[#46039] Re: [ruby-core:47138] [ruby-trunk - Bug #6861][Open] ERB::Util.escape_html is not escaping single quotes
— Shugo Maeda <shugo@...>
2012/08/13
前田です。
[#46043] Re: [ruby-core:47138] [ruby-trunk - Bug #6861][Open] ERB::Util.escape_html is not escaping single quotes
— fujioka <fuj@...>
2012/08/13
xibbarこと藤岡です。
[#46051] [ruby-trunk - Feature #6875][Open] Make test/unit default gem — "kou (Kouhei Sutou)" <kou@...>
19 messages
2012/08/15
[#46055] Fwd: 『RubyKaja』登録のお知らせ — SASADA Koichi <ko1@...>
ruby-dev 開発者からも誰か推すといいと思いますが,いかがでしょう.
10 messages
2012/08/16
[#46065] [ruby-trunk - Bug #6901][Assigned] SEGV with tail call optimization — "shugo (Shugo Maeda)" <redmine@...>
4 messages
2012/08/21
[#46081] [ruby-trunk - Feature #6936][Assigned] Forbid singleton class and instance variabls for float — "naruse (Yui NARUSE)" <naruse@...>
17 messages
2012/08/26
[#46288] [ruby-trunk - Feature #6936] Forbid singleton class and instance variabls for float
— "matz (Yukihiro Matsumoto)" <matz@...>
2012/10/26
[#46289] Re: [ruby-trunk - Feature #6936] Forbid singleton class and instance variabls for float
— SASADA Koichi <ko1@...>
2012/10/27
(2012/10/27 8:38), matz (Yukihiro Matsumoto) wrote:
[#46291] Re: [ruby-trunk - Feature #6936] Forbid singleton class and instance variabls for float
— SASADA Koichi <ko1@...>
2012/10/27
(2012/10/27 9:05), SASADA Koichi wrote:
[#46082] Re: [ruby-trunk - Feature #6936][Assigned] Forbid singleton class and instance variabls for float
— SASADA Koichi <ko1@...>
2012/08/27
(2012/08/27 8:12), naruse (Yui NARUSE) wrote:
[#46086] Re: [ruby-trunk - Feature #6936][Assigned] Forbid singleton class and instance variabls for float
— "U.Nakamura" <usa@...>
2012/08/28
こんにちは、なかむら(う)です。
[#46087] Re: [ruby-trunk - Feature #6936][Assigned] Forbid singleton class and instance variabls for float
— Kenta Murata <muraken@...>
2012/08/28
むらたです。
[#46084] Re: [ruby-trunk - Feature #6936][Assigned] Forbid singleton class and instance variabls for float
— KOSAKI Motohiro <kosaki.motohiro@...>
2012/08/27
>> 後者の具体的手法はいくつかあると思いますが、即値は最初から frozen にしておくとかもありかなと思っています。
[ruby-dev:46037] Re: [ruby-core:47138] [ruby-trunk - Bug #6861][Open] ERB::Util.escape_html is not escaping single quotes
From:
Shugo Maeda <shugo@...>
Date:
2012-08-13 01:30:26 UTC
List:
ruby-dev #46037
咳さん 前田です。 以下のチケットが登録されています。 HTMLではどの文字をエスケープすべきかは文脈によって異なるので、現状の動作は仕様 だと思うのですが、利便性を考えると修正してもよいのかなと思いますが、どうでしょう。 CGI.escapeHTMLの方はすでに修正されていますが、対応するなら'じゃなくて' にすべきかなと思います。 2012/8/13 spastorino (Santiago Pastorino) <santiago@wyeworks.com>: > > Issue #6861 has been reported by spastorino (Santiago Pastorino). > > ---------------------------------------- > Bug #6861: ERB::Util.escape_html is not escaping single quotes > https://bugs.ruby-lang.org/issues/6861 > > Author: spastorino (Santiago Pastorino) > Status: Open > Priority: Normal > Assignee: > Category: > Target version: > ruby -v: 2.0.0dev > > > We just fixed this issue in Rails > https://groups.google.com/forum/#!msg/rubyonrails-security/kKGNeMrnmiY/r2yM7xy-G48J%5B1-25%5D > > Ruby's ERB is not escaping single quotes and this could lead to > security issues like ... > > <a href='<%= h link %>' >My Link!</a> > being link = " '; alert(hax) " > > OWASP suggest escaping &, <, >, ", ' and / > https://www.owasp.org/index.php/XSS_%28Cross_Site_Scripting%29_Prevention_Cheat_Sheet#RULE_.231_-_HTML_Escape_Before_Inserting_Untrusted_Data_into_HTML_Element_Content > > About / I don't think could lead to issues but that's another story. > > You have the right code in CGI.escapeHTML > https://github.com/ruby/ruby/blob/c47cca2f/lib/cgi/util.rb#L36 so my > suggestion is to reuse CGI.escapeHTML from ERB::Util > > I've sent a pull request https://github.com/ruby/ruby/pull/156 > > > -- > http://bugs.ruby-lang.org/ > -- Shugo Maeda