Oracle Sun GlassFish Enterprise Server Stored XSS defects and repair

Source: Internet
Author: User
Tags bug id glassfish

Sense of Security-Security Advisory-SOS-11-009
 
Release Date. 19-Jul-2011
Last Update .-
Vendor Notification Date. 23-Mar-2011
Product. Oracle Sun GlassFish Enterprise
Server
Platform. Java EE
Affected versions. 2.1.1 (v2.1 Patch06) (9.1 _ 02 Patch12 ))
(Build b31g-fcs) verified and possibly
Others
Severity Rating. Medium
Impact. Cookie/credential theft, impersonation,
Loss of confidentiality, client-side
Code execution
Attack Vector. Remote without authentication
Solution Status. Vendor patch
CVE reference. CVE-2011-2260
Oracle Bug ID. 7030596
 
Details.
GlassFish is an open source application server project led by Sun
Microsystems for the Java EE platform. The proprietary version is
Called Sun GlassFish Enterprise Server. GlassFish supports all Java EE
API specifications, such as JDBC, RMI, e-mail, JMS, web services, XML,
Etc, and defines how to coordinate them.
 
Stored:
The log viewer fails to securely output encode logged values. As
Result, an unauthenticated attacker can trigger the application to log
A malicious string by entering the values into the username field. This
Will cause the application to log the incorrect login attempt and
Results in a stored XSS vulnerability. When an administrator logs
The application and views the log, the malicious code will be executed
In the client browser. As an example, navigate:
Http: // [www.2cto.com]: 4848
 
Enter the below into the login field:
'>\"> <Script> alert (3); </script>
When the user views the \ "Search Log Files \" page, the above client-side
Code will be executed in the client browser. The offending script is
Http: // [www.2cto.com]: 4848/logViewer. jsf
 
Reflected:
By modifying the windowTitle or helpFile variables
/Com_sun_webui_jsf/help/helpwindow. jsf it is possible to trigger
Reflected XSS vulnerability. An example is shown below:
/Com_sun_webui_jsf/help/helpwindow. jsf? & WindowTitle = Help + window'> \ ">
<Script> alert (1); </script> &helpFile=commontask.html
/Com_sun_webui_jsf/help/helpwindow. jsf? & WindowTitle = Help + Window &
Helpfileaskcommontask.html '> \ "> <script> alert (1); </script>
 
Solution.
Apply the vendor patch.
 
Discovered.
Sense of Security Labs.
 
About us.
Sense of Security is a leading provider of information
Security and risk management solutions. Our team has expert
Skills in assessment and assurance, strategy and architecture,
And deployment through to ongoing management. We are
Australia's premier application penetration testing firm and
Trusted IT security advisor to counter of the country's largest
Organizations.
 
Sense of Security Pty Ltd
Level 8, 66 King St
Sysydney NSW 2000
AUSTRALIA
 
T: + 61 (0) 2 9290 4444
F: + 61 (0) 2 9290 4455
W: http://www.senseofsecurity.com.au/consulting/penetration-testing
E: info@senseofsecurity.com.au <script type = "text/javascript">
/* <! [CDATA [*/
(Function () {try {var s, a, I, j, r, c, l = document. getElementById ("_ cf_email _"); a = l. className; if (a) {s = ''; r = parseInt (. substr (0, 2), 16); for (j = 2;. length-j; j + = 2) {c = parseInt (. substr (j, 2), 16) ^ r; s + = String. fromCharCode (c);} s = document. createTextNode (s); l. parentNode. replaceChild (s, l) ;}} catch (e ){}})();
/*]> */
</Script>
Twitter: @ ITsecurityAU
 
The latest version of this advisory can be found:
Http://www.senseofsecurity.com.au/advisories/SOS-11-009.pdf
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.