---
title: "CAPEC-650: Upload a Web Shell to a Web Server"
url: https://radicalnotion.ai/capec/capec-650
type: capec
description: "By exploiting insufficient permissions, it is possible to upload a web shell to a web server in such a way that it can be executed remotely. This shell can have various capabilities, thereby acting as a \"gateway\" to the underlying web server. The shell might execute at the higher permission level of the web server, providing the ability the execute malicious code at elevated levels."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-650: Upload a Web Shell to a Web Server

- **Abstraction:** Detailed
- **Status:** Draft
- **Typical severity:** High
- **CAPEC catalog version:** 3.9

## Description

By exploiting insufficient permissions, it is possible to upload a web shell to a web server in such a way that it can be executed remotely. This shell can have various capabilities, thereby acting as a "gateway" to the underlying web server. The shell might execute at the higher permission level of the web server, providing the ability the execute malicious code at elevated levels.

## Prerequisites

- The web server is susceptible to one of the various web application exploits that allows for uploading a shell file.

## Consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Read Data | - |
| Confidentiality, Access Control, Authorization | Gain Privileges | - |
| Confidentiality, Integrity, Availability | Execute Unauthorized Commands | - |

## Mitigations

- Make sure your web server is up-to-date with all patches to protect against known vulnerabilities.
- Ensure that the file permissions in directories on the web server from which files can be execute is set to the "least privilege" settings, and that those directories contents is controlled by an allowlist.

## Related weaknesses (CWE)

- [CWE-287](https://radicalnotion.ai/cwe/cwe-287): Improper Authentication
- [CWE-553](https://radicalnotion.ai/cwe/cwe-553): Command Shell in Externally Accessible Directory

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-17](https://radicalnotion.ai/capec/capec-17) | Using Malicious Files |

## Taxonomy mappings

| Taxonomy | Entry | Id |
| --- | --- | --- |
| ATTACK | Server Software Component:Web Shell | 1505.003 |

## Frequently asked questions

### What is CAPEC-650?

By exploiting insufficient permissions, it is possible to upload a web shell to a web server in such a way that it can be executed remotely. This shell can have various capabilities, thereby acting as a "gateway" to the underlying web server. The shell might execute at the higher permission level of the web server, providing the ability the execute malicious code at elevated levels.

### How do you prevent CAPEC-650?

Make sure your web server is up-to-date with all patches to protect against known vulnerabilities.

### What weaknesses does CAPEC-650 target?

CAPEC-650 exploits 2 CWE weaknesses: CWE-287 (Improper Authentication) and CWE-553 (Command Shell in Externally Accessible Directory).

### How severe is CAPEC-650?

MITRE rates CAPEC-650 as High severity.

Primary source: [MITRE CAPEC](https://capec.mitre.org/data/definitions/650.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/capec/capec-650). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
