368件ヒット
[1-100件を表示]
(0.094秒)
ライブラリ
-
cgi
/ session (12) - drb (12)
- fileutils (96)
- securerandom (92)
- tmpdir (24)
クラス
-
CGI
:: Cookie (24) -
CGI
:: Session (12) -
DRb
:: DRbServer (12) - Dir (24)
-
WEBrick
:: Cookie (24)
モジュール
- FileUtils (96)
- SecureRandom (80)
キーワード
-
INSECURE
_ METHOD (12) -
NEWS for Ruby 2
. 0 . 0 (12) - SecureRandom (12)
- alphanumeric (8)
- base64 (12)
- hex (12)
- mktmpdir (24)
- move (12)
- mv (12)
- new (12)
-
random
_ bytes (12) -
random
_ number (12) -
rb
_ secure (12) -
remove
_ entry (12) -
remove
_ entry _ secure (12) -
rm
_ r (12) -
rm
_ rf (12) - rmtree (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) - secure= (24)
-
secure
_ visibility (12) - securerandom (12)
-
urlsafe
_ base64 (12) - uuid (12)
検索結果
先頭5件
-
void rb
_ secure(int level) (32200.0) -
現在のセーフレベルが level 以上のとき、 例外 SecurityError を発生します。
...現在のセーフレベルが level 以上のとき、
例外 SecurityError を発生します。... -
WEBrick
:: Cookie # secure -> bool (24224.0) -
クッキーのSecure属性を真偽値で表すアクセサです。
...クッキーのSecure属性を真偽値で表すアクセサです。
@param value クッキーのSecure属性を真偽値で指定します。... -
CGI
:: Cookie # secure -> bool (24201.0) -
自身がセキュアクッキーである場合は、真を返します。 そうでない場合は、偽を返します。
自身がセキュアクッキーである場合は、真を返します。
そうでない場合は、偽を返します。 -
FileUtils
. # remove _ entry _ secure(path , force = false) -> () (18331.0) -
ファイル path を削除します。path がディレクトリなら再帰的に削除します。
...に削除します。
FileUtils.#rm_r および FileUtils.#remove_entry には
TOCTTOU (time-of-check to time-of-use)脆弱性が存在します。
このメソッドはそれを防ぐために新設されました。
FileUtils.#rm_r および FileUtils.#remove_entry は以下の条件が
満たさ......クリンクを持つ
この脆弱性を防ぐため、remove_entry_secure は削除前に path 以下の
ディレクトリのオーナーとパーミッションを変更し、上記の条件を回避します。
ただし remove_entry_secure は親ディレクトリが以下の条件を満たす......ば、/var/tmp のパーミッションが 1777 であるのは問題ありませんが、
その場合 / や /var が全ユーザから書き込み可能であってはなりません。
この条件が満たされない場合 remove_entry_secure は安全ではありません。
@param path... -
DRb
:: DRbServer :: INSECURE _ METHOD -> [Symbol] (15200.0) -
セキュアでないメソッドのリスト。
...セキュアでないメソッドのリスト。
これに含まれるメソッドは dRuby 経由では呼び出せません。... -
WEBrick
:: Cookie # secure=(value) (12224.0) -
クッキーのSecure属性を真偽値で表すアクセサです。
...クッキーのSecure属性を真偽値で表すアクセサです。
@param value クッキーのSecure属性を真偽値で指定します。... -
CGI
:: Cookie # secure=(val) (12201.0) -
セキュアクッキーであるかどうかを変更します。
...セキュアクッキーであるかどうかを変更します。
@param val 真を指定すると自身はセキュアクッキーになります。... -
static void secure
_ visibility(VALUE self) (12200.0) -
-
SecureRandom (12000.0)
-
安全な乱数発生器のためのインターフェースを提供するモジュールです。 HTTP のセッションキーなどに適しています。
...random
上の安全な乱数発生器が使用できない場合、各メソッドは NotImplementedError を発生します。
# random hexadecimal string.
require 'securerandom'
p SecureRandom.hex(10) #=> "52750b30ffbc7de3b362"
p SecureRandom.hex(10) #=> "92b15d6c8dc4beb5f559"
p Secure......Random.hex(11) #=> "6aca1b5c58e4863e6b81b8"
p SecureRandom.hex(12) #=> "94b2fff3e7fd9b9c391a2306"
p SecureRandom.hex(13) #=> "39b290146bea6ce975c37cfc23"
# random base64 string.
require 'securerandom'
p SecureRandom.base64(10) #=> "EcmTPZwWRAozdA=="
p SecureRandom.base64(10) #=> "9b0nse......wNuM/w=="
p SecureRandom.base64(10) #=> "KO1nIU+p9DKxGg=="
p SecureRandom.base64(11) #=> "l7XEiFja+8EKEtY="
p SecureRandom.base64(12) #=> "7kJSM/MzBJI+75j8"
p SecureRandom.base64(13) #=> "vKLJ0tXBHqQOuIcSIg=="
# random binary string.
require 'securerandom'
p SecureRandom.random_bytes(...