CAPEC-48 상세 정보

CAPEC-48

Passing Local Filenames to Functions That Expect a URL
2014-06-23
00h00 +00:00
높음
높음
Draft
2022-09-29
00h00 +00:00
특정 CAPEC 알림
특정 CAPEC의 변경 사항에 대한 정보를 받아보세요.
알림 관리

CAPEC 설명

This attack relies on client side code to access local files and resources instead of URLs. When the client browser is expecting a URL string, but instead receives a request for a local file, that execution is likely to occur in the browser process space with the browser's authority to local files. The attacker can send the results of this request to the local files out to a site that they control. This attack may be used to steal sensitive authentication data (either local or remote), or to gain system profile information to launch further attacks.

CAPEC 정보

실행 흐름

1) Explore

[Identify web application URL inputs] Review application inputs to find those that are designed to be URLs.

기법
  • Manually navigate web site pages to identify URLs.
  • Use automated tools to identify URLs.
2) Experiment

[Identify URL inputs allowing local access.] Execute test local commands via each URL input to determine which are successful.

기법
  • Manually execute a local command (such as 'pwd') via the URL inputs.
  • Using an automated tool, test each URL input for weakness.
3) Exploit

[Execute malicious commands] Using the identified URL inputs that allow local command execution, execute malicious commands.

기법
  • Execute local commands via the URL input.

사전 조건

The victim's software must not differentiate between the location and type of reference passed the client software, e.g. browser

필요 기술

Attacker identifies known local files to exploit

완화 방법

Implementation: Ensure all content that is delivered to client is sanitized against an acceptable content specification.
Implementation: Ensure all configuration files and resource are either removed or protected when promoting code into production.
Design: Use browser technologies that do not allow client side scripting.
Implementation: Perform input validation for all remote content.
Implementation: Perform output validation for all remote content.
Implementation: Disable scripting languages such as JavaScript in browser

관련 약점

CWE-ID 약점 이름

CWE-241

Improper Handling of Unexpected Data Type
The product does not handle or incorrectly handles when a particular element is not the expected type, e.g. it expects a digit (0-9) but is provided with a letter (A-Z).

CWE-706

Use of Incorrectly-Resolved Name or Reference
The product uses a name or reference to access a resource, but the name/reference resolves to a resource that is outside of the intended control sphere.

참고 자료

REF-1

Exploiting Software: How to Break Code
G. Hoglund, G. McGraw.

REF-416

Core Concepts: Attack Patterns
https://websec.io/2012/11/26/Core-Concepts-Attack-Patterns.html

제출

이름 조직 날짜 출시일
CAPEC Content Team The MITRE Corporation 2014-06-23 +00:00

수정 사항

이름 조직 날짜 댓글
CAPEC Content Team The MITRE Corporation 2015-12-07 +00:00 Updated Related_Attack_Patterns
CAPEC Content Team The MITRE Corporation 2017-08-04 +00:00 Updated Attack_Phases, Description, Description Summary, References
CAPEC Content Team The MITRE Corporation 2018-07-31 +00:00 Updated Attack_Phases
CAPEC Content Team The MITRE Corporation 2020-07-30 +00:00 Updated Related_Attack_Patterns
CAPEC Content Team The MITRE Corporation 2020-12-17 +00:00 Updated @Abstraction
CAPEC Content Team The MITRE Corporation 2022-09-29 +00:00 Updated Example_Instances