On Mon, Jan 12, 2015 at 10:31:32PM -0500, Warren Kumari wrote: > Odd. So I tried it in Safari, and got: > ""Not allowed to use restricted network port" (WebKitErrorDomain:103)"
This is to prevent a species of abuse generally called the 'HTML Form Protocol Attack': http://www.remote.org/jochen/sec/hfpa/hfpa.pdf http://www.kb.cert.org/vuls/id/476267 This technique was used by spammers, who would craft textarea content (via js/onclick(), etc.) to match valid SMTP commands, and direct the submit stream to a user's internal host:25, etc., to generate spam messages from the user's networks. The SMTP protocol was forgiving of the non-valid html-derived portions of the mime stream (500 error), and accepted the attacker's crafted textarea content---pill ads, virus attachments, and other spam. There was a fair amount of this type of spam in '06 or so, but it required enticing local users to interact with a webpage. This could be done, but the technique was less virulent than a simple spamming virus. Other mischief was soon discovered, however, and branded by the security research community as "HFPA". Demonstrations included actions such as deleting mail spools and contacting IRCd servers, etc. Properly branded, with a whitepaper no less, this was now an actual security problem, as opposed to 'just lots of spam and viruses' emanating from user networks. So browser vendors finally responded by restricting what pages browsers may use. That's what you're now measuring with your site. I'm curious about the purpose of your study. I suggest a larger-scale test could be accomplished by a 302 redirect from an http-based botnet sinkhole, forcing tens of thousand of victims (otherwise destined for $SINK:80 or $SINK:443) to reconnect to $SINK:53. This would avoid the browser HFPA restrictions, since most malware just makes use of OS-based http libraries, which are generally not restricted. (And those viruses that don't use stock http libs generally don't bother to implement 301/302 redirects.) This could be used to test, for example, whether victim origin networks perform DPI or otherwise restrict non-DNS traffic over tcp/53. The measured output would be only the loss of the connection. But since bots repeatedly reconnect, the eventual redirection of the user to $SINK:80, post treatment, would let one infer that some network edge/DPI device had interceded for $SINK:53 traffic. Since the bots are passive participants in the study, and it is otherwise impossible to get insights about their network (or even, say, get the users to goddamn patch their machines), the only measured effect would be the connect/no-connect patterns to successive 302s to $SINK:53 and $SINK:80, pre- and post-treatment. Since many victims are present in some networks, one could respond selectively with 302s for $SINK:53 and $SINK:80 per CIDR. One might break victims into a solomon four group study set, randomized within each containing prefix into one of four groups. These groups would receive either $SINK:53 or $SINK:80 treatments, three reconnection time periods (t0, t1, t2) carefully chosen to avoid DHCP churn events. (Say, if |t2 - t0| < 2 hours, there's low risk of DHCP-induced loss of subsequent connections). t0 t1 t2 A: $SINK:80-pre, $SINK:53-test, $SINK:80-post B: $SINK:80-pre, $SINK:80-post C: $SINK:53-test $SINK:80-post D: $SINK:80-post (Blanks are 404 events, most likely). The study group design would allow one to reason about network filtration of non-DNS traffic over tcp/53, even without the ability to contact large numbers of victims to inquire about their network policies (of which they likely know little), and also reason about other "what if" confounding factors. (E.g., no doubt some traffic will be stopped, since it originates from malware attempting to reach the $SINK, and the solomon groups will let one measure this directly.) Finally, since this only characterizes tcp/53 connections, one could reason about corresponding udp/53 management by focusing on those hosts using local (defined as "in-prefix") DNS recursives, uniquely noted by randomizing the child labels under $SINK, e.g., $HASH(host).$SINK, similar to sinkdns and other dnspath measurement projects. The authority for the $SINK child zones could be configured to only respond on tcp/53 (e.g., a CNAME with no additional fields, and TC=1, perhaps, to invite tcp/53 retries). For each such variation, one would create yet another solomon grouping, within each test group noted above. (With millions of infected hosts on the Internet, there's no danger of small sample sizes for large numbers of test factors.) But what are you trying to measure? Since this mailing list is about DNS privacy, I assume you're trying to measure policy frameworks/filters used by various networks---filters and such. If so, you might begin with a survey of vendor appliances that enable such policies. It might be easier to survey for such devices, or iteratively discover cache records uniquely related to their operation/update. I don't think HFPA browser port restrictions are a type of censorship (though they did break some banks in the early days.) -- David Dagon [email protected] D970 6D9E E500 E877 B1E3 D3F8 5937 48DC 0FDC E717 _______________________________________________ dns-privacy mailing list [email protected] https://www.ietf.org/mailman/listinfo/dns-privacy
