Threaticon
Toggle sidebar

You're viewing a limited, public preview. Log in for full access.

Log in User Guide
Log in Get started
Attack Patterns CAPEC-48 — Passing Local Filenames to Functions That Expect a URL
CAPEC-48

Passing Local Filenames to Functions That Expect a URL

TLP:CLEAR

Description

Typical severity: High. Likelihood of attack: High. 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.

Mitigation

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.

Details

Platforms
Software
Added
Jul 14, 2026
Leaving Threaticon

This link opens an external site that isn't part of the platform.