Weblogic修復"Java反序列化"過程遠端命令執行漏洞

neverinit發表於2017-07-25
1.查詢文件說明,在上找到補丁的說明文件如下:

CVE-2015-4852 Patch Availability Document for Oracle WebLogic Server Component of Oracle Fusion Middleware (Doc ID 2075927.1)

APPLIES TO:

Oracle WebLogic Server - Version 10.3.6 to 12.2.1.0.0
Oracle Fusion Middleware
Oracle WebLogic Server - Version 10.3 to 10.3
Information in this document applies to any platform.
This applies to any product deployment using Oracle WebLogic Server

PURPOSE

This document defines minimum releases and patches for the Oracle WebLogic Server component of Oracle Fusion Middleware to address the vulnerability described in the Oracle Security Alert for CVE-2015-4852:  http://www.oracle.com/technetwork/topics/security/alert-cve-2015-4852-2763333.html

DETAILS


It is important to read the Oracle Security Alert before reading this document. The table below defines minimum releases and patches for Oracle WebLogic Server.

See also Note 2076338.1 CVE-2015-4852 Mitigation Recommendations for Oracle WebLogic Server Component of Oracle Fusion Middleware

January 2016 CPU Update:

Beginning January 2016, CVE-2015-4852 fixes are now included in the below Patch Set Update (PSU) releases and higher:

12.2.1.0.1

12.1.3.0.6

12.1.2.0.8

10.3.6.0.13

To obtain the latest cumulative PSU, refer to the Critical Patch Update program at http://www.oracle.com/technetwork/topics/security/alerts-086861.html . Review the latest Advisory and click the "Fusion Middleware" link within to obtain the latest cumulative Patch Availability Document.

Important: If you have a version older than 10.3.6 or 12.1.2, you must upgrade as per the Error Correction Policy: Note 950131.1, "Error Correction Support Dates for Oracle WebLogic Server".

The initial patching requirements from November 2015 are listed below with patch links for all versions under error correction support:

WLS Release
Required Patches
12.2.1.0  for CVE-2015-4852
12.1.3.0 PSU 12.1.3.0.5 () + Patch 22248372 for CVE-2015-4852
12.1.2.0 PSU 12.1.2.0.7 () +  for CVE-2015-4852
10.3.6.0 PSU 10.3.6.0.12 (), Smart Update Patch ID: EJUW) +  for CVE-2015-4852

Patches are not password protected for versions listed above. Older versions are now expired.

Due to issues with linking to the standard My Oracle Support patch download page, the above links go to an alternative updates.oracle.com location. If you have firewall rules on your network, you should adjust accordingly for the links to work.

You may also access these patches by going to the "Patches and Updates" tab, perform a search on the above numbers and select your version.

REFERENCES

NOTE:2076338.1 - CVE-2015-4852 Mitigation Recommendations for Oracle WebLogic Server Component of Oracle Fusion Middleware

NOTE:1074055.1 - Security Vulnerability FAQ for Oracle Database and Fusion Middleware Products

2.下載補丁,透過原文Required Patches處的連結下載補丁包。我所使用的版本為10.3.6.0,所以需要下載的補丁包為PSU 10.3.6.0.12 (Patch 20780171) + 10.3.6.0.12 Patch 22248372 for CVE-2015-4852

