FCLT#54901 Computest Pentest 4.2.4
svn path=/Website/trunk/; revision=39406
This commit is contained in:
@@ -88,9 +88,16 @@ function SafeExec( sql, catchErrors ) {
|
||||
else
|
||||
__Log("Foutcode: " + _LastFacError.faccode + " niet gevonden in fac_message");
|
||||
}
|
||||
// only for messages that start with ORA-ddddd:
|
||||
if (RegExp(/^ORA-\d*:\s/).test(_LastFacError.friendlyMsg)) // prevent hacker-usable ORA- information in friendlyMsg
|
||||
{
|
||||
_LastFacError.friendlyMsg = _LastFacError.friendlyMsg.replace(/^ORA-\d*:\s/,"").replace(/\"{1}\w*\.{0,1}\w*\"{1}.{0,1}|\({1}\w*\.{0,1}\w*\){1}.{0,1}/g,"");
|
||||
// _____________ _____________________________ _____________________________
|
||||
// remove string "ORA-ddddd: " | | |
|
||||
// | |
|
||||
// remove strings with db fields eg "COMP_TEST"."INS_SRTKENMERK"."INS_SRTKENMERKTYPE" | |
|
||||
// |
|
||||
// remove strings with constraint/trigger names enclosed in Parentheses eg (INS_T_INS_SRTKENMERK_B_IU) |
|
||||
}
|
||||
if (!knownError)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user