ACK-J / Port_Authority

Blocks websites from using javascript to port scan your computer/network and dynamically blocks all LexisNexis endpoints from running their invasive data collection scripts.
GNU General Public License v2.0
129 stars 10 forks source link

Blocked Hosts and Ports Memory Issue #27

Closed ACK-J closed 1 year ago

ACK-J commented 1 year ago

Describe the bug There is a bug in the way hosts and ports are parsed and appended to the blocked_hosts local storage object. It adds additional \\\\\\\ until RAM is filled and the addon crashes.

Below is an example blocked hosts file with the error. You can cause the bug by going to http://samy.pl/webscan/ and then opening up about:debugging in your browser and viewing the extension storage in the storage tab.

blocked_hosts.txt

Expected behavior I believe the issue has to do with how tabs are managed. For example here is the blocked_ports object. See how each tab is numbered. image

Here is the blocked_hosts object. See how there is only a single browser tab number which holds all the data. Also no data should be entered into the blocked_hosts object since no lexis nexis domains were requested. image