Oracle Consulting Oracle Training Oracle Support Development
Oracle Books
SQL Server Books
IT Books
Job Interview Books
Rampant Horse Books
911 Series
Pedagogue Books

Oracle Software
Write for Rampant
Publish with Rampant
Rampant News
Rampant Authors
Rampant Staff
Oracle News
Oracle Forum
Oracle Tips
Articles by our Authors
Press Releases
SQL Server Books

Oracle 11g Books

Oracle tuning

Oracle training

Oracle support

Remote Oracle


Privacy Policy


  SQL Server Tips by Burleson

Ideas to prevent script injection

The best way to avoid this security issue is to use XP_DISKLOG to log into a text file, instead of running XP_CMDSHELL. Checking the length of the input will prevent attacks that take advantage of truncating the input. Filtering invalid characters will help by not allowing certain keywords as part of the input and if such incidents are recorded it will also work as a forensic tool.

Buffer overflows

This section describes the buffer overflow exploit, how to use the debugger in detail and how to look for security issues in the code.
The most common hacking attack or, at least, the most heard of is the buffer overflow.

There are other techniques: heap overflow, integer overflow, format string exploitation, etc but they are not as "famous".

Poor programming and even poorer testing cause a buffer overflow. The flaw on the code is just sitting there, waiting for a hacker to exploit it. The code will fail to prevent data input from exceeding the allocated buffer size and leaking into the adjacent memory. If effectively exploited it should run arbitrary code sent with the data input.


This XP has one call to function “test” which has one local variable with a fixed length (ten bytes) and there is some limited protection by rejecting input data over twenty bytes of length. However, the buffer in the function is only ten bytes long and it will suffer a buffer overflow.

The above book excerpt is from:

Super SQL Server Systems
Turbocharge Database Performance with C++ External Procedures

ISBN: 0-9761573-2-2
Joseph Gama, P. J. Naughter  

Linux Oracle commands syntax poster

ION Oracle tuning software

Oracle data dictionary reference poster

Oracle Forum

BC Oracle consulting support training

BC remote Oracle DBA   



 Copyright © 1996 -2017 by Burleson. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation. SQL Server® is the registered trademark of Microsoft Corporation. 
Many of the designations used by computer vendors to distinguish their products are claimed as Trademarks

Hit Counter