1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-dev] About syslinux & libpng
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20About%20syslinux%20%26%20libpng&In-Reply-To=%3C1317650316.2489.13.camel%40akroma.ephaone.org%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="008618.html">
<LINK REL="Next" HREF="008619.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] About syslinux & libpng</H1>
<B>Michael Scherer</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20About%20syslinux%20%26%20libpng&In-Reply-To=%3C1317650316.2489.13.camel%40akroma.ephaone.org%3E"
TITLE="[Mageia-dev] About syslinux & libpng">misc at zarb.org
</A><BR>
<I>Mon Oct 3 15:58:36 CEST 2011</I>
<P><UL>
<LI>Previous message: <A HREF="008618.html">[Mageia-dev] freeglut vs. mesa (devel requires problem)
</A></li>
<LI>Next message: <A HREF="008619.html">[Mageia-dev] About syslinux & libpng
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#8613">[ date ]</a>
<a href="thread.html#8613">[ thread ]</a>
<a href="subject.html#8613">[ subject ]</a>
<a href="author.html#8613">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Le jeudi 29 septembre 2011 à 20:41 +0200, Erwan Velu a écrit :
><i> Le 28/09/2011 22:13, D.Morgan a écrit :
</I>><i> > On Wed, Sep 28, 2011 at 9:56 PM, Erwan Velu<<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">erwanaliasr1 at gmail.com</A>> wrote:
</I>><i> >> I'm currently updating Syslinux 4.04 and I'm currently facing a trouble as,
</I>><i> >> historically speaking, we do remove the included libpng by the system one.
</I>><i> >>
</I>><i> >> The compilation process fails. I was wondering if we really consider
</I>><i> >> replacing the libpng of syslinux as a security issue.
</I>><i> >>
</I>><i> >> Sec team ? What's your opinion on it ?
</I>><i> >>
</I>><i> >> Cheers,
</I>><i> >>
</I>><i> > hi,
</I>><i> >
</I>><i> > i take my security hat on, we prefer when possible when we use the system libs.
</I>><i> > i have not looked but which libpng is included ?
</I>><i>
</I>><i> It take the libpng-source to replace the current syslinux code.
</I>><i>
</I>><i> The point is syslinux is a bootloader that obviously don't share libs
</I>><i> with the rest of the system.
</I>><i> Considering that we can attack the bootloader via a picture means you
</I>><i> compromized the picture. If you can change the picture located at /boot,
</I>><i> means that you can compromize the booting parameters too.
</I>
No, that's not the way it work.
The problem by bundling libpng is the following :
- imagine there is a security issue in libpng ( like it did in the past,
and like it happened on libz, or others ). Let's suppose also the
problem is a simple buffer overflow. So using this buffer overflow,
someone reading a image would trigger the error, who could be crafted to
erase the stack, and inject code in the process.
So if the error is not fixed, I can simply say on irc : "oh, here is a
picture of a cute duck on <A HREF="http://example.org/~misc/duck.png">http://example.org/~misc/duck.png</A>". You
download, you execute my code, you have lost.
But since the libpng would be fixed, this would not work. Except that we
cannot garantee that it is fixed everywhere.
Except if I start to replace this by "here is a nice syslinux boot image
with a duck". And then my code is run by syslinux, just because someone
took my png picture.
So no, bundling is not without causing trouble.
><i> So if we take this road of removing bootloader's libs, shall we also
</I>><i> remove the jpeg/gz/gcc/... libs too, and maybe for other bootloaders too ?
</I>
><i> I do understand the need for the application that runs under linux...
</I>><i> but about the bootloaders...
</I>
Unless I am wrong, a bootloader run on ring 0 or can even ( like xen )
be used to run the kernel in a specific separate memory space ( ie,
virtualisation ). This could open a whole new range of problem ( like
the Blue Pill concept code published 5 years ago by Joanna Rutkowska )
So I think that bootloader requires more consideration than regular
application.
><i> What's your thoughts about it ?
</I>><i> Would you agree on keep syslinux untouched regarding the png lib ?
</I>
For reasons explained before, I would rather disagree.
--
Michael Scherer
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="008618.html">[Mageia-dev] freeglut vs. mesa (devel requires problem)
</A></li>
<LI>Next message: <A HREF="008619.html">[Mageia-dev] About syslinux & libpng
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#8613">[ date ]</a>
<a href="thread.html#8613">[ thread ]</a>
<a href="subject.html#8613">[ subject ]</a>
<a href="author.html#8613">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>
|