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

java.lang.SecurityException: BCV is awesome! Blocking exec: C:\Program Files\Python39\python.exe #332

Closed
leo-stone opened this issue Jul 22, 2021 · 2 comments
Labels

Comments

@leo-stone
Copy link

Hi, I don't know but it seems, something within the blocking logic of the security manager is not quite right....
For some reason the call to python get's blocked, which it should not, I suppose...

Bytecode Viewer 2.10.14 [FatJar] - Created by @Konloch
...
Start up took 0 seconds
Opening.. blabla.zip
Opening.. blabla.apk
Allowing exec: python3
0:java.lang.Thread
1:the.bytecode.club.bytecodeviewer.util.SecurityMan
2:java.lang.ProcessBuilder
3:java.lang.ProcessBuilder
4:the.bytecode.club.bytecodeviewer.util.Enjarify
5:the.bytecode.club.bytecodeviewer.resources.importing.impl.APKResourceImporter
6:the.bytecode.club.bytecodeviewer.resources.importing.ImportResource
7:the.bytecode.club.bytecodeviewer.resources.importing.ImportResource
8:java.lang.Thread
java.lang.SecurityException: BCV is awesome! Blocking exec: C:\Program Files\Python39\python.exe
        at the.bytecode.club.bytecodeviewer.util.SecurityMan.checkExec(SecurityMan.java:155)
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1096)
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
        at the.bytecode.club.bytecodeviewer.util.Enjarify.apk2Jar(Enjarify.java:61)
        at the.bytecode.club.bytecodeviewer.resources.importing.impl.APKResourceImporter.open(APKResourceImporter.java:47)
        at the.bytecode.club.bytecodeviewer.resources.importing.ImportResource.importKnownFile(ImportResource.java:90)
        at the.bytecode.club.bytecodeviewer.resources.importing.ImportResource.run(ImportResource.java:62)
        at java.base/java.lang.Thread.run(Thread.java:834)

Maybe related to #227 ? Because what follows is:

java.io.FileNotFoundException: C:\Users\Jon Doe\.Bytecode-Viewer\bcv_temp\rjOTgWpLTlqpvcnNhqtOXjTlN.jar (Das System kann die angegebene Datei nicht finden)
        at java.base/java.io.FileInputStream.open0(Native Method)
        at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
        at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
        at the.bytecode.club.bytecodeviewer.resources.ResourceContainerImporter.importZipInputStream(ResourceContainerImporter.java:151)
        at the.bytecode.club.bytecodeviewer.resources.ResourceContainerImporter.importAsZip(ResourceContainerImporter.java:74)
        at the.bytecode.club.bytecodeviewer.resources.importing.impl.APKResourceImporter.open(APKResourceImporter.java:51)
        at the.bytecode.club.bytecodeviewer.resources.importing.ImportResource.importKnownFile(ImportResource.java:90)
        at the.bytecode.club.bytecodeviewer.resources.importing.ImportResource.run(ImportResource.java:62)
        at java.base/java.lang.Thread.run(Thread.java:834)
java.nio.file.NoSuchFileException: C:\Users\Jon Doe\.Bytecode-Viewer\bcv_temp\rjOTgWpLTlqpvcnNhqtOXjTlN.jar
        at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
        at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:235)
        at java.base/java.nio.file.Files.newByteChannel(Files.java:371)
        at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:261)
        at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:230)
        at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:213)
        at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:174)
        at the.bytecode.club.bytecodeviewer.resources.ResourceContainerImporter.importApacheZipFile(ResourceContainerImporter.java:176)
        at the.bytecode.club.bytecodeviewer.resources.ResourceContainerImporter.importAsZip(ResourceContainerImporter.java:81)
        at the.bytecode.club.bytecodeviewer.resources.importing.impl.APKResourceImporter.open(APKResourceImporter.java:51)
        at the.bytecode.club.bytecodeviewer.resources.importing.ImportResource.importKnownFile(ImportResource.java:90)
        at the.bytecode.club.bytecodeviewer.resources.importing.ImportResource.run(ImportResource.java:62)
        at java.base/java.lang.Thread.run(Thread.java:834)
@Konloch
Copy link
Owner

Konloch commented Jul 22, 2021

Thank you for the report, I've fixed this issue in the master branch and will push a release soon

@Konloch Konloch added the Bug label Jul 22, 2021
@leo-stone
Copy link
Author

yes, I've noticed ;)

Konloch added a commit that referenced this issue Feb 13, 2022
In general this seems to be causing more problems than it has solved, in the future I will attempt a more secure sandbox
@Konloch Konloch closed this as completed Feb 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants