Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 731037 Details for
Bug 947581
CVE-2013-1912 haproxy: rewrite rules flaw can lead to arbitrary code execution
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
haproxy-CVE-2013-1912-request-buffers.patch
haproxy-CVE-2013-1912-request-buffers.patch (text/plain), 1.80 KB, created by
Kurt Seifried
on 2013-04-03 03:44:59 UTC
(
hide
)
Description:
haproxy-CVE-2013-1912-request-buffers.patch
Filename:
MIME Type:
Creator:
Kurt Seifried
Created:
2013-04-03 03:44:59 UTC
Size:
1.80 KB
patch
obsolete
>diff --git a/src/proto_http.c b/src/proto_http.c >index a52c038..a768eb5 100644 (file) >--- a/src/proto_http.c >+++ b/src/proto_http.c >@@ -8347,6 +8347,14 @@ acl_fetch_proto_http(struct proxy *px, struct session *s, void *l7, int dir, > return 1; > } > >+ /* If the buffer does not leave enough free space at the end, >+ * we must first realign it. >+ */ >+ if (unlikely(req->lr > req->data && >+ (req->r < req->lr || req->r > req->data + req->size - global.tune.maxrewrite)) && >+ (req->l <= req->size - global.tune.maxrewrite)) >+ http_buffer_heavy_realign(req, msg); >+ > /* Try to decode HTTP request */ > if (likely(req->lr < req->r)) > http_msg_analyzer(req, msg, &txn->hdr_idx); >@@ -8364,6 +8372,20 @@ acl_fetch_proto_http(struct proxy *px, struct session *s, void *l7, int dir, > /* OK we got a valid HTTP request. We have some minor preparation to > * perform so that further checks can rely on HTTP tests. > */ >+ >+ /* If the request was parsed but was too large, we must absolutely >+ * return an error so that it is not processed. At the moment this >+ * cannot happen, but if the parsers are to change in the future, >+ * we want this check to be maintained. >+ */ >+ if (unlikely(req->lr > req->data && >+ (req->r < req->lr || req->l > req->size - global.tune.maxrewrite || >+ req->r > req->data + req->size - global.tune.maxrewrite))) { >+ msg->msg_state = HTTP_MSG_ERROR; >+ test->flags |= ACL_TEST_F_SET_RES_PASS; >+ return 1; >+ } >+ > txn->meth = find_http_meth(msg->sol, msg->sl.rq.m_l); > if (txn->meth == HTTP_METH_GET || txn->meth == HTTP_METH_HEAD) > s->flags |= SN_REDIRECTABLE; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 947581
: 731037