Sep 9, 2017 03:16 PM
(This post was last modified: Sep 9, 2017 08:00 PM by BlackRoas.)
Hi my friend's how are you to all this challenge Number 02 medium
# target #
### Task & Rules ###
1- Union Based && GET Method
2- Your User Name , Version , Database Name , All Tables
3- User Name + Version + Database Name >>> Show them all with table >> View_CMS_User
4- Send Your Query
5- complete injection should be in the same column <<< This condition is optional
6- Don't Use In Your Query >> convert , int , and this method
# Proof #
![[Image: eebdeRI.png]](https://i.imgur.com/eebdeRI.png)
# Solution #
I use select top 1 clause Because it's Windows so it's useful on large tables with thousands of records. Returning a large number of records can impact on performance.
and I used COLLATE SQL_Latin1_General_CP1_CI_AS >>> Because Is a clause that can be applied to a database definition or a column definition to define the collation, or to a character string expression to apply a collation cast so The collate bit follows the column name, basically
More
# target #
PHP Code
<?php
redwoodbank.co.uk/inside-redwood/meet-the-team/staff-detail/?id=5
### Task & Rules ###
1- Union Based && GET Method
2- Your User Name , Version , Database Name , All Tables
3- User Name + Version + Database Name >>> Show them all with table >> View_CMS_User
4- Send Your Query
5- complete injection should be in the same column <<< This condition is optional
6- Don't Use In Your Query >> convert , int , and this method
# Proof #
![[Image: eebdeRI.png]](https://i.imgur.com/eebdeRI.png)
# Solution #
I use select top 1 clause Because it's Windows so it's useful on large tables with thousands of records. Returning a large number of records can impact on performance.
and I used COLLATE SQL_Latin1_General_CP1_CI_AS >>> Because Is a clause that can be applied to a database definition or a column definition to define the collation, or to a character string expression to apply a collation cast so The collate bit follows the column name, basically
More
PHP Code
<?php
https://docs.microsoft.com/en-us/sql/t-sql/statements/collations

