Apple Airport Wireless Products: Promiscuous FTP PORT Allowed in FTP Proxy Provides Security Bypass Mar 04 2010 05:19PM
Sabahattin Gucukoglu (mail sabahattin-gucukoglu com)
The FTP proxy used in Apple's Airport Express, Airport Extreme, Time Capsule and possibly elsewhere doesn't check the client provided address and port given by the FTP PORT command against the IP address of the connecting client, or against the use of privileged ports. (The FTP PORT command is used by a FTP client to tell an FTP server which address and data port to initiate the data connection on.) The FTP proxy is used to provide assistance to clients operating in NAT environments served by the Apple products. FTP servers running behind a NAT with this assistance can have addresses in the command channel rewritten for them so that external clients can reach them when operating in passive mode. The ALG operates as a proxy server, assuming responsibility for connections to the FTP server, and must therefore also handle and modify rewriting of the PORT command. It looks like it might be ftp-proxy from PF.

The effect of this problem is to allow anybody with access to the FTP port forwarded on the exterior side of an Apple Airport product that offers NAT to internal clients, which for a publicly-accessible FTP server is the big bad world, to induce an FTP server operating behind a NAT to send data to arbitrary addresses and ports. This is true even if the FTP server is configured to operate more securely, since it sees connections from the NAT's exterior interface, not the connecting client. This is useful for bouncing anonymous port scans off the victim NAT, or if data is available or can be written to and then read from the FTP server, potentially for anonymous attacks, spam, news floods, and other such badness. Any trust relationship and/or security implied or assumed by a NAT is also gone, since the PORT command can also specify private addresses, inside the NAT, for victimisation. Best of all, the gateway itself makes no log entry concerning FTP connections that have been run through the proxy.

Workarounds: do not use FTP; do not trigger the use of the ALG (FTP proxy) by explicitly using ports other than 21 on the inbound port mapping. If you can't do those things, you can avoid the worst effects of this attack by disabling FTP uploads that can later be downloaded by anonymous users.

Apple likes to keep secrets for the protection of its customers. Since the reasonable release of this advisory removes that protection, confidential information vouchsafed to me can be safely disclosed with no ill effects. Apple has a fix, and according to its last seemingly automatic template message, they are still testing it and do not know precisely when it will be released. This is confidential information. DO NOT DISCLOSE!

Advisory history:

Apple were notified on 4 Dec 2009, and responded promptly. They were given 60 days initially.

Apple contacted me on 7 January 2010 to ask who to give credit to. Personal attribution.

On 18 Jan I contacted Apple, advising that they'd passed the six weeks milestone.

On 25 January I contacted Apple, advising that they'd passed the 7 weeks milestone. They volunteered confidential information.

On 4 Feb, I urged Apple to tell me when a fix was to be issued, approximately. They'd had their two months, and release cycles happen, but I wanted news within a fortnight. Didn't they understand that their customers were at easy risk, and that keeping it quiet didn't change that? By today - that is, by about 3 months - they would certainly be beyond reconciliation. They volunteered confidential information.

On 4 March, I got bored of waiting, and made this announcement. The fix is not out; apply workarounds, or trust to the fates and the security of your network.

Cheers,
Sabahattin

0? *?H?÷
 ?0?1 0 +0? *?H?÷
 ?²0?®0?? 0
 *?H?÷
0?1 0 UIL10U

StartCom Ltd.1+0)U "Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CA0
100214191803Z
110216091057Z0?1 0U
147846-SrPtoWGQRLa11ETD10U
Persona Not Validated1)0'U StartCom Free Certificate Member1,0* *?H?÷
 mail (at) sabahattin-gucukoglu (dot) com0 [email concealed]?"0
 *?H?÷
?0?
?´¦®x>=Øp*HãÝVY-±yj%NQîÂnè¾g?Á?Ö¨ÆXiY9£*[?'H¶y
®½ó1GPQ[¯<-L\3?*å䥮ΩËƹ??8À?7eoY?Ül\¹D¤?OÕ}y®ßûÃM|ê¹??if? ºÐpÔ?s\?"?åPÈ:Oè` ǾĹGÎG)îøÍ?[?SìjÄO~ZJ5?~WdHú?ô¡yøeµ>n¾?­zph¨{Y{ßÍQ}é,?uOeC?ÍÙÑ;
2^¾Ü
°E ±k[ñ?å??õ&6DÒÌü?Ða,2o۝ïWÑÎq£?0?0 U00 U°0U%0++0Uö¼up??k>_
?¬²ÿÿâ??¿?â0U#0?Srí??àÚË\|~?5NòÔ¸Q?0(U!0mail@sabahattin
-gucukoglu.com0?BU ?90?50?1 +µ70? 0.+"http://www.startssl.com/policy.pdf04+(http://www
.startssl.com/intermediate.pdf0·+0ª0
StartCom Ltd.0?Limited Liability, see section *Legal Limitations* of the StartCom Certification Authority Policy available at http://www.startssl.com/policy.pdf0cU\0Z0+ ) '?%http://www.startssl
.com/crtu1-crl.crl0+ ) '?%http://crl.startssl.com/crtu1-crl.crl0?+
009+0?-http://ocsp.startssl.com/sub/class1/client/ca0B
+0?6http://www.startssl.com/certs/sub.class1.client.ca.crt0#U
0?http://www.startssl.com/0
 *?H?÷
?é?4
èn?Ôihkàq ±
htwؼ2 ¯g ,c¯7¶!f7¨bÅF=i¨&ïQÕ7åóDBÍ|Å<DdùzÙ½H??k*ôMÏ0aËjNJT<[?wÐÌ?'?½Ù.Ç
7Ý)q®ÅÎçO]?»ÚÕÅÒ?þA Ô1.êF?ÉoøËC?Ó°c5?ä  ??GWCÅþ§©´î,K¤f®ðÉýI?£ý×ÏòÁWÔÐîãÓ梺Sg¤aêëC c[õrٍ%Ótöh¦\©?¡Î\øÌÌ?BWàµ? S???7m<ûã?òÅòT?ßÑع´ ¦Dê&u??Ì¥?U1?o0?k
0?0?1 0 UIL10U

StartCom Ltd.1+0)U "Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CA0 + ?¯0 *?H?÷
 1  *?H?÷
0 *?H?÷
 1
100304171915Z0# *?H?÷
 1P³*FÒ?ñ3}xÎÍÅM0¥ +?71?0?0?1 0 UIL10U

StartCom Ltd.1+0)U "Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CA0§ *?H?÷
  1? ?0?1 0 UIL10U

StartCom Ltd.1+0)U "Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CA0
 *?H?÷
?eU`Ç$IfáAÌOæwÙB9·u¿WVÄ/Hh@Ãaüݬ<?ª6¯ÿ?¥6?Iª¢§Ú
·?õñGa^±°a?ß <§Oض]?ÿõ?÷Ö?ʺ=gæ¡Ø¢?'@¸ j?L4I~ª DÛ\"ëi?¿?¡8±óæ[²ïA'¿??Ø¡:öÀ2ìùóòöâ?XEè%s$²#J\{??%]:,ë÷àAþ×m<ؼ¨ eã¼?XÇû?kõÞ¥O>þ?5·l?TÙ1îC$ê]GÞ&´©£ ??üØfGO>òR¼%DÎé¹Ôڍ÷1îæ
ÆE?ĨNâ3¦

[ reply ]


 

Privacy Statement
Copyright 2010, SecurityFocus