Skip to main content

Insecure service configuration - Roles

Description

The definition of roles does not correctly represent the different aspects of responsibilities for the security levels of the organization.

Impact

Detect authorization vulnerabilities, recognizing when a role can access a page that should have been restricted to another role.

Recommendation

Verify the configured roles and be aware of the information that is transmitted about roles, accounts and logical groups in an application.

Threat

Unauthorized user with access to sensitive information.

Expected Remediation Time

⌚ 30 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: N
  • Integrity: L
  • Availability: L

Temporal

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

Result

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

Code Examples

Compliant code

The application restricts access following a minimum permissions approach

{
"Effect": "Allow",
"Action": "iam:PassRole",
"Resource": [
"mydatabase:role/admin"
]
}

Non compliant code

The application has misconfigured role access credentials

{
"Effect": "Allow",
"Action": "iam:PassRole",
"Resource": [
"mydatabase:role/user"
"mydatabase:role/admin"
]
}

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.