For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

GCP Google compute firewall ingress allow FTP port (20) access misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC_GCP_77

Category - Subcategory

Public Exposure - Sensitive Ports

Provider

GCP

Severity

LOW

Framework

Terraform

Impact

It is a best practice to ensure that your firewall ingress rules do not allow unrestricted access to FTP port 20, as it can increase the risk of unauthorized access or attacks on your network. FTP (File Transfer Protocol) is a widely used protocol for transferring files between computers, but it can also be a potential security risk if not properly configured. By restricting access to only specific IP addresses or ranges that you trust, you can help secure your network from potential threats.

How to Fix

[source,go]

resource "google_compute_firewall" "restricted" { name = "example" network = "google_compute_network.vpc.name"

allow { protocol = "tcp" ports = ["20"] }

source_ranges = ["172.1.2.3/32"] target_tags = ["ftp"] }

Last updated

Was this helpful?