Michael Howard's Spot the security bug problem.

  • Thread starter Thread starter Mugunth
  • Start date Start date
Well, eventually req could wrap around (assuming unchecked), causing an
OutOfRangeException due to -ve index, but...? Nothing obviously security
related, (assuming that everything we need to know is in the question).

Marc
 
I don't know if we really have enough info, but index 0 *appears* to be
skipped.

while (true) {
getRequest();
arr[req] = DateTime.Now;
req++;
}
 
Hello Marc,
Well, eventually req could wrap around (assuming unchecked), causing
an OutOfRangeException due to -ve index, but...? Nothing obviously
security related, (assuming that everything we need to know is in the
question).

That means that if you send it enough requests the app will crash pretty
quickly, which could be seen as a DoS attack. Though I find it a bit far
fetched in the context it is presented.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top