From 657e4c8a9d3dc2c8cb796fbfcf4f8fcb9996f2ea Mon Sep 17 00:00:00 2001 From: rolandog Date: Fri, 1 Apr 2016 23:01:55 +0000 Subject: [PATCH 1/3] Prevented domain name and password leakage This prevents a user from logging in with any password into a tab that was left open and being able to view the last domain name and generated password. --- Site/mpw-js/js/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Site/mpw-js/js/main.js b/Site/mpw-js/js/main.js index 34456762..05fe2c94 100644 --- a/Site/mpw-js/js/main.js +++ b/Site/mpw-js/js/main.js @@ -42,6 +42,8 @@ function update(active, working, error) { $('#userName').focus(); } else { + $('#siteName').value = ""; + $('#sitePassword').textContent = ""; $('#identity').removeClass('active'); $('#site').addClass('active'); $('#siteName').focus(); From ade5c274b180b72fcea97a678f16f7d2eb7f89fd Mon Sep 17 00:00:00 2001 From: Emil Johansson Date: Thu, 20 Oct 2016 22:33:11 +0200 Subject: [PATCH 2/3] Added the option "-selection clip" to the xclip command. This fixes the bugg that the automatic copying to the clipboard accesible with ctrl-V in applications like in e.g firefox is not working in OpenSUSE 41.1 and i suspect in other Linux distros as well. --- MasterPassword/C/mpw.bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MasterPassword/C/mpw.bashrc b/MasterPassword/C/mpw.bashrc index 4fb71d11..a03c4c7c 100644 --- a/MasterPassword/C/mpw.bashrc +++ b/MasterPassword/C/mpw.bashrc @@ -5,7 +5,7 @@ mpw() { if hash pbcopy 2>/dev/null; then pbcopy elif hash xclip 2>/dev/null; then - xclip + xclip -selection clip else cat; echo 2>/dev/null return From 6834f3689f5dfd4e59ad6959961d349c224977ee Mon Sep 17 00:00:00 2001 From: Emil Johansson Date: Sat, 22 Oct 2016 10:26:29 +0200 Subject: [PATCH 3/3] Modified the symlink in mpw_test.xml to point to the new location of the file at ../Java/masterpassword-tests/src/main/resources/mpw_tests.xml Fixes #120 --- MasterPassword/C/mpw_tests.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MasterPassword/C/mpw_tests.xml b/MasterPassword/C/mpw_tests.xml index 8fb4c0a1..3a238932 120000 --- a/MasterPassword/C/mpw_tests.xml +++ b/MasterPassword/C/mpw_tests.xml @@ -1 +1 @@ -../Java/masterpassword-algorithm/src/test/resources/mpw_tests.xml \ No newline at end of file +../Java/masterpassword-tests/src/main/resources/mpw_tests.xml \ No newline at end of file