Home / Vulnerability Database / Kotlin : Call of System.exit()
Kotlin

Kotlin : Call of System.exit()

Classification

Overview

System.exit() call terminates the container operation. Web application must not try to close its own container.

Perhaps the System.exit() call is a part of the debugging code that mistakenly was not removed from the final version of the application or a part of the code imported from a non-J2EE application.

Access to a function that can shut down the application is an avenue for Denial of Service (DoS) attacks. The shutdown function should be a privileged function available only to a properly authorized administrative user. Non-web applications may have a main() method that contains a System.exit(), but generally should not call System.exit() from other locations in the code.

LOW

DerScanner Severity Score

Do you want to fix Kotlin : Call of System.exit() in your application?

See also

Kotlin

Kotlin : Missing required cryptographic step

Kotlin

Kotlin : Logging into system output

Kotlin

Kotlin : Call of notify() in synchronized block