Re:How Hackers Stole 200,000 Citi Accounts Just By Changing ...
by shaydoc on Thursday June 16, 2011 @04:20AM
(#2660488)
Its a basic error.
Tech Architect should be seeing this in milliseconds. Its a total design flaw. Should not be going straight to SQL with just paramters in a querystring, there should at least be authenticated user account verification checking.
Also doesn't say much for the company doing security review, its a basic check.
Furthermore to not have a user/onwer id to join on there (no doubt sql back end) is shameful. I mean I can see it now :
select x
from accounttable
where accountnumber = @val
how about simply :
select x
from accounttable
where accountnumber = @accno
and ownerid = @ownerid
Also doesn't say much for the company doing security review, its a basic check. Furthermore to not have a user/onwer id to join on there (no doubt sql back end) is shameful. I mean I can see it now :
select x from accounttable where accountnumber = @val
how about simply :
select x from accounttable where accountnumber = @accno and ownerid = @ownerid