Skip to main content

Insecure service configuration - AWS

Description

Because of a misconfiguration in the AWS services, it is possible to identify and/or try to access resources, functionalities, network segments and ports.

Impact

  • Identify ports, services and network segments.
  • Try to access the services found.
  • Get credentials, services and files information.

Recommendation

Securely configure the vulnerable service to be accessed only by authorized users.

Threat

External attacker with credentials.

Expected Remediation Time

⌚ 45 minutes.

Score

Default score using CVSS 3.1. It may change depending on the context of the vulnerability.

Base

  • Attack vector: N
  • Attack complexity: L
  • Privileges required: L
  • User interaction: N
  • Scope: U
  • Confidentiality: L
  • Integrity: L
  • Availability: N

Temporal

  • Exploit code madurity: P
  • Remediation level: X
  • Report confidence: X

Result

  • Vector string: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N/E:P/RL:X/RC:X
  • Score:
    • Base: 5.4
    • Temporal: 5.1
  • Severity:
    • Base: Medium
    • Temporal: Medium

Code Examples

Compliant code

All AWS sensitive resources have defined security configurations and are private

Resources:
PrivateS3Bucket:
Type: AWS::S3::Bucket
Properties:
AccessControl: Private
BucketName: SKIMS-PRIVATE-BUCKET
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
SSEAlgorithm: aws:kms
KMSMasterKeyID: KMS-KEY-ARN
DeletionPolicy: Delete

Non compliant code

An AWS resource is configured to be publicly accesible with editing permissions

Resources:
S3Bucket:
Type: AWS::S3::Bucket
DeletionPolicy: Retain
Properties:
AccessControl: PublicReadWrite
BucketName: SKIMS-PUBLIC-BUCKET
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
SSEAlgorithm: aws:kms
KMSMasterKeyID: KMS-KEY-ARN

Requirements