mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug #282500 --> if an email contains a form element then flag it as a potential email scam.
This commit is contained in:
parent
2ab6cc6ce9
commit
8113fa5051
@ -69,6 +69,11 @@ function isMsgEmailScam(aUrl)
|
||||
for (var index = 0; index < anchorNodes.length && !isEmailScam; index++)
|
||||
isEmailScam = isPhishingURL(anchorNodes[index], true);
|
||||
|
||||
// if an e-mail contains a form element, then assume the message is a phishing attack.
|
||||
// Legitimate sites should not be using forms inside of e-mail.
|
||||
if (!isEmailScam && msgDocument.getElementsByTagName("form").length > 0)
|
||||
isEmailScam = true;
|
||||
|
||||
// we'll add more checks here as our detector matures....
|
||||
return isEmailScam;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user