3.執行打補丁操作(注意:不同的環境和本文的路徑會有所不同)

  1. [cams@JJ129077 dateFiles]$ cd /home/cams/bea/middleware/wlserver_10.3/server/bin/
  2. [cams@JJ129077 bin]$ ls
  3. international setWLSEnv.sh startNodeManager.sh
  4. [cams@JJ129077 bin]$ . ./setWLSEnv.sh
  5. CLASSPATH=/home/cams/bea/middleware/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/cams/bea/middleware/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/java/jdk1.6.0_45/lib/tools.jar:/home/cams/bea/middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/home/cams/bea/middleware/wlserver_10.3/server/lib/weblogic.jar:/home/cams/bea/middleware/modules/features/weblogic.server.modules_10.3.6.0.jar:/home/cams/bea/middleware/wlserver_10.3/server/lib/webservices.jar:/home/cams/bea/middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/home/cams/bea/middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:.:/usr/java/jdk1.6.0_45/lib/dt.jar:/usr/java/jdk1.6.0_45/lib/tools.jar

  6. PATH=/home/cams/bea/middleware/wlserver_10.3/server/bin:/home/cams/bea/middleware/modules/org.apache.ant_1.7.1/bin:/usr/java/jdk1.6.0_45/jre/bin:/usr/java/jdk1.6.0_45/bin:/usr/java/jdk1.6.0_45/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin::/home/cams/bin

  7. Your environment has been set.
  8. [cams@JJ129077 bin]$ java weblogic.version

  9. WebLogic Server 10.3.6.0 Tue Nov 15 08:52:36 PST 2011 1441050

  10. Use 'weblogic.version -verbose' to get subsystem information

  11. Use 'weblogic.utils.Versions' to get version information for all modules


  12. [cams@JJ129077 zip]$ cd /home/cams/bea/middleware/utils/bsu
  13. [cams@JJ129077 bsu]$ ./bsu.sh -prod_dir=/home/cams/bea/middleware/wlserver_10.3/ -status=applied -verbose -view
  14. ProductName: WebLogic Server
  15. ProductVersion: 10.3 MP6
  16. Components: WebLogic Server/Core Application Server,WebLogic Server/Admi
  17.                    nistration Console,WebLogic Server/Configuration Wizard and
  18.                    Upgrade Framework,WebLogic Server/Web 2.0 HTTP Pub-Sub Serve
  19.                    r,WebLogic Server/WebLogic SCA,WebLogic Server/WebLogic JDBC
  20.                     Drivers,WebLogic Server/Third Party JDBC Drivers,WebLogic S
  21.                    erver/WebLogic Server Clients,WebLogic Server/WebLogic Web S
  22.                    erver Plugins,WebLogic Server/UDDI and Xquery Support,WebLog
  23.                    ic Server/Evaluation Database,WebLogic Server/Workshop Code
  24.                    Completion Support
  25. BEAHome: /home/cams/bea/middleware
  26. ProductHome: /home/cams/bea/middleware/wlserver_10.3
  27. PatchSystemDir: /home/cams/bea/middleware/utils/bsu
  28. PatchDir: /home/cams/bea/middleware/patch_wls1036
  29. Profile: Default
  30. DownloadDir: /home/cams/bea/middleware/utils/bsu/cache_dir
  31. JavaVersion: 1.6.0_29
  32. JavaVendor: Sun

  33. 上傳p20780171_1036_Generic.zip和p22248372_1036012_Generic.zip至DownloadDir:/home/cams/bea/middleware/utils/bsu/cache_dir路徑下,並解壓
  34. [cams@JJ129077 cache_dir]$ unzip p20780171_1036_Generic.zip
  35. Archive: p20780171_1036_Generic.zip
  36.  extracting: EJUW.jar
  37.   inflating: patch-catalog_22958.xml
  38.   inflating: README.txt
  39. [cams@JJ129077 cache_dir]$ unzip p22248372_1036012_Generic.zip
  40. Archive: p22248372_1036012_Generic.zip
  41.   inflating: patch-catalog_23501.xml
  42. replace README.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: r
  43. new name: README1.txt
  44.   inflating: README1.txt
  45.   inflating: ZLNA.jar

  46. 如果不知道如何打補丁,可以參考p20780171_1036_Generic.zip中的README檔案,README的內容附在文末。 (打補丁之前先把Weblogic停了,最簡單的就是殺程式)
  47. [cams@JJ129077 bsu]$ ./bsu.sh -install -patch_download_dir=/home/cams/bea/middleware/utils/bsu/cache_dir/ -patchlist=EJUW -prod_dir=/home/cams/bea/middleware/wlserver_10.3/ -verbose
  48. Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
  49.     at com.bea.plateng.patch.dao.cat.PatchCatalogHelper.getPatchDependencies(PatchCatalogHelper.java:448)
  50.     at com.bea.plateng.patch.dao.cat.PatchCatalogHelper.getPatchDependencies(PatchCatalogHelper.java:464)
  51.     at com.bea.plateng.patch.dao.cat.PatchCatalog.getPatchDependencies(PatchCatalog.java:56)
  52.     at com.bea.plateng.patch.dao.cat.PatchCatalogHelper.getInvalidatedPatchMap(PatchCatalogHelper.java:1621)
  53.     at com.bea.plateng.patch.PatchSystem.updatePatchCatalog(PatchSystem.java:436)
  54.     at com.bea.plateng.patch.PatchSystem.refresh(PatchSystem.java:130)
  55.     at com.bea.plateng.patch.PatchSystem.setCacheDir(PatchSystem.java:201)
  56.     at com.bea.plateng.patch.Patch.main(Patch.java:281)
  57. [cams@JJ129077 bsu]$ ls
  58. bsu.jar bsu.sh cache_dir patch-client.jar smartupdate.ico
  59. [cams@JJ129077 bsu]$ vi bsu.sh
  60. [cams@JJ129077 bsu]$ cat bsu.sh
  61. #!/bin/sh

  62. JAVA_HOME="/usr/java/jdk1.6.0_45"

  63. MEM_ARGS="-Xms2560m -Xmx5120m"

  64. "$JAVA_HOME/bin/java" ${MEM_ARGS} -jar patch-client.jar $*
  65. [cams@JJ129077 bsu]$ ./bsu.sh -install -patch_download_dir=/home/cams/bea/middleware/utils/bsu/cache_dir/ -patchlist=EJUW -prod_dir=/home/cams/bea/middleware/wlserver_10.3/ -verbose
  66. 檢查衝突....
  67. 未檢測到衝突

  68. 開始安裝補丁程式 ID: EJUW
  69. 安裝 /home/cams/bea/middleware/utils/bsu/cache_dir/EJUW.jar
  70. 解壓縮 /home/cams/bea/middleware/patch_wls1036/patch_jars/BUG20780171_1036012.jar
  71. 解壓縮 /home/cams/bea/middleware/patch_wls1036/patch_jars/com.bea.core.apache.commons.fileupload_1.0.0.0_1-3-1.jar
  72. 解壓縮 /home/cams/bea/middleware/patch_wls1036/patch_jars/com.bea.core.stax2_2.0.0.0_3-0-3.jar
  73. 解壓縮 /home/cams/bea/middleware/patch_wls1036/patch_jars/glassfish.jaxb.xjc_1.2.0.0_2-1-14.jar
  74. 解壓縮 /home/cams/bea/middleware/patch_wls1036/patch_jars/glassfish.jaxb_1.2.0.0_2-1-14.jar
  75. 解壓縮 /home/cams/bea/middleware/patch_wls1036/patch_jars/glassfish.jaxp_1.4.5.0.jar
  76. 解壓縮 /home/cams/bea/middleware/patch_wls1036/patch_jars/glassfish.jaxws.mimepull_1.1.0.0_1-3-8.jar
  77. 更新 /home/cams/bea/middleware/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar
  78. 舊清單值: Class-Path=
  79. 新清單值: Class-Path=../../../patch_jars/BUG20780171_1036012.jar ../../../patch_jars/com.bea.core.apache.commons.fileupload_1.0.0.0_1-3-1.jar ../../../patch_jars/com.bea.core.stax2_2.0.0.0_3-0-3.jar ../../../patch_jars/glassfish.jaxb.xjc_1.2.0.0_2-1-14.jar ../../../patch_jars/glassfish.jaxb_1.2.0.0_2-1-14.jar ../../../patch_jars/glassfish.jaxp_1.4.5.0.jar ../../../patch_jars/glassfish.jaxws.mimepull_1.1.0.0_1-3-8.jar
  80. 備份 /home/cams/bea/middleware/wlserver_10.3/server/lib/consoleapp/webapp/WEB-INF/lib/console.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  81. 備份 /home/cams/bea/middleware/modules/com.bea.core.descriptor.wl.binding_1.4.0.0.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  82. 備份 /home/cams/bea/middleware/wlserver_10.3/common/deployable-libraries/jstl-1.2.war 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  83. 備份 /home/cams/bea/middleware/wlserver_10.3/server/lib/jms-notran-adp.rar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  84. 備份 /home/cams/bea/middleware/wlserver_10.3/common/wlst/modules/jython-modules.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  85. 備份 /home/cams/bea/middleware/wlserver_10.3/server/lib/consoleapp/APP-INF/lib/commons-fileupload.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  86. 備份 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlthint3client.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  87. 備份 /home/cams/bea/middleware/modules/com.oracle.cie.config-wls-schema_10.3.6.0.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  88. 備份 /home/cams/bea/middleware/wlserver_10.3/common/bin/wlsifconfig.sh 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  89. 備份 /home/cams/bea/middleware/wlserver_10.3/common/deployable-libraries/jsf-1.2.war 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  90. 備份 /home/cams/bea/middleware/modules/com.oracle.cie.config-wls_7.2.0.0.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  91. 備份 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlclient.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  92. 備份 /home/cams/bea/middleware/modules/glassfish.jstl_1.2.0.1.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  93. 備份 /home/cams/bea/middleware/wlserver_10.3/server/lib/wseeclient.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  94. 備份 /home/cams/bea/middleware/wlserver_10.3/common/deployable-libraries/jsf-2.0.war 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  95. 備份 /home/cams/bea/middleware/wlserver_10.3/server/lib/webserviceclient+ssl.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  96. 備份 /home/cams/bea/middleware/wlserver_10.3/server/lib/schema/weblogic-domain-binding.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  97. 備份 /home/cams/bea/middleware/wlserver_10.3/server/lib/jdbcdrivers.xml 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  98. 備份 /home/cams/bea/middleware/wlserver_10.3/server/lib/jms-xa-adp.rar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  99. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/consoleapp/webapp/WEB-INF/lib/console.jar
  100. 解壓縮 /home/cams/bea/middleware/modules/com.bea.core.descriptor.wl.binding_1.4.0.0.jar
  101. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/common/deployable-libraries/jstl-1.2.war
  102. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/jms-notran-adp.rar
  103. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/common/wlst/modules/jython-modules.jar
  104. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/consoleapp/APP-INF/lib/commons-fileupload.jar
  105. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlthint3client.jar
  106. 解壓縮 /home/cams/bea/middleware/modules/com.oracle.cie.config-wls-schema_10.3.6.0.jar
  107. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/consoleapp/APP-INF/lib/commons-io-2.4.jar
  108. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/common/bin/wlsifconfig.sh
  109. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/common/deployable-libraries/jsf-1.2.war
  110. 解壓縮 /home/cams/bea/middleware/modules/com.oracle.cie.config-wls_7.2.0.0.jar
  111. 解壓縮 /home/cams/bea/middleware/modules/com.bea.core.stax2_2.0.0.0_3-0-3.jar
  112. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlclient.jar
  113. 解壓縮 /home/cams/bea/middleware/modules/glassfish.jstl_1.2.0.1.jar
  114. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/bugsfixed/20780171-WLS-10.3.6.0.12_PSU_WebServices-ClientSide-Configuration-README.txt
  115. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/wseeclient.jar
  116. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/common/deployable-libraries/jsf-2.0.war
  117. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/webserviceclient+ssl.jar
  118. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/bugsfixed/WLS-PSU-bugsfixed.txt
  119. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/schema/weblogic-domain-binding.jar
  120. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/jdbcdrivers.xml
  121. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/jms-xa-adp.rar
  122. 備份 /home/cams/bea/middleware/wlserver_10.3/server/lib/wls-api.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  123. 備份 /home/cams/bea/middleware/modules/com.bea.core.utils_1.10.0.0.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  124. 備份 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlstestclient.ear 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  125. 備份 /home/cams/bea/middleware/wlserver_10.3/server/lib/wseeclient.zip 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  126. 備份 /home/cams/bea/middleware/wlserver_10.3/server/lib/uddiexplorer.war 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  127. 備份 /home/cams/bea/middleware/modules/ws.databinding_1.3.0.0.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  128. 備份 /home/cams/bea/middleware/wlserver_10.3/server/lib/webserviceclient.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  129. 備份 /home/cams/bea/middleware/modules/com.bea.core.apache_1.3.0.1.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  130. 備份 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlsafclient.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  131. 備份 /home/cams/bea/middleware/modules/com.bea.core.bea.opensaml_1.0.0.0_6-2-0-0.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  132. 備份 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlw-langx.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  133. 備份 /home/cams/bea/middleware/wlserver_10.3/server/lib/wljmxclient.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  134. 備份 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlsaft3client.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  135. 備份 /home/cams/bea/middleware/modules/ws.databinding.plugins_1.3.0.0.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  136. 備份 /home/cams/bea/middleware/modules/com.bea.core.utils.full_1.10.0.0.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  137. 備份 /home/cams/bea/middleware/modules/com.bea.core.bea.opensaml2_1.0.0.0_6-2-0-0.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  138. 備份 /home/cams/bea/middleware/wlserver_10.3/server/lib/wljmsclient.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  139. 備份 /home/cams/bea/middleware/modules/com.bea.core.common.security.saml2_1.0.0.0_6-2-0-0.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  140. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/wls-api.jar29284.tmp
  141. 合併 /home/cams/bea/middleware/wlserver_10.3/server/lib/wls-api.jar29284.tmp 與 /home/cams/bea/middleware/wlserver_10.3/server/lib/wls-api.jar
  142. 解壓縮 /home/cams/bea/middleware/modules/com.bea.core.utils_1.10.0.0.jar44830.tmp
  143. 合併 /home/cams/bea/middleware/modules/com.bea.core.utils_1.10.0.0.jar44830.tmp 與 /home/cams/bea/middleware/modules/com.bea.core.utils_1.10.0.0.jar
  144. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlstestclient.ear31614.tmp
  145. 合併 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlstestclient.ear31614.tmp 與 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlstestclient.ear
  146. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/wseeclient.zip5321.tmp
  147. 合併 /home/cams/bea/middleware/wlserver_10.3/server/lib/wseeclient.zip5321.tmp 與 /home/cams/bea/middleware/wlserver_10.3/server/lib/wseeclient.zip
  148. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/uddiexplorer.war39919.tmp
  149. 合併 /home/cams/bea/middleware/wlserver_10.3/server/lib/uddiexplorer.war39919.tmp 與 /home/cams/bea/middleware/wlserver_10.3/server/lib/uddiexplorer.war
  150. 解壓縮 /home/cams/bea/middleware/modules/ws.databinding_1.3.0.0.jar55192.tmp
  151. 合併 /home/cams/bea/middleware/modules/ws.databinding_1.3.0.0.jar55192.tmp 與 /home/cams/bea/middleware/modules/ws.databinding_1.3.0.0.jar
  152. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/webserviceclient.jar13700.tmp
  153. 合併 /home/cams/bea/middleware/wlserver_10.3/server/lib/webserviceclient.jar13700.tmp 與 /home/cams/bea/middleware/wlserver_10.3/server/lib/webserviceclient.jar
  154. 解壓縮 /home/cams/bea/middleware/modules/com.bea.core.apache_1.3.0.1.jar38734.tmp
  155. 合併 /home/cams/bea/middleware/modules/com.bea.core.apache_1.3.0.1.jar38734.tmp 與 /home/cams/bea/middleware/modules/com.bea.core.apache_1.3.0.1.jar
  156. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlsafclient.jar20032.tmp
  157. 合併 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlsafclient.jar20032.tmp 與 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlsafclient.jar
  158. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlt3client.jar16624.tmp
  159. 更新 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlt3client.jar16624.tmp 到 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlt3client.jar
  160. 解壓縮 /home/cams/bea/middleware/modules/com.bea.core.bea.opensaml_1.0.0.0_6-2-0-0.jar10325.tmp
  161. 合併 /home/cams/bea/middleware/modules/com.bea.core.bea.opensaml_1.0.0.0_6-2-0-0.jar10325.tmp 與 /home/cams/bea/middleware/modules/com.bea.core.bea.opensaml_1.0.0.0_6-2-0-0.jar
  162. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlw-langx.jar11487.tmp
  163. 合併 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlw-langx.jar11487.tmp 與 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlw-langx.jar
  164. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/wljmxclient.jar1720.tmp
  165. 合併 /home/cams/bea/middleware/wlserver_10.3/server/lib/wljmxclient.jar1720.tmp 與 /home/cams/bea/middleware/wlserver_10.3/server/lib/wljmxclient.jar
  166. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlt3jmsclient.jar4576.tmp
  167. 更新 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlt3jmsclient.jar4576.tmp 到 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlt3jmsclient.jar
  168. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlsaft3client.jar51603.tmp
  169. 合併 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlsaft3client.jar51603.tmp 與 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlsaft3client.jar
  170. 解壓縮 /home/cams/bea/middleware/modules/ws.databinding.plugins_1.3.0.0.jar5281.tmp
  171. 合併 /home/cams/bea/middleware/modules/ws.databinding.plugins_1.3.0.0.jar5281.tmp 與 /home/cams/bea/middleware/modules/ws.databinding.plugins_1.3.0.0.jar
  172. 解壓縮 /home/cams/bea/middleware/modules/com.bea.core.utils.full_1.10.0.0.jar34716.tmp
  173. 合併 /home/cams/bea/middleware/modules/com.bea.core.utils.full_1.10.0.0.jar34716.tmp 與 /home/cams/bea/middleware/modules/com.bea.core.utils.full_1.10.0.0.jar
  174. 解壓縮 /home/cams/bea/middleware/modules/com.bea.core.bea.opensaml2_1.0.0.0_6-2-0-0.jar59274.tmp
  175. 合併 /home/cams/bea/middleware/modules/com.bea.core.bea.opensaml2_1.0.0.0_6-2-0-0.jar59274.tmp 與 /home/cams/bea/middleware/modules/com.bea.core.bea.opensaml2_1.0.0.0_6-2-0-0.jar
  176. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/wljmsclient.jar57658.tmp
  177. 合併 /home/cams/bea/middleware/wlserver_10.3/server/lib/wljmsclient.jar57658.tmp 與 /home/cams/bea/middleware/wlserver_10.3/server/lib/wljmsclient.jar
  178. 解壓縮 /home/cams/bea/middleware/modules/com.bea.core.weblogic.stax_1.11.0.0.jar58675.tmp
  179. 更新 /home/cams/bea/middleware/modules/com.bea.core.weblogic.stax_1.11.0.0.jar58675.tmp 到 /home/cams/bea/middleware/modules/com.bea.core.weblogic.stax_1.11.0.0.jar
  180. 解壓縮 /home/cams/bea/middleware/modules/com.bea.core.common.security.saml2_1.0.0.0_6-2-0-0.jar23342.tmp
  181. 合併 /home/cams/bea/middleware/modules/com.bea.core.common.security.saml2_1.0.0.0_6-2-0-0.jar23342.tmp 與 /home/cams/bea/middleware/modules/com.bea.core.common.security.saml2_1.0.0.0_6-2-0-0.jar
  182. 結果: 成功

  183. [cams@JJ129077 bsu]$



  184. [cams@JJ129077 bsu]$ ./bsu.sh -install -patch_download_dir=/home/cams/bea/middleware/utils/bsu/cache_dir/ -patchlist=ZLNA -prod_dir=/home/cams/bea/middleware/wlserver_10.3/ -verbose
  185. 檢查衝突....
  186. 未檢測到衝突

  187. 開始安裝補丁程式 ID: ZLNA
  188. 安裝 /home/cams/bea/middleware/utils/bsu/cache_dir/ZLNA.jar
  189. 解壓縮 /home/cams/bea/middleware/patch_wls1036/patch_jars/BUG22248372_1036.jar
  190. 更新 /home/cams/bea/middleware/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar
  191. 舊清單值: Class-Path=../../../patch_jars/BUG20780171_1036012.jar ../../../patch_jars/com.bea.core.apache.commons.fileupload_1.0.0.0_1-3-1.jar ../../../patch_jars/com.bea.core.stax2_2.0.0.0_3-0-3.jar ../../../patch_jars/glassfish.jaxb.xjc_1.2.0.0_2-1-14.jar ../../../patch_jars/glassfish.jaxb_1.2.0.0_2-1-14.jar ../../../patch_jars/glassfish.jaxp_1.4.5.0.jar ../../../patch_jars/glassfish.jaxws.mimepull_1.1.0.0_1-3-8.jar
  192. 新清單值: Class-Path=../../../patch_jars/BUG22248372_1036.jar ../../../patch_jars/BUG20780171_1036012.jar ../../../patch_jars/com.bea.core.apache.commons.fileupload_1.0.0.0_1-3-1.jar ../../../patch_jars/com.bea.core.stax2_2.0.0.0_3-0-3.jar ../../../patch_jars/glassfish.jaxb.xjc_1.2.0.0_2-1-14.jar ../../../patch_jars/glassfish.jaxb_1.2.0.0_2-1-14.jar ../../../patch_jars/glassfish.jaxp_1.4.5.0.jar ../../../patch_jars/glassfish.jaxws.mimepull_1.1.0.0_1-3-8.jar
  193. 備份 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlthint3client.jar 至 /home/cams/bea/middleware/patch_wls1036/backup/backup.jar
  194. 解壓縮 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlthint3client.jar62442.tmp
  195. 合併 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlthint3client.jar62442.tmp 與 /home/cams/bea/middleware/wlserver_10.3/server/lib/wlthint3client.jar
  196. 結果: 成功

