Advertisement
Tr3v0r12345

WordPress Advanced Access Manager 2.8.2 File Write / Code Ex

Sep 7th, 2014
704
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. Details
  2. ================
  3. Software: Advanced Access Manager
  4. Version: 2.8.2
  5. Homepage: http://wordpress.org/plugins/advanced-access-manager/
  6. Advisory report: https://security.dxw.com/advisories/advanced-access-manager-allows-admin-users-to-write-arbitrary-text-to-arbitrary-locations-which-could-lead-to-arbitrary-code-execution-etc/
  7. CVE: CVE-2014-6059
  8. CVSS: 6.5 (Medium; AV:N/AC:L/Au:S/C:P/I:P/A:P)
  9.  
  10. Description
  11. ================
  12. Advanced Access Manager allows admin users to write arbitrary files and execute arbitrary php
  13.  
  14. Vulnerability
  15. ================
  16. Advanced Access Manager allows writing arbitrary content to arbitrary files. Depending on the server configuration this could allow arbitrary code execution, overwriting core WordPress files and e.g. blanking wp-config.php. In other configurations this could lead to overwriting files in the uploads directory.
  17.  
  18. Proof of concept
  19. ================
  20.  
  21. Visit http://localhost/wp-admin/admin.php?page=aam-configpress
  22. Press “Save” (this creates the “aam_configpress” option)
  23. Visit http://localhost/wp-admin/options.php
  24. Set “aam_configpress” to “test.php”
  25. Press “Save Changes”
  26. Visit http://localhost/wp-admin/admin.php?page=aam-configpress again
  27. Enter “<?php phpinfo();” into the textarea (without the quotes)
  28. Press “Save”
  29. Visit http://localhost/wp-content/aam/test.php
  30.  
  31. Note that there is no restriction on using “../” in the “aam_configpress” option so depending on server configuration you could create files anywhere on the filesystem.
  32. This attack could be scripted to allow upload of binary files, including executable files.
  33.  
  34. Mitigations
  35. ================
  36. Upgrade to version 2.8.3 or later
  37.  
  38. Disclosure policy
  39. ================
  40. dxw believes in responsible disclosure. Your attention is drawn to our disclosure policy: https://security.dxw.com/disclosure/
  41.  
  42. Please contact us on security@dxw.com to acknowledge this report if you received it via a third party (for example, plugins@wordpress.org) as they generally cannot communicate with us on your behalf.
  43.  
  44. This vulnerability will be published if we do not receive a response to this report with 14 days.
  45.  
  46. Timeline
  47. ================
  48.  
  49. 2014-08-20: Discovered
  50. 2014-09-01: Reported to author via email
  51. 2014-09-01: Requested CVE
  52. 2014-09-01: Developer responded
  53. 2014-09-02: Developer reported the issue fixed
  54. 2014-09-03: Advisory published
  55.  
  56.  
  57.  
  58. Discovered by dxw:
  59. ================
  60. Tom Adams
  61. Please visit security.dxw.com for more information.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement