ex_aws_lambda relative path traversal via unencoded identifiers in ExAws.Lambda request paths
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| ex-awsex_aws_lambda |
c961161df71bc778a26bbb14718b5b7153296575 以上 72a565cd6bd583f59cbb303c819b8b30e98c2e5c 未満→ 72a565cd6bd583f59cbb303c819b8b30e98c2e5c |
72a565cd6bd583f59cbb303c819b8b30e98c2e5c |
| Hexex_aws_lambda |
2.0.1 以上 2.2.0 未満→ 2.2.0 |
2.2.0 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
Relative Path Traversal vulnerability in ex-aws ex_aws_lambda (ExAws.Lambda module) allows an attacker to redirect an AWS Lambda control-plane request at an unintended resource by injecting path traversal sequences into a caller-supplied identifier.
This vulnerability is associated with program file lib/ex_aws/lambda.ex and program routines ExAws.Lambda.add_permission/5, ExAws.Lambda.delete_event_source_mapping/1, ExAws.Lambda.delete_function/1, ExAws.Lambda.get_event_source_mapping/1, ExAws.Lambda.get_function/1, ExAws.Lambda.get_function_configuration/1, ExAws.Lambda.get_policy/1, ExAws.Lambda.invoke/4, ExAws.Lambda.invoke_async/2, ExAws.Lambda.remove_permission/2, ExAws.Lambda.update_event_source_mapping/2, ExAws.Lambda.update_function_code/2, ExAws.Lambda.update_function_configuration/2.
ExAws.Lambda builds every request path by interpolating caller-supplied identifiers (function names, ARNs, UUIDs, statement IDs) directly into the URL with plain string interpolation, without percent-encoding or validation. The shared request helper only encodes query parameters, never the path, so path metacharacters such as / and .. reach the wire unchanged. An application that passes an untrusted or user-influenced identifier into an ExAws.Lambda operation can therefore have its request steered at a different Lambda resource: a ../ segment climbs out of the intended /2015-03-31/functions/ slot and, once the .. is normalized by the HTTP client or the AWS endpoint, addresses a sibling…
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package hex.pm
- package github.com
- patch github.com
- patch github.com
- web cna.erlef.org
- web osv.dev
- web github.com
- web repo.hex.pm
- web github.com