Skip to main content

Insecure service configuration - Backdoor

Description

Due a misconfiguration on services it is possible to upload files and install backdoors for later access, and leave them for public access.

Impact

  • Leave a shell for public access.
  • Get access to server files.
  • Upload and erase resources.

Recommendation

Implement the secure configuration of the vulnerable service, allowing it to only be accessed by authorized users and execute continuous monitoring on resources and the server.

Threat

Unauthorized external attacker with a service that allow the upload of files.

Expected Remediation Time

⌚ 300 minutes.

Score

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

Base

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

Temporal

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

Result

  • Vector string: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:L/E:X/RL:X/RC:X
  • Score:
    • Base: 8.9
    • Temporal: 8.9
  • Severity:
    • Base: High
    • Temporal: High

Code Examples

Compliant code

All services should be configured to require client certificates

Defaults:
policyProject: 'SecurityPolicy'
Policies:
MQEndpoint: 'MQEndpoint'
remoteDefaultQueueManager: '{MQClientPolicy}:MQEndpoint'
ReqAccess:
requireClientCert: true

Non compliant code

A service is wrongly configured to not requiring client certificates

Defaults:
policyProject: 'DefaultPolicies'
Policies:
MQEndpoint: 'MQEndpoint'
remoteDefaultQueueManager: '{MQClientPolicy}:MQEndpoint'
ReqAccess:
requireClientCert: false

Requirements

free trial

Search for vulnerabilities in your apps for free with our automated security testing! Start your 21-day free trial and discover the benefits of our Continuous Hacking Machine Plan. If you prefer a full service that includes the expertise of our ethical hackers, don't hesitate to contact us for our Continuous Hacking Squad Plan.