Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
From 3c0fde94981b025271ffa1788ae425257841bf5a Mon Sep 17 00:00:00 2001
|
||||
From: rofl0r <rofl0r@users.noreply.github.com>
|
||||
Date: Fri, 17 Oct 2025 22:57:39 +0000
|
||||
Subject: [PATCH] reqs: fix integer overflow in port number processing
|
||||
|
||||
closes #586
|
||||
|
||||
CVE: CVE-2025-63938
|
||||
Upstream: https://github.com/tinyproxy/tinyproxy/commit/3c0fde94981b025271ffa1788ae425257841bf5a
|
||||
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
|
||||
---
|
||||
src/reqs.c | 9 ++++++---
|
||||
1 file changed, 6 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/reqs.c b/src/reqs.c
|
||||
index 52135a03..a562c68a 100644
|
||||
--- a/src/reqs.c
|
||||
+++ b/src/reqs.c
|
||||
@@ -174,7 +174,7 @@ static int strip_return_port (char *host)
|
||||
{
|
||||
char *ptr1;
|
||||
char *ptr2;
|
||||
- int port;
|
||||
+ unsigned port;
|
||||
|
||||
ptr1 = strrchr (host, ':');
|
||||
if (ptr1 == NULL)
|
||||
@@ -186,8 +186,11 @@ static int strip_return_port (char *host)
|
||||
return 0;
|
||||
|
||||
*ptr1++ = '\0';
|
||||
- if (sscanf (ptr1, "%d", &port) != 1) /* one conversion required */
|
||||
- return 0;
|
||||
+
|
||||
+ port = atoi(ptr1);
|
||||
+ /* check that port string is in the valid range 1-0xffff) */
|
||||
+ if(strlen(ptr1) > 5 || (port & 0xffff0000)) return 0;
|
||||
+
|
||||
return port;
|
||||
}
|
||||
|
||||
16
package/tinyproxy/Config.in
Normal file
16
package/tinyproxy/Config.in
Normal file
@@ -0,0 +1,16 @@
|
||||
config BR2_PACKAGE_TINYPROXY
|
||||
bool "tinyproxy"
|
||||
depends on BR2_USE_WCHAR
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_USE_MMU # fork()
|
||||
help
|
||||
Tinyproxy is a small, efficient HTTP/SSL proxy daemon released
|
||||
under the GNU General Public License. Tinyproxy is very
|
||||
useful in a small network setting, where a larger proxy would
|
||||
be too resource intensive.
|
||||
|
||||
https://tinyproxy.github.io
|
||||
|
||||
comment "tinyproxy needs a toolchain w/ threads, wchar"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
|
||||
depends on BR2_USE_MMU
|
||||
4
package/tinyproxy/tinyproxy.hash
Normal file
4
package/tinyproxy/tinyproxy.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# From https://github.com/tinyproxy/tinyproxy/releases/tag/1.11.2
|
||||
sha512 008e43b770f946965d5a3fbad1881859e30b66a3a4a97cf9982e63d81139da7a8f23937601b72f32276166cd170008cafec9231b616fc840f05cae3c1329be35 tinyproxy-1.11.2.tar.xz
|
||||
# locally computed
|
||||
sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING
|
||||
17
package/tinyproxy/tinyproxy.mk
Normal file
17
package/tinyproxy/tinyproxy.mk
Normal file
@@ -0,0 +1,17 @@
|
||||
################################################################################
|
||||
#
|
||||
# tinyproxy
|
||||
#
|
||||
################################################################################
|
||||
|
||||
TINYPROXY_VERSION = 1.11.2
|
||||
TINYPROXY_SITE = https://github.com/tinyproxy/tinyproxy/releases/download/$(TINYPROXY_VERSION)
|
||||
TINYPROXY_SOURCE = tinyproxy-$(TINYPROXY_VERSION).tar.xz
|
||||
TINYPROXY_LICENSE = GPL-2.0+
|
||||
TINYPROXY_LICENSE_FILES = COPYING
|
||||
TINYPROXY_CPE_ID_VALID = YES
|
||||
|
||||
# 0001-reqs-fix-integer-overflow-in-port-number-processing.patch
|
||||
TINYPROXY_IGNORE_CVES += CVE-2025-63938
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user