Hands-On Oracle Express Security by Recx
Author:Recx
Language: eng
Format: epub
Publisher: John Wiley & Sons
Published: 2013-04-01T16:00:00+00:00
DYNAMIC SQL – CURSORS
An area where we’ve seen real issues that have potentially devastating effects is where dynamic SQL is used in a cursor. Consider the following vulnerable construct that iterates through the users of a specified type and outputs a simple HTML table:
declare TYPE cur_typ IS REF CURSOR; l_cur cur_typ; l_sql VARCHAR(256); l_data VARCHAR(256); begin htp.p('<table>'); l_sql := 'select dname from dept where deptno = ' || nvl(:P41_DEPTNO,0); open l_cur for l_sql; loop fetch l_cur into l_data; exit when l_cur%NOTFOUND; htp.p('<tr><td>' || l_data || '</td></tr>'); end loop; close l_cur; htp.p('</table>'); end;
The concatenation of P41_DEPTNO to the dynamic SQL statement leads to an exploitable SQL Injection condition, similar to the EXECUTE IMMEDIATE example in the previous section.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Effective Threat Investigation for SOC Analysts by Yahia Mostafa;(6578)
Practical Memory Forensics by Svetlana Ostrovskaya & Oleg Skulkin(6298)
Machine Learning Security Principles by John Paul Mueller(6271)
Attacking and Exploiting Modern Web Applications by Simone Onofri & Donato Onofri(5944)
Operationalizing Threat Intelligence by Kyle Wilhoit & Joseph Opacki(5905)
Solidity Programming Essentials by Ritesh Modi(4042)
Microsoft 365 Security, Compliance, and Identity Administration by Peter Rising(3681)
Operationalizing Threat Intelligence by Joseph Opacki Kyle Wilhoit(3411)
Future Crimes by Marc Goodman(3351)
Mastering Python for Networking and Security by José Manuel Ortega(3348)
Mastering Azure Security by Mustafa Toroman and Tom Janetscheck(3337)
Blockchain Basics by Daniel Drescher(3305)
Learn Computer Forensics - Second Edition by William Oettinger(3172)
Incident Response with Threat Intelligence by Roberto Martínez(2898)
Mobile App Reverse Engineering by Abhinav Mishra(2886)
Mastering Bitcoin: Programming the Open Blockchain by Andreas M. Antonopoulos(2873)
The Code Book by Simon Singh(2832)
From CIA to APT: An Introduction to Cyber Security by Edward G. Amoroso & Matthew E. Amoroso(2783)
Building a Next-Gen SOC with IBM QRadar: Accelerate your security operations and detect cyber threats effectively by Ashish M Kothekar(2760)
