Skip to main content

Business information leak - Financial Information

Description

Business information is obtained, such as:

  • Mail
  • Payment reference and description
  • Total value
  • Product information
  • Collectors line of business
  • Payers role

Impact

Obtain sensitive information to create new attack vectors.

Recommendation

According to the classification of the information found, establish the necessary controls so that the information is accessible only to the indicated persons.

Threat

An attacker authenticated from the Internet.

Expected Remediation Time

⌚ 120 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: N
  • Availability: N

Temporal

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

Result

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

Code Examples

Compliant code

The application does not include any sensitive data in the responses

app.post("/user/generateToken", (req, res) => {
if user.isLoggedIn{
let data = {
userName: req.body.user,
password: req.body.password,
...other user sensitive information
}
if(req.body.userCredentials == "ADMIN"){
res.send(data);
}
}
});

Non compliant code

There is a method in the application that includes sensitive data in the response

app.post("/user/generateToken", (req, res) => {
let data = {
userName: req.body.user,
password: req.body.password,
...other user sensitive information
}
res.send(data);
});

Requirements