Re: Possible format string vulnerability

Philip Tellis <[email protected]> Sat, 22 Aug 2015 17:09:54 -0400
Newsgroups gmane.network.instant-messaging.ayttm.user
Message-ID <CAJ4Gv_aDbnWjHDZhyo6qcfTXntF993k5yEMoZabr8sbV87O6zQ@mail.gmail.com>
--===============3806027988964683996==
Content-Type: multipart/alternative; boundary=089e0160b87a598e84051decce37

--089e0160b87a598e84051decce37
Content-Type: text/plain; charset=UTF-8

I'll look into it... Might also move to github. Makes contributions much
easier.

On 22 Aug 2015 4:51 pm, "Kaleb" <[email protected]> wrote:
>
> Considering the last commit was dated 2011-12-15 03:07:28, I doubt
anything will be changed.
>
> It would be cool if somebody were to pick this back up, but I don't see
it happening.
>
> On Sat, Aug 22, 2015 at 4:24 PM, Kapil Anand <[email protected]>
wrote:
>>
>> Hi,
>>
>> I work in information flow analysis of programs and my analysis gave a
possible warning with respect to format string vulnerability in ayttm. I
had pointed out this behaviour earlier, so wanted to check whether code
base has been modified to fix this vulnerability.
>>
>> Function "http_connect" populates "debug_buff" through "inputline".
"inputline" is populated through an external "recv" command. "debugf" is
passed directly to printf without a format string.
>>
>>
>> Code: (in http_connect)
>>
>> //Populates inputine through recv call
>> ay_recv_line(sockfd,&inputline)
>>
>> //Moves inputline to debug_buff
>> snprintf(debug_buff, sizeof(debug_buff), <%s\n",inputline);
>>
>>
>> //Passes to debug_print a.k.a printf
>> debug_print(debug_buff)
>>
>> Our analysis flagged this behavior.
>>
>> However, we are not sure whether ayttm developers are aware of this
behaviour. This might very well be a false positive. We just wanted to
confirm our analysis.
>>
>> Any response in this regard will be appreciated.
>>
>> Thanks
>>
>> Regards,
>> Kapil
>>
>>
------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Ayttm-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/ayttm-users
>>
>
>
>
------------------------------------------------------------------------------
>
> _______________________________________________
> Ayttm-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ayttm-users
>

--089e0160b87a598e84051decce37
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p dir=3D"ltr">I&#39;ll look into it... Might also move to github. Makes co=
ntributions much easier. <br></p>
<p dir=3D"ltr">On 22 Aug 2015 4:51 pm, &quot;Kaleb&quot; &lt;<a href=3D"mai=
lto:[email protected]">[email protected]</a>&gt; wrote:<br>
&gt;<br>
&gt; Considering the last commit was dated=C2=A02011-12-15 03:07:28, I doub=
t anything will be changed.<br>
&gt;<br>
&gt; It would be cool if somebody were to pick this back up, but I don&#39;=
t see it happening.<br>
&gt;<br>
&gt; On Sat, Aug 22, 2015 at 4:24 PM, Kapil Anand &lt;<a href=3D"mailto:kap=
[email protected]">[email protected]</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I work in information flow analysis of programs and my analysis ga=
ve a possible warning with respect to format string vulnerability in=C2=A0a=
yttm. I had pointed out this behaviour earlier, so wanted to check whether =
code base has been modified to fix this vulnerability.<br>
&gt;&gt;<br>
&gt;&gt; Function &quot;http_connect&quot; populates &quot;debug_buff&quot;=
 through &quot;inputline&quot;. &quot;inputline&quot; is populated through =
an external &quot;recv&quot; command. &quot;debugf&quot; is passed directly=
 to printf without a format string.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Code: (in http_connect)<br>
&gt;&gt;<br>
&gt;&gt; //Populates inputine through recv call<br>
&gt;&gt; ay_recv_line(sockfd,&amp;inputline)<br>
&gt;&gt;<br>
&gt;&gt; //Moves inputline to debug_buff<br>
&gt;&gt; snprintf(debug_buff, sizeof(debug_buff), &lt;%s\n&quot;,inputline)=
;=C2=A0<br>
&gt;&gt; =C2=A0=C2=A0<br>
&gt;&gt;<br>
&gt;&gt; //Passes to debug_print a.k.a printf<br>
&gt;&gt; debug_print(debug_buff)<br>
&gt;&gt;<br>
&gt;&gt; Our analysis flagged this behavior.=C2=A0<br>
&gt;&gt;<br>
&gt;&gt; However, we are not sure whether=C2=A0ayttm=C2=A0developers are aw=
are of this behaviour. This might very well be a false positive. We just wa=
nted to confirm our analysis.<br>
&gt;&gt;<br>
&gt;&gt; Any response in this regard will be appreciated.<br>
&gt;&gt;<br>
&gt;&gt; Thanks<br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt; Kapil<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------------------------------------------=
------------<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Ayttm-users mailing list<br>
&gt;&gt;<a href=3D"mailto:[email protected]"> Ayttm-users@l=
ists.sourceforge.net</a><br>
&gt;&gt;<a href=3D"https://lists.sourceforge.net/lists/listinfo/ayttm-users=
"> https://lists.sourceforge.net/lists/listinfo/ayttm-users</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; ----------------------------------------------------------------------=
--------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Ayttm-users mailing list<br>
&gt;<a href=3D"mailto:[email protected]"> Ayttm-users@lists=
.sourceforge.net</a><br>
&gt;<a href=3D"https://lists.sourceforge.net/lists/listinfo/ayttm-users"> h=
ttps://lists.sourceforge.net/lists/listinfo/ayttm-users</a><br>
&gt;<br>
</p>

--089e0160b87a598e84051decce37--


--===============3806027988964683996==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------

--===============3806027988964683996==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Ayttm-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ayttm-users

--===============3806027988964683996==--