Vulnerabilities

4 via 4 paths

Dependencies

80

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 4
  • 1
Severity
  • 2
  • 3
Status
  • 5
  • 0
  • 0

high severity

Improper Authorization

  • Vulnerable module: http-cache-semantics
  • Introduced through: magister-openid@0.1.7

Detailed paths

  • Introduced through: magister.js@simplyGits/MagisterJS › magister-openid@0.1.7 › openid-client@3.15.10 › got@9.6.0 › cacheable-request@6.1.0 › http-cache-semantics@4.3.0

Overview

Affected versions of this package are vulnerable to Improper Authorization via improper validation of security-zeroed cache entries when processing client max-stale directives. An unauthenticated attacker can request the same URL with a large max-stale value to retrieve cached responses belonging to other users, including Set-Cookie session credentials from shared-cache entries that were deliberately zeroed for security reasons.

Remediation

There is no fixed version for http-cache-semantics.

References

high severity

Origin Validation Error

  • Vulnerable module: http-cache-semantics
  • Introduced through: magister-openid@0.1.7

Detailed paths

  • Introduced through: magister.js@simplyGits/MagisterJS › magister-openid@0.1.7 › openid-client@3.15.10 › got@9.6.0 › cacheable-request@6.1.0 › http-cache-semantics@4.3.0

Overview

Affected versions of this package are vulnerable to Origin Validation Error via the _varyMatches() function, which fails to properly handle Vary: * (wildcard) headers due to byte-for-byte string comparison. An attacker can request URLs previously fetched by other clients to receive cached responses intended for different users, disclosing sensitive information across clients. The Vary: * directive signals that a response is uncacheable for any other request, but the flawed comparison allows the wildcard to be bypassed, enabling cross-client cache disclosure.

Remediation

There is no fixed version for http-cache-semantics.

References

medium severity

Open Redirect

  • Vulnerable module: got
  • Introduced through: magister-openid@0.1.7

Detailed paths

  • Introduced through: magister.js@simplyGits/MagisterJS › magister-openid@0.1.7 › openid-client@3.15.10 › got@9.6.0

Overview

Affected versions of this package are vulnerable to Open Redirect due to missing verification of requested URLs. It allowed a victim to be redirected to a UNIX socket.

Remediation

Upgrade got to version 11.8.5, 12.1.0 or higher.

References

medium severity

Resource Exhaustion

  • Vulnerable module: jose
  • Introduced through: magister-openid@0.1.7

Detailed paths

  • Introduced through: magister.js@simplyGits/MagisterJS › magister-openid@0.1.7 › openid-client@3.15.10 › jose@1.28.2

Overview

jose is an Universal 'JSON Web Almost Everything' - JWA, JWS, JWE, JWT, JWK with no dependencies

Affected versions of this package are vulnerable to Resource Exhaustion due to the JWE decryption interfaces' support for decompressing plaintext after its decryption. An attacker can cause the application to consume an unreasonable amount of CPU time or memory by sending malicious JWE payloads with compressed plaintext.

Note:

This is only exploitable if the application uses JWE decryption from untrusted sources and runs in a Node.js environment.

Workaround

This vulnerability can be mitigated by detecting and rejecting compressed JWEs early by checking the token's protected header. If zip is not undefined in the protected header, the token can be rejected to prevent exploitation.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade jose to version 2.0.7, 4.15.5 or higher.

References

medium severity

LGPL-3.0 license

  • Module: magister-openid
  • Introduced through: magister-openid@0.1.7

Detailed paths

  • Introduced through: magister.js@simplyGits/MagisterJS › magister-openid@0.1.7

LGPL-3.0 license