Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Wiki Markup
*ERR09-EX0:* It is permissible for a command-line utility to call {{System.exit()}}, for example, when the required number of arguments are not input \[[Bloch 2008|AA. Bibliography#BlochReferences#Bloch 08]\, \[ESA 2005|AA. Bibliography#ESAReferences#ESA 05]\].

Risk Assessment

Allowing unauthorized calls to System.exit() may lead to denial of service (DoS).

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="a103cd775e965542-dbcae960-47b44f12-a20c9160-12ee5600b3ad87f0e90770d0"><ac:plain-text-body><![CDATA[

[[API 2006

AA. Bibliography#API References#API 06]]

[Method checkExit()

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/SecurityManager.html#checkExit(int)], class Runtime, method addShutdownHook

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="33e457b9fd54a627-3eb42223-4c724eb0-9ce8aa4a-89706544105b2543538de862"><ac:plain-text-body><![CDATA[

[[Austin 2000

AA. Bibliography#Austin References#Austin 00]]

[Writing a Security Manager

http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed2.html]

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="9a5f926ffbd63a09-f558eee9-4111431c-ae4ab47c-317ac01004ebf98efae19ca0"><ac:plain-text-body><![CDATA[

[[Darwin 2004

AA. Bibliography#Darwin References#Darwin 04]]

9.5, The Finalize Method

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="ee1ee41fc5fc777c-214c37cc-4cb54a75-b020b52b-20a29a887b3ab0482f0eddf9"><ac:plain-text-body><![CDATA[

[[ESA 2005

AA. Bibliography#ESA References#ESA 05]]

Rule 78. Restrict the use of the System.exit method

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="8b04dec6f3225c2e-5367e3d9-4db6438a-b535bc6b-dd81aff585fba66fad0492fd"><ac:plain-text-body><![CDATA[

[[Goetz 2006

AA. Bibliography#Goetz References#Goetz 06]]

7.4, JVM Shutdown

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="4d2e9ea7e22ddce1-0609419e-44644a8d-bf87a471-d1acd82a8534286d32b98578"><ac:plain-text-body><![CDATA[

[[Kalinovsky 2004

AA. Bibliography#Kalinovsky References#Kalinovsky 04]]

Chapter 16, Intercepting a Call to System.exit

]]></ac:plain-text-body></ac:structured-macro>

...