Skip to main content

Lack of protection against brute force attacks

Description

The system does not have appropriate protection mechanisms against automated attacks designed to guess credentials.

Impact

Obtain the passwords of the application users.

Recommendation

Implement a control to avoid this type of attacks and to ensure that access is not made by a robot. E.g. Captcha, failed attempts blockout, etc.

Threat

Anonymous attacker from the Internet.

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: L
  • Privileges required: N
  • User interaction: N
  • Scope: U
  • Confidentiality: L
  • Integrity: N
  • Availability: N

Temporal

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

Result

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

Code Examples

Compliant code

Implement some captcha controls in the registry forms

import ReCAPTCHA from "react-google-recaptcha"
function onChange(value){
return (
<div className="App">
<ReCAPTCHA
sitekey="site_key"
onChange={onChange}
/>
</div>
);
}

Non compliant code

There are forms in the application that do not implement any kind of security control against automation attacks

<div class="container">
<label for="uname"><strong>Name</strong></label>
<input type="text" placeholder="Enter Name" name="uname" required>
<label for="psw"><strong>Password</strong></label>
<input type="password" placeholder="Enter Password" name="psw" required>
<button type="submit">Login</button>
</div>

Requirements