Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why PasswordBox is Sealed in Silverlight?

A simple question, but google has no answer on that!
I'm hitting a wall today, because the PasswordBox in Silverlight is Sealed. I have no idea why they do that. Is somebody have an idea on that?

like image 906
Cyril Gandon Avatar asked Dec 16 '22 09:12

Cyril Gandon


1 Answers

Because if you can subclass it, you can introduce vulnerabilities into it.

Some vulnerabilities that might be introduced:

  1. Accessing protected members.
  2. Creating special accessors to protected members.
  3. 3rd Party Injection - someone else subclasses your class to get at the password.
like image 196
Daniel A. White Avatar answered Jan 04 '23 07:01

Daniel A. White