Incorrect Default Permissions Affecting rotp package, versions <6.3.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-RUBY-ROTP-6457147
  • published 18 Mar 2024
  • disclosed 18 Mar 2024
  • credit Gareth Jones

How to fix?

Upgrade rotp to version 6.3.0 or higher.

Overview

rotp is a package that works for both HOTP and TOTP, and includes QR Code provisioning

Affected versions of this package are vulnerable to Incorrect Default Permissions due to overly permissive default permissions. An attacker can modify the .rb files to inject malicious code or alter the library's functionality by changing the file permissions to more restrictive ones.

References

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
7.8 high
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High