We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description
Socket.connect method call is not sandboxed by Security Manager as expected. Default settings, no additional permissions were added.
To Reproduce
Steps to reproduce the behavior:
import java.io.IOException; import java.net.InetSocketAddress; import java.net.Socket; public class SecurityCheck { public int connect(Socket socket) throws IOException { socket.connect(new InetSocketAddress("0.0.0.0", 22)); return 0; } }
Expected behavior
Generated test is supposed to be disabled with sandbox-related comment.
Actual behavior
Successful test is generated.
Visual proofs (screenshots, logs, images)
public class SecurityCheckTest { ///region Test suites for executable SecurityCheck.connect ///region @Test @DisplayName("connect: socket = Socket(String, int, boolean) -> throw SocketException") public void testConnectThrowsSE() throws IOException { SecurityCheck securityCheck = new SecurityCheck(); Socket socket = new Socket("", 0, false); assertThrows(SocketException.class, () -> securityCheck.connect(socket)); } ///endregion ///region Errors report for connect public void testConnect_errors() { // Couldn't generate some tests. List of errors: // // 4 occurrences of: // Default concrete execution failed } ///endregion ///endregion }
4 InvocationTargetException are present in Concrete executor log
Environment
IntelliJ IDEA 2022.1 - 2022.1.4 JDK 8/11
Additional context
Same result with Fuzzing only and default settings.
The text was updated successfully, but these errors were encountered:
Should be fixed by #838
Sorry, something went wrong.
Markoutte
No branches or pull requests
Description
Socket.connect method call is not sandboxed by Security Manager as expected.
Default settings, no additional permissions were added.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Generated test is supposed to be disabled with sandbox-related comment.
Actual behavior
Successful test is generated.
Visual proofs (screenshots, logs, images)
4 InvocationTargetException are present in Concrete executor log
Environment
IntelliJ IDEA 2022.1 - 2022.1.4
JDK 8/11
Additional context
Same result with Fuzzing only and default settings.
The text was updated successfully, but these errors were encountered: