[Xitami] Imatix Xitami If-Modified-Since Remote Buffer Overflow Vulnerability

Francis Turner francis.turner at gmail.com
Tue Oct 2 17:15:30 CEST 2007


Thanks. Are you going to rebuild the binaries?

PS I assume you are the same Pieter Hintjens who made this award :)
http://press.ffii.org/Press_releases/FFII_awards_Microsoft_%22Best_Campaigner_against_OOXML_Standardization%22_prize

On 10/2/07, Pieter Hintjens <ph at imatix.com> wrote:
> On 10/2/07, Francis Turner <francis.turner at gmail.com> wrote:
>
> > FWIW I can confirm that a perl ver of the explot code does kill my xitami
>
> Sorry for not responding earlier, I missed the original exploit
> report.  Here is a patch that fixes the code (apply to sfl/sflmime.c):
>
> Index: sflmime.c
> ===================================================================
> --- sflmime.c   (revision 10715)
> +++ sflmime.c   (working copy)
> @@ -285,7 +285,8 @@
>          min   = 0,
>          sec   = 0;
>      char
> -        month_name [20],
> +        mime_safe  [50],
> +        month_name [50],
>          buffer     [50],
>          *p_char;
>
> @@ -293,9 +294,13 @@
>      ASSERT (date);
>      ASSERT (time);
>
> +    /*  Copy input to safe string for security                               */
> +    strncpy (mime_safe, mime_string, 49);
> +    mime_safe [50] = 0;
> +
>      /*  Whatever format we're looking at, it will start with weekday.        */
>      /*  Skip to first space.                                                 */
> -    if (!(p_char = strchr (mime_string, ' ')))
> +    if (!(p_char = strchr (mime_safe, ' ')))
>          return FALSE;
>      else
>          while (isspace (*p_char))
>
> --
> Pieter Hintjens
> iMatix Corporation
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>


-- 
http://www.di2.nu/blog.htm
Faber's Fourth Law:
  Necessity is the mother of strange bedfellows.



More information about the Xitami mailing list