Home:ALL Converter>SQl injection getting current user and database priv

SQl injection getting current user and database priv

Ask Time:2015-04-26T05:16:34         Author:KEVIN

Json Formatter

I am doing a tutorial a lab on SQL Injection.

I am stuck at retrieving the username of the current user and the priv it has.

I tried Select user FROM dual, select current_user. In SQLPlus, to get current user I will type

SQL> show user.

Question being asked: 1. Use a SQL Injection string in the Search field to get the name of the database user that the application is connecting to the database with. 2. Use a SQL Injection string in the Search field to get the system privileges granted to the user that the application is connecting to the database with.

Please help. Thanks

Author:KEVIN,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/29870843/sql-injection-getting-current-user-and-database-priv
yy