Lab12 SEED 2.0 SQL Injection Attack Lab Part II

Published: 01 December 2021
on channel: 潜龙勿用
10,299
like

Covers Task 3&4. There is unclarity in expaining the SQL update statement injection attack.

Pay attention to the line numbers of the SQL statements of unsafe_home.php and unsafe_edit_backend.php in the editor, it can be noticed that:
1. The SQL select statements in unsafe_home.php spans three lines
2. The SQL update statements in unsafe_edit_backend.php wrapped into three lines, however from the line number, we can see it occupies only ONE line, i.e 'where ID=$id' is in the comment when # is injected in the nickname.

THE ERROR IN THE DEMO: Alice leaked into the nickname of everyone is when changing Alice's salary the demo injection is "Alice',salary=100000 #", no where statement is setup since the original 'where ID=$id' is in the comment, i.e. there is NO condition. So everyone's nickname is changed to be Alice and salary to be 100000. The right inject in the nickname textbox could be:

', salary=10000 where name='Alice' #

https://github.com/ufidon/its450/tree...


Watch video Lab12 SEED 2.0 SQL Injection Attack Lab Part II online without registration, duration hours minute second in high quality. This video was added by user 潜龙勿用 01 December 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 10,29 once and liked it lik people.