summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/SECURITY
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/dietlibc/SECURITY')
-rw-r--r--mdk-stage1/dietlibc/SECURITY13
1 files changed, 13 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/SECURITY b/mdk-stage1/dietlibc/SECURITY
new file mode 100644
index 000000000..67debc6e7
--- /dev/null
+++ b/mdk-stage1/dietlibc/SECURITY
@@ -0,0 +1,13 @@
+The diet libc was written with small code and embedded devices in mind,
+not with security for network servers.
+
+Of course we still try to avoid buffer overflows, but there are some
+parts of the code where tradeoffs have been made. This file is meant to
+document them.
+
+ 1. The DNS routines do not check whether the answer came from the IP
+ of the DNS server. The rationale is that people who can sniff the
+ network to find out the query, source port and DNS sequence number
+ can also spoof DNS packets to appear to come from the server we
+ asked, so it does not actually increase security to have that
+ check.