- What is an example of an SQL injection attack for compromising the database? 
- What classes of SQL injection attacks cannot be prevented by the use of bind variables and why not? 
- How do bind variables help in preventing SQL injection attacks? 
            Asked
            
        
        
            Active
            
        
            Viewed 1,970 times
        
    1
            
            
         
    
    
        Carl
        
- 937
- 10
- 21
 
    
    
        user1978333
        
- 127
- 6
- 
                    1http://en.wikipedia.org/wiki/SQL_injection – Aug 14 '13 at 01:37
2 Answers
3
            
            
        - http://xkcd.com/327/
- Speaking of native prepared statements - all the query literals which aren't supported (i.e. everything but simple strings and numbers) are obviously vulnerable, when not hardcoded.
- https://stackoverflow.com/a/8265319/285587
 
    
    
        Community
        
- 1
- 1
 
    
    
        Your Common Sense
        
- 156,878
- 40
- 214
- 345
0
            
            
        1.:
Here's an example from the real world:
https://find-and-update.company-information.service.gov.uk/company/10542519
Since the company is still listed the attack seems to be unsuccessful as yet, however, in the case the injection succeeds in the future, I'll also include a screenshot.
 
    
    
        Carl
        
- 937
- 10
- 21
