[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #12931 [Tor]: TOR_PT_SERVER_TRANSPORT_OPTIONS are not escaped according to pt-spec.txt
#12931: TOR_PT_SERVER_TRANSPORT_OPTIONS are not escaped according to pt-spec.txt
----------------------------------+----------------------------------
Reporter: yawning | Owner:
Type: defect | Status: new
Priority: minor | Milestone:
Component: Tor | Version: Tor: unspecified
Keywords: pluggable transports | Actual Points:
Parent ID: | Points:
----------------------------------+----------------------------------
pt-spec.txt:
{{{
"TOR_PT_SERVER_TRANSPORT_OPTIONS" -- A semicolon-separated list
of <key>:<value> pairs, where <key> is a transport name and
<value> is a k=v string value with options that are to be passed
to the transport. Colons, semicolons, equal signs and backslashes
MUST be escaped with a backslash. TOR_PT_SERVER_TRANSPORT_OPTIONS
is optional and might not be present in the environment of the
proxy if no options are need to be passed to transports.
}}}
or/transports.c:get_transport_options_for_server_proxy()
{{{
char *escaped_opts = tor_escape_str_for_pt_args(options, ":;\\");
}}}
Equal signs are not escaped. I'm not sure if anything will break with
different behavior.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/12931>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs