Hook 函数列表
攻击检测
其中,SQL注入检测点为 execute/executeUpdate/executeQuery/executeBatch/executeBatchInternal/addBatch 方法之一,具体请看我们在github的源代码,这里不在赘述
基线检查
检查内容 | 方法名称 |
---|
数据库连接账号 | com.mysql.jdbc.NonRegisteringDriver.connect() |
| com.mysql.cj.jdbc.NonRegisteringDriver.connect() |
| org.sqlite.JDBC.connect() |
| com.microsoft.sqlserver.jdbc.SQLServerDriver.connect() |
| org.postgresql.Driver.connect() |
| oracle.jdbc.driver.OracleDriver.connect() |
| com.ibm.db2.jcc.DB2Driver.connect() |
服务器启动检测点
用途 | 方法名称 |
---|
Tomcat | org.apache.catalina.startup.Catalina.start() |
Jetty | org.eclipse.jetty.server.Server.doStart() |
JBoss 4 | org.jboss.system.server.ServerImpl.start() |
JBoss 5 | org.jboss.bootstrap.AbstractServerImpl.start() |
JBoss 6 | org.jboss.bootstrap.impl.base.server.AbstractServer.start() |
Resin | com.caucho.server.resin.Resin.initMain() |
WebSphere | org.eclipse.core.launcher.Main.run() |
Tomcat/Jetty/JBoss/Resin/WebSphere 通用
Resin 服务器
用途 | 方法名称 |
---|
preRequest | com.caucho.server.http.HttpRequest.handleRequest() |
| com.caucho.server.http.HttpRequest.handleResume() |
request | com.caucho.server.dispatch.ServletInvocation.service() |
| com.caucho.server.dispatch.ServletInvocation.doResume() |
缓存body | com.caucho.server.connection.ServletInputStreamImpl.read(int) |
| com.caucho.server.connection.ServletInputStreamImpl.read(byte[],int ,int) |
| com.caucho.server.http.ServletInputStreamImpl.read(int) |
| com.caucho.server.http.ServletInputStreamImpl.read(byte[],int ,int) |
HTML注入 | com.caucho.server.connection.AbstractHttpResponse.finish() |
| com.caucho.server.connection.AbstractHttpResponse.finishInvocation() |
| com.caucho.server.http.AbstractHttpResponse.finish() |
| com.caucho.server.http.AbstractHttpResponse.finishInvocation() |
Jetty 服务器
用途 | 方法名称 |
---|
preRequest | org.eclipse.jetty.server.Server.handle() |
request | org.eclipse.jetty.server.handler.HandlerWrapper.handle() |
缓存body | org.eclipse.jetty.server.HttpInput.read(int) |
| org.eclipse.jetty.server.HttpInput.read(byte[],int ,int) |
HTML注入 | org.eclipse.jetty.server.HttpOutput.close() |
WebSphere 服务器
PHP 版本
攻击检测
基线检查