{"id":5414,"date":"2012-07-20T16:27:16","date_gmt":"2012-07-20T21:27:16","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=5414"},"modified":"2012-08-25T23:11:04","modified_gmt":"2012-08-26T04:11:04","slug":"1z0-102-protecting-against-attacks","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=5414","title":{"rendered":"WebLogic 11g: Protecting Against Attacks"},"content":{"rendered":"<div class='toc wptoc'>\n<h2>Contents<\/h2>\n<ol class='toc-odd level-1'>\n\t<li>\n\t\t<a href=\"#Configure_secure_sockets_layer_SSL_for_WLS\">Configure secure sockets layer (SSL) for WLS<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Use_the_keytool_utility_to_create_and_manage_certificates\">Use the keytool utility to create and manage certificates<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Configure_hostname_verification_anti-man-in-the-middle\">Configure hostname verification (anti-man-in-the-middle)<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Configure_a_network_filter_anti-denial-of-service\">Configure a network filter (anti-denial-of-service)<\/a>\n\t\t<ol class='toc-even level-2'>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Three_Basic_Types_of_DoS_Attacks\">Three Basic Types of DoS Attacks<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Filter_Network_Connections\">Filter Network Connections<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#weblogic.security.net.ConnectionFilterImpl\">weblogic.security.net.ConnectionFilterImpl<\/a>\n\t\t\t<\/li>\n\t\t<\/ol>\n\t<li>\n\t\t<a href=\"#Set_max_post_size_anti-large-buffer\">Set max post size (anti-large-buffer)<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Set_post_timeout_anti-connection-starvation\">Set post timeout (anti-connection-starvation)<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Configure_username_lockout_via_the_admin_console\">Configure username lockout via the admin console<\/a>\n\t\t<ol class='toc-even level-2'>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Use_Admin_Port\">Use Admin Port<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Change_Admin_Console_Context_Root_or_Disable_Admin_Console\">Change Admin Console Context Root or Disable Admin Console<\/a>\n\t\t\t<\/li>\n<\/ol>\n<\/ol>\n<\/ol>\n<\/div>\n<div class='wptoc-end'>&nbsp;<\/div>\n<p><< <a href=\"?p=5001\">Previous<\/a><\/p>\n<span id=\"Configure_secure_sockets_layer_SSL_for_WLS\"><h2>Configure secure sockets layer (SSL) for WLS<\/h2><\/span>\n<p>* See <a href=\"?p=4169\">this post<\/a><\/p>\n<span id=\"\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_ssl_keystore.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_ssl_keystore-300x214.jpg\" alt=\"\" title=\"wls11gadmin_ssl_keystore\" width=\"300\" height=\"214\" class=\"aligncenter size-medium wp-image-5418\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_ssl_keystore-300x214.jpg 300w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_ssl_keystore.jpg 917w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/h6><\/span>\n<span id=\"_1\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_ssl.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_ssl-278x300.jpg\" alt=\"\" title=\"wls11gadmin_ssl\" width=\"278\" height=\"300\" class=\"aligncenter size-medium wp-image-5419\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_ssl-278x300.jpg 278w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_ssl.jpg 484w\" sizes=\"auto, (max-width: 278px) 100vw, 278px\" \/><\/a><\/h6><\/span>\n<span id=\"Use_the_keytool_utility_to_create_and_manage_certificates\"><h2>Use the keytool utility to create and manage certificates<\/h2><\/span>\n<p>* <em>keytool<\/em> is a standard Java tool<br \/>\n* can be used to<br \/>\n&#8211; generate private keys<br \/>\n&#8211; store private keys (keystore)<br \/>\n&#8211; store trusted certificates (truststore)<br \/>\n&#8211; display key info<br \/>\n* WLS does not support DSA which is default for keytool<\/p>\n<pre lang=\"bash\">\r\nkeytool \u2013genkeypair \u2013alias mykey \u2013keypass mykeypass\r\n\u2013keyalg RSA \u2013keysize 512 -dname \"CN=payroll.mycompany.com...\"\r\n-keystore mykeys.jks \u2013storepass mypass\r\n\r\nkeytool \u2013importcert \u2013file payroll.pem \u2013alias mykey \u2013keypass\r\nmykeypass -keystore mykeys.jks \u2013storepass mypass\r\n\r\nkeytool \u2013list \u2013v -keystore mykeys.jks \u2013storepass mypass\r\n<\/pre>\n<span id=\"Configure_hostname_verification_anti-man-in-the-middle\"><h2>Configure hostname verification (anti-man-in-the-middle)<\/h2><\/span>\n<p>* Enabled by default:<\/p>\n<span id=\"_2\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_ssl_hostveri.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_ssl_hostveri-251x300.jpg\" alt=\"\" title=\"wls11gadmin_ssl_hostveri\" width=\"251\" height=\"300\" class=\"aligncenter size-medium wp-image-5420\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_ssl_hostveri-251x300.jpg 251w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_ssl_hostveri.jpg 532w\" sizes=\"auto, (max-width: 251px) 100vw, 251px\" \/><\/a><\/h6><\/span>\n<p>* Custom hostname verifier class must implement: <em>weblogic.security.SSL.HostnameVerifier<\/em><br \/>\n* Command line properties<br \/>\n&#8211; ignore hostname verification: <em>-Dweblogic.security.SSL.ignoreHostnameVerification=true<\/em><br \/>\n&#8211; enforce hostname verification: <em>-Dweblogic.security.SSL.HostnameVerifier=hostnameverifier_class<\/em><\/p>\n<span id=\"Configure_a_network_filter_anti-denial-of-service\"><h2>Configure a network filter (anti-denial-of-service)<\/h2><\/span>\n<span id=\"Three_Basic_Types_of_DoS_Attacks\"><h3>Three Basic Types of DoS Attacks<\/h3><\/span>\n<p>* Consumption of limited resources<br \/>\n* Destruction or alteration of configuration<br \/>\n* Physical destruction or alteration of network components<\/p>\n<span id=\"Filter_Network_Connections\"><h3>Filter Network Connections<\/h3><\/span>\n<p>* Accept or deny network connections based on<br \/>\n&#8211; origin of clients<br \/>\n&#8211; type of connections (e.g. SSL or not)<\/p>\n<span id=\"weblogic.security.net.ConnectionFilterImpl\"><h3>weblogic.security.net.ConnectionFilterImpl<\/h3><\/span>\n<p>* Filter rules: <em>targetAddr localAddr localPort action protocols<\/em><br \/>\n* Example:<\/p>\n<pre lang=\"bash\">\r\n# allow connection from 192.168.1.0 to 24 on local port 8001\r\n192.168.1.0\/24 127.0.0.1 8001 allow\r\n10.10.0.0\/16 127.0.0.1 8002 deny\r\n\r\n# deny connection from badguy.com on local port 7001\r\n*.badguy.com 127.0.0.1 7001 deny\r\n\r\n# catch all deny\r\n0.0.0.0\/0 * * deny\r\n<\/pre>\n<span id=\"_3\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_conn_filter.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_conn_filter-270x300.jpg\" alt=\"\" title=\"wls11gadmin_conn_filter\" width=\"270\" height=\"300\" class=\"aligncenter size-medium wp-image-5422\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_conn_filter-270x300.jpg 270w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_conn_filter.jpg 456w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a><\/h6><\/span>\n<span id=\"Set_max_post_size_anti-large-buffer\"><h2>Set max post size (anti-large-buffer)<\/h2><\/span>\n<span id=\"_4\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_post_size.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_post_size-300x145.jpg\" alt=\"\" title=\"wls11gadmin_post_size\" width=\"300\" height=\"145\" class=\"aligncenter size-medium wp-image-5423\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_post_size-300x145.jpg 300w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_post_size.jpg 885w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/h6><\/span>\n<span id=\"Set_post_timeout_anti-connection-starvation\"><h2>Set post timeout (anti-connection-starvation)<\/h2><\/span>\n<span id=\"_5\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_max_msg_size.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_max_msg_size-300x40.jpg\" alt=\"\" title=\"wls11gadmin_max_msg_size\" width=\"300\" height=\"40\" class=\"aligncenter size-medium wp-image-5424\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_max_msg_size-300x40.jpg 300w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_max_msg_size.jpg 577w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/h6><\/span>\n<span id=\"Configure_username_lockout_via_the_admin_console\"><h2>Configure username lockout via the admin console<\/h2><\/span>\n<span id=\"Use_Admin_Port\"><h3>Use Admin Port<\/h3><\/span>\n<span id=\"_6\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_enable_adm_port.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_enable_adm_port-300x121.jpg\" alt=\"\" title=\"wls11gadmin_enable_adm_port\" width=\"300\" height=\"121\" class=\"aligncenter size-medium wp-image-5425\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_enable_adm_port-300x121.jpg 300w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_enable_adm_port.jpg 705w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/h6><\/span>\n<span id=\"Change_Admin_Console_Context_Root_or_Disable_Admin_Console\"><h3>Change Admin Console Context Root or Disable Admin Console<\/h3><\/span>\n<span id=\"_7\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_diable_adm_console.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_diable_adm_console-300x79.jpg\" alt=\"\" title=\"wls11gadmin_diable_adm_console\" width=\"300\" height=\"79\" class=\"aligncenter size-medium wp-image-5426\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_diable_adm_console-300x79.jpg 300w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/07\/wls11gadmin_diable_adm_console.jpg 443w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/h6><\/span>\n<p><a href=\"?p=5065\">Next <\/a>>><\/p>\n<p>[mv_include id=&#8217;3268&#8242;]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>> [mv_include id=&#8217;3268&#8242;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[107,104],"tags":[180,168,595,576,167],"class_list":["post-5414","post","type-post","status-publish","format-standard","hentry","category-certification","category-weblogic11g","tag-1z0-102","tag-admin","tag-certification","tag-security","tag-wls"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-1pk","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/5414","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5414"}],"version-history":[{"count":6,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/5414\/revisions"}],"predecessor-version":[{"id":5712,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/5414\/revisions\/5712"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}