diff --git a/lib/core/agent.py b/lib/core/agent.py index a3c6355d7..c70794a4e 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -47,6 +47,11 @@ class Agent: elif query.startswith("; "): query = query.replace("; ", "", 1) + if Backend.getIdentifiedDbms() in (DBMS.ORACLE,): # non-standard object(s) make problems to a database connector while returned (e.g. XMLTYPE) + _, _, _, _, _, _, fieldsToCastStr, _ = self.getFields(query) + for field in fieldsToCastStr.split(","): + query = query.replace(field, self.nullAndCastField(field)) + if kb.tamperFunctions: for function in kb.tamperFunctions: query = function(payload=query)