Open Redirect Affecting org.glassfish.main.admin:rest-service package, versions [,7.0.17)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.04% (15th 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-JAVA-ORGGLASSFISHMAINADMIN-8132098
  • published 30 Sep 2024
  • disclosed 30 Sep 2024
  • credit Marta Rybczynska

How to fix?

Upgrade org.glassfish.main.admin:rest-service to version 7.0.17 or higher.

Overview

Affected versions of this package are vulnerable to Open Redirect in the RestManagementAdapter class, accessible via the /management/domain endpoint. An attacker can modify the Host parameter to contain an arbitrary URL that they control, to exfiltrate data from a user.

PoC

GET /management/domain HTTP/1.1
Host: google.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101
Firefox/115.0
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/
*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Connection: close
Upgrade-Insecure-Requests: 1

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
5.1 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Active
  • Confidentiality (VC)
    Low
  • Integrity (VI)
    None
  • Availability (VA)
    None
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None