4.檢視剛更新的補丁資訊

  1. [cams@JJ129077 bsu]$ ./bsu.sh -prod_dir=/home/cams/bea/middleware/wlserver_10.3/ -status=applied -verbose -view
  2. ProductName: WebLogic Server
  3. ProductVersion: 10.3 MP6
  4. Components: WebLogic Server/Core Application Server,WebLogic Server/Admi
  5.                    nistration Console,WebLogic Server/Configuration Wizard and
  6.                    Upgrade Framework,WebLogic Server/Web 2.0 HTTP Pub-Sub Serve
  7.                    r,WebLogic Server/WebLogic SCA,WebLogic Server/WebLogic JDBC
  8.                     Drivers,WebLogic Server/Third Party JDBC Drivers,WebLogic S
  9.                    erver/WebLogic Server Clients,WebLogic Server/WebLogic Web S
  10.                    erver Plugins,WebLogic Server/UDDI and Xquery Support,WebLog
  11.                    ic Server/Evaluation Database,WebLogic Server/Workshop Code
  12.                    Completion Support
  13. BEAHome: /home/cams/bea/middleware
  14. ProductHome: /home/cams/bea/middleware/wlserver_10.3
  15. PatchSystemDir: /home/cams/bea/middleware/utils/bsu
  16. PatchDir: /home/cams/bea/middleware/patch_wls1036
  17. Profile: Default
  18. DownloadDir: /home/cams/bea/middleware/utils/bsu/cache_dir
  19. JavaVersion: 1.6.0_29
  20. JavaVendor: Sun


  21. Patch ID: EJUW
  22. PatchContainer: EJUW.jar
  23. Checksum: 1554039558
  24. Severity: optional
  25. Category: General
  26. CR/BUG: 20780171
  27. Restart: true
  28. Description: WLS PATCH SET UPDATE 10.3.6.0.12
  29. WLS PATCH SET UPDATE 10.3.
  30.                    6.0.12

  31. Patch ID: ZLNA
  32. PatchContainer: ZLNA.jar
  33. Checksum: -894774340
  34. Severity: optional
  35. Category: Security
  36. CR/BUG: 22248372
  37. Restart: true
  38. Description: WEBLOGIC SERVER CVE-2015-4852 SECURITY ALERT PATCH (NOV 2015
  39.                    )
  40. WEBLOGIC SERVER CVE-2015-4852 SECURITY ALERT PATCH (NOV 20
  41.                    15)


  42. [cams@JJ129077 bsu]$ java weblogic.version

  43. WebLogic Server Temporary Patch for BUG22248372 Tue Nov 24 00:35:04 MST 2015
  44. WebLogic Server 10.3.6.0.12 PSU Patch for BUG20780171 THU JUN 18 15:54:42 IST 2015
  45. WebLogic Server 10.3.6.0 Tue Nov 15 08:52:36 PST 2011 1441050

  46. Use 'weblogic.version -verbose' to get subsystem information

  47. Use 'weblogic.utils.Versions' to get version information for all modules

