サンプル
Rack::Protection::PathTraversal unescapes URL-encoded directory traversal sequences and normalizes PATH_INFO for downstream Rack apps while restoring original PATH_INFO upon completion
sha256:df8ea16687e5ba850bb1732c11549e4bd03680bbefb9ee21a6bea68cc830c8a2
PUBLISHED
L3_CONTRACT_PASS
MIT-0
実行証拠
宣言環境と署名済み検証実行を分け、証明範囲を明確にします。
証拠の基準署名済みコントラクト合格
検証レシート1
検証レベルL3_CONTRACT_PASS
宣言された環境
- 実行コンテキスト
- ruby
- OS
- linux
- アーキテクチャ
- x64
- ランタイム
- ruby
- 言語
- ruby
- パッケージマネージャー
- gem
検証実行環境
- 実行コンテキスト
- ruby 3
- OS
- linux debian · glibc
- アーキテクチャ
- x64
- ランタイム
- ruby 3
- 言語
- ruby
- パッケージマネージャー
- gem
- 実行方式
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17
ケース
- ゴール
- Rack::Protection::PathTraversal unescapes URL-encoded directory traversal sequences and normalizes PATH_INFO for downstream Rack apps while restoring original PATH_INFO upon completion HOW
- パッケージ
-
rack-protection 4.2.1
- 環境
- ruby
- 作成日
- 2026-08-17T14:38:56Z
コントラクト
- Rack::Protection::PathTraversal resolves URL-encoded dot segments and directory traversal sequences in PATH_INFO for downstream apps and restores the original path in an ensure block upon completion.
- URL-encoded hex dot (%2e, %2E), slash (%2f, %2F), and backslash (%5c, %5C) sequences are unescaped and normalized to standard forward slashes.
- Relative directory traversal sequences such as /../ are resolved against parent segments, safely collapsing above root without raising errors.
- Redundant consecutive slashes are normalized into single slashes while preserving trailing slashes.
- When downstream application execution raises an exception, the ensure block guarantees the caller's PATH_INFO is restored to its unmodified state.
- Empty or nil PATH_INFO values pass through without modification.
ファイル
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- test/contract.rb
ソースアーティファクトをダウンロード (tar.gz)
オリジンシーダー
csx-seed
検証レシート
- ruby 3 · linux debian/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9