Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SECURITY] Fix Temporary File Information Disclosure Vulnerability #160

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.file.Files;
import java.util.List;

import org.apache.maven.settings.io.xpp3.SettingsXpp3Writer;
Expand Down Expand Up @@ -89,7 +90,7 @@ public void executeGoals( File workingDirectory, List<String> goals, ReleaseEnvi
// Have to serialize to a file as if Maven is embedded, there may not actually be a settings.xml on disk
try
{
settingsFile = File.createTempFile( "release-settings", ".xml" );
settingsFile = Files.createTempFile( "release-settings", ".xml" ).toFile();
SettingsXpp3Writer writer = getSettingsWriter();

try ( FileWriter fileWriter = new FileWriter( settingsFile ) )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.List;

Expand Down Expand Up @@ -89,7 +90,7 @@ public void executeGoals( File workingDirectory, List<String> goals, ReleaseEnvi
// Have to serialize to a file as if Maven is embedded, there may not actually be a settings.xml on disk
try
{
settingsFile = File.createTempFile( "release-settings", ".xml" );
settingsFile = Files.createTempFile( "release-settings", ".xml" ).toFile();
SettingsXpp3Writer writer = getSettingsWriter();

try ( FileWriter fileWriter = new FileWriter( settingsFile ) )
Expand Down