5.附錄(README檔案:Patch 20780171

  1. Oracle WebLogic Server Patch Set Update 10.3.6.0.12 README
  2. =========================================================

  3. This README provides information about how to apply Oracle WebLogic Server
  4. Patch Set Update 10.3.6.0.12. It also provides information about reverting to
  5. the original version.

  6. Released: July, 2015


  7. Smart Update Details of Oracle WebLogic Server Patch Set Update 10.3.6.0.12
  8. --------------------------------------------------------------------------

  9. PATCH_ID - EJUW
  10. Patch number - 20780171


  11. Preparing to Install Oracle WebLogic Server Patch Set Update 10.3.6.0.12
  12. -----------------------------------------------------------------------

  13. - WebLogic Server Patch Set Update (PSU) can be applied on a per-domain basis
  14.   (or on a more fine-grained basis), Oracle recommends that PSU be applied on an installation-wide basis.
  15.   PSU applied to a WebLogic Server installation using this recommended practice
  16.   affect all domains and servers sharing that installation.
  17. - Login as same "user" with which the component being patched is installed.
  18. - Stop all WebLogic servers.
  19. - Remove any previously applied WebLogic Server Patch Set Update and associated overlay patches


  20. Installing Oracle WebLogic Server Patch Set Update 10.3.6.0.12
  21. -------------------------------------------------------------

  22.  - unzip p20780171_1036_Generic.zip to {MW_HOME}/utils/bsu/cache_dir or any local directory
  23.    
  24.    Note: You must make sure that the target directory for unzip has required write and executable permissions
  25.          for "user" with which the component being patched is installed.

  26.  - Navigate to the {MW_HOME}/utils/bsu directory.
  27.  - Execute bsu.sh -install -patch_download_dir={MW_HOME}/utils/bsu/cache_dir -patchlist={PATCH_ID} -prod_dir={MW_HOME}/{WL_HOME}

  28.    Where, WL_HOME is the path of the WebLogic home

  29.    Reference: BSU Command line interface
  30.               http://docs.oracle.com/cd/E14759_01/doc.32/e14143/commands.htm


  31. Post-Installation Instructions
  32. ------------------------------

  33. a) Restart all WebLogic servers.

  34. b) The following command is a simple way to determine the application of WebLogic Server PSU.

  35.   $ . $WL_HOME/server/bin/setWLSEnv.sh
  36.   $ java weblogic.version

  37. In the following example output, 10.3.6.0.12 is the installed WebLogic Server PSU.

  38.       WebLogic Server 10.3.6.0.12 PSU Patch for BUG20780171


  39. Uninstalling Oracle WebLogic Server Patch Set Update 10.3.6.0.12
  40. ---------------------------------------------------------------

  41.  - Stop all WebLogic Servers
  42.  - Navigate to the {MW_HOME}/utils/bsu directory.
  43.  - Execute bsu.sh -remove -patchlist={PATCH_ID} -prod_dir={MW_HOME}/{WL_HOME}


  44. Post-Uninstallation Instructions
  45. --------------------------------

  46. a) Restart all WebLogic Servers.


  47. Oracle recommends that you see following key notes
  48. --------------------------------------------------

  49. - My Oracle Support NOTE: 1306505.1 Announcing Oracle WebLogic Server PSUs (Patch Set Updates)
  50. https://support.oracle.com/oip/faces/secure/km/DocumentDisplay.jspx?id=1306505.1

  51. - My Oracle Support NOTE: 1470197.1 Master Note on WebLogic Server Patch Set Updates (PSUs)
  52. https://support.oracle.com/oip/faces/secure/km/DocumentDisplay.jspx?id=1470197.1
  53.  
  54. - My Oracle Support NOTE: 1471192.1 - Replacement Patches for WebLogic Server PSU Conflict Resolution
  55. https://support.oracle.com/oip/faces/secure/km/DocumentDisplay.jspx?id=1471192.1

  56. - SSL Authentication Problem Using WebLogic 10.3.6 and 12.1.1 With JDK1.7.0_40 or Higher
  57. https://support.oracle.com/oip/faces/secure/km/DocumentDisplay.jspx?id=1607170.1
  58.  
  59. - Smart Update Applying Patches to Oracle WebLogic Server
  60. http://docs.oracle.com/cd/E14759_01/doc.32/e14143/intro.htm


  61. ==========================================================================
  62. Copyright ?2010, 2011, Oracle and/or its affiliates. All rights reserved.

  63. This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.

  64. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing.

  65. If this software or related documentation is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable:

  66. U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software License (December 2007). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA 94065.

  67. This software is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications which may create a risk of personal injury. If you use this software in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure the safe use of this software. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software in dangerous applications.

  68. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

  69. This software and documentation may provide access to or information on content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services.
  70. ==========================================================================




來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31394774/viewspace-2142526/,如需轉載,請註明出處,否則將追究法律責任。

相關文章