This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 6d898e0c1726afa9cb47e0835202e69d36c2d059
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed Nov 11 19:36:54 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Thu Nov 12 17:36:16 2026 +0000

    avformat/http: reject CR and LF in the hostname
    
    Fixes: CRLF injection
    Fixes: eiIHGT2jJznc
    Fixes: proxy_host_crlf_poc.py
    CRLF injection Replicated through UnModified FFmpeg with a local TCP 
listener
    
    Found during triage of the security report iUFdqPjbigVZ (ZDI-CAN-35984)
---
 libavformat/http.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/http.c b/libavformat/http.c
index 3551680d98..2a4481da59 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -267,6 +267,8 @@ static int http_open_cnx_internal(URLContext *h, 
AVDictionary **options)
     av_url_split(proto, sizeof(proto), auth, sizeof(auth),
                  hostname, sizeof(hostname), &port,
                  path1, sizeof(path1), s->location);
+    if (strpbrk(hostname, "\r\n"))
+        return AVERROR(EINVAL);
 
     av_freep(&s->host);
     s->host = av_strdup(hostname);

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to