Skip to content

Instantly share code, notes, and snippets.

@irshadpc
Created May 31, 2017 08:04
Show Gist options
  • Save irshadpc/1cadda315252e2866b35df8107f1bb7d to your computer and use it in GitHub Desktop.
Save irshadpc/1cadda315252e2866b35df8107f1bb7d to your computer and use it in GitHub Desktop.
Sql Injection Vulnerable sample
NSString *uuid = [myConnection getUUID];
NSString *statement = [NSString StringWithFormat:@"SELECT username FROM users
where uuid = '%@'",uuid];
const char *sql = [statement UTF8String];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment