← All tasks
javaperwendel/spark #1240Not a task: already works

Security issue linked to Jetty-Server

envgap__perwendel__spark-1240

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
54079b0f95f0076dd3c440e1255a7d449d9489f1
Manifest
pom.xml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

perwendel/spark #1240 · read the original issue
Hello Here,



Using the SParkJava framwork for some personnal project, I detect the following security issue linked to SparkJava jetty usage, thanks to snyk.io.



----

# High severity

## Privilege Escalation



**Affected module**: org.eclipse.jetty:jetty-webapp@9.4.31.v20200723



**Introduced through**: com.sparkjava:spark-core@2.9.3



**Exploit maturity**: No known exploit



**Fixed in**: org.eclipse.jetty:jetty-webapp@9.4.33.v20201020, org.eclipse.jetty:jetty-webapp@jetty-10.0.0.beta3, org.eclipse.jetty:jetty-webapp@11.0.0.beta3



##Detailed paths



**Introduced through**:   com.sparkjava:spark-core@2.9.3  ›  org.eclipse.jetty:jetty-webapp@9.4.31.v20200723 



## Overview



org.eclipse.jetty:jetty-webapp is a maven plugin for Jetty web application support.



Affected versions of this package are vulnerable to Privilege Escalation. The system's temporary directory is shared between all users on that system. A collocated user can observe the process of creating a temporary sub directory in the shared temporary directory and race to complete the creation of the temporary subdirectory. If the attacker wins the race then they will have read and write permission to the subdirectory used to unpack web applications, including their WEB-INF/lib jar files and JSP files. If any code is ever executed out of this temporary directory, this can lead to a local privilege escalation vulnerability.



----



Would you mind upgrading the underlaying jetty-webapp to org.eclipse.jetty:jetty-webapp@9.4.33.v20201020 ?



Thanks in advanced.



McG.
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]