Skip to content

Commit fa030b5

Browse files
committed
improve phishing detection
1 parent 709a0eb commit fa030b5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: js/webview/phishDetector.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ function checkPhishingStatus() {
118118
if (window.location.protocol != "https:" && window.location.protocol != "file:") {
119119
debug_phishing("no https");
120120
phishingScore += 0.15;
121+
if (window.location.protocol == "data:") {
122+
debug_phishing("data: protocol found");
123+
phishingScore += 0.25;
124+
}
121125
}
122126

123127
//penalize long hostnames, since these are often used for phishing
@@ -239,7 +243,7 @@ function checkPhishingStatus() {
239243

240244
if (fa.indexOf("javascript:") != 0 && getRootDomain(aTest.hostname) != getRootDomain(window.location.hostname)) {
241245
debug_phishing("submitting form to xdomain");
242-
phishingScore += 0.66;
246+
phishingScore += 0.7;
243247
}
244248

245249

0 commit comments

Comments
 (0)