Re: Tomcat Virtual Host to prevent Improper-Input-Handling attack

2021-09-13 Thread Pradeep
data.com/portal/ticket/list?offset=10_header=host Currently it returns 302 basically redirecting invalid host which is not right. I found this link , solution recommended by Tomcat team "Andre". https://stackoverflow.com/questions/44054591/tomcat-virtual-host-to-prevent-improper-input

Re: Tomcat Virtual Host to prevent Improper-Input-Handling attack

2021-09-13 Thread Christopher Schultz
Pradeep, On 9/13/21 09:35, Pradeep wrote: I am using Tomcat 7.0.57, I can't change the Tomcat version now. Running my previous "forge" file (with GET http://www.microsoft.com/, the the forged Host header) against Tomcat 7.0.57: $ nc localhost 8080 < forge HTTP/1.1 200 OK Server:

Re: Tomcat Virtual Host to prevent Improper-Input-Handling attack

2021-09-13 Thread Christopher Schultz
Pradeep, On 9/13/21 09:35, Pradeep wrote: Hi Chris, I am using Tomcat 7.0.57, I can't change the Tomcat version now. I tried adding Virtual Host with RemotrHostValve to allow list of hosts but still no luck. This is because you are trying to block the client by their identity (like

Re: Tomcat Virtual Host to prevent Improper-Input-Handling attack

2021-09-13 Thread Pradeep
Hi Chris, I am using Tomcat 7.0.57, I can't change the Tomcat version now. I tried adding Virtual Host with RemotrHostValve to allow list of hosts but still no luck. Regards, Pradeep On Mon, 13 Sep 2021, 2:28 pm Christopher Schultz, < ch...@christopherschultz.net> wrote: > Pradeep, > > On

Re: Tomcat Virtual Host to prevent Improper-Input-Handling attack

2021-09-13 Thread Christopher Schultz
Pradeep, On 9/10/21 17:38, Pradeep wrote: My application is HTTPS not HTTP and now one of the application security platforms WhitHatSec raised this vulnerability issue. I tried to reproduce your "attack" on Tomcat 8.5.59, like this: $ cat forge GET www.microsoft.com/ HTTP/1.1 Host:

Re: Tomcat Virtual Host to prevent Improper-Input-Handling attack

2021-09-10 Thread Pradeep
Hi Chris, My application is HTTPS not HTTP and now one of the application security platforms WhitHatSec raised this vulnerability issue. I tried the above configuration mentioned but no luck but this configuration advised in Apache website

Re: Tomcat Virtual Host to prevent Improper-Input-Handling attack

2021-09-10 Thread Christopher Schultz
Pradeep, On 9/10/21 06:19, Pradeep wrote: Hi Team, I need your help to fix HTTP Host header attacks. I'm currently in the process of trying to fix a site vulnerability, basically it is one type of the "Improper Input Handling" attack. Let's say my website is www.mywebsite.com and there is

Tomcat Virtual Host to prevent Improper-Input-Handling attack

2021-09-10 Thread Pradeep
Hi Team, I need your help to fix HTTP Host header attacks. I'm currently in the process of trying to fix a site vulnerability, basically it is one type of the "Improper Input Handling" attack. Let's say my website is www.mywebsite.com and there is hacker's website www.hacker.com Whenever there

Re: Question about Tomcat Virtual Host to prevent Improper-Input-Handling attack

2017-05-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 5/22/17 3:19 PM, André Warnier (tomcat) wrote: > On 22.05.2017 20:35, Cai, Charles [COMRES/RTC/RTC] wrote: >> Here attached is my server.xml host configure: >> _

RE: Question about Tomcat Virtual Host to prevent Improper-Input-Handling attack

2017-05-23 Thread Cai, Charles [COMRES/RTC/RTC]
Charles Cai | T +1 440 329 4888 -Original Message- From: André Warnier (tomcat) [mailto:a...@ice-sa.com] Sent: Monday, May 22, 2017 3:19 PM To: users@tomcat.apache.org Subject: Re: Question about Tomcat Virtual Host to prevent Improper-Input-Handling attack On 22.05.2017 20:35, Cai

Re: Question about Tomcat Virtual Host to prevent Improper-Input-Handling attack

2017-05-22 Thread tomcat
or the "defaultlocalhost" Host, and once for the "www.mywebsite.com" Host. Thank you in advance. More references about the attack here : http://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html http://projects.webappsec.org/w/page/13246933/Improper%20Inp

Question about Tomcat Virtual Host to prevent Improper-Input-Handling attack

2017-05-22 Thread Cai, Charles [COMRES/RTC/RTC]
ost on stackoverflow: https://stackoverflow.com/questions/44054591/tomcat-virtual-host-to-prevent-improper-input-handling-attack Charles Cai | Web Application Developer | RIDGID Emerson Commercial & Residential Solutions |

Tomcat virtual host shows blank page

2014-07-24 Thread Arya Farzan
Hello I also asked this on Stackoverflow but no one has commented or answered. I've been trying to configure tomcat for multiple domains and everything I have tried was unsuccessful. I added this to /etc/tomcat7/server.xml Host name=www.mysite.com appBase=webapps/mysite

Re: Tomcat virtual host shows blank page

2014-07-24 Thread Jordan Michaels
Hi Arya, Are you using a web server like Apache in front of Tomcat, or are you hitting the Tomcat port directly? This will tell us if the problem is somewhere in your connector setup or not. Any clues in your catalina.out log file? Warm Regards, Jordan Michaels On 07/24/2014 06:03 PM, Arya

Re: Tomcat virtual host shows blank page

2014-07-24 Thread Igal Sapir
Check with view source on the blank page and see if you get anything there On Jul 24, 2014 6:16 PM, Jordan Michaels jor...@viviotech.net wrote: Hi Arya, Are you using a web server like Apache in front of Tomcat, or are you hitting the Tomcat port directly? This will tell us if the problem is

Re: Tomcat virtual host shows blank page

2014-07-24 Thread Arya Farzan
Hi Jordan I am using Tomcat by itself. It is pretty much a default installation using apt-get on Debian. The only changes I made are: I changed the port from 8080 to port 80 And I changed AUTHBIND=no to AUTHBIND=yes On Thu, Jul 24, 2014 at 8:16 PM, Jordan Michaels jor...@viviotech.net wrote:

Re: Tomcat virtual host shows blank page

2014-07-24 Thread Arya Farzan
I just tried this with IE and it says The webpage cannot be found in google chrome source is 100% blank On Thu, Jul 24, 2014 at 8:20 PM, Igal Sapir i...@getrailo.org wrote: Check with view source on the blank page and see if you get anything there On Jul 24, 2014 6:16 PM, Jordan Michaels

Re: Tomcat virtual host shows blank page

2014-07-24 Thread Igal @ getRailo.org
I prefer to use Context/docBase instead of Host/appBase try this: Host name=www.mysite.com Aliasmysite.com/Alias Context path= docBase=/var/lib/tomcat7/webapps/mysite / /Host On 7/24/2014 6:28 PM, Arya Farzan wrote: I just tried this with IE and it says The webpage cannot be found

Re: Tomcat virtual host shows blank page

2014-07-24 Thread Arya Farzan
Thank you. I changed it to your example and now it's working On Thu, Jul 24, 2014 at 8:35 PM, Igal @ getRailo.org i...@getrailo.org wrote: I prefer to use Context/docBase instead of Host/appBase try this: Host name=www.mysite.com Aliasmysite.com/Alias Context path=

Re: Tomcat virtual host shows blank page

2014-07-24 Thread Hassan Schroeder
On Thu, Jul 24, 2014 at 6:25 PM, Arya Farzan arya6...@gmail.com wrote: I am using Tomcat by itself. It is pretty much a default installation using apt-get on Debian. Error #1 - dump that and install a real Tomcat. I changed the port from 8080 to port 80 Error #2 - don't run Tomcat as root;

tomcat virtual host or directory

2009-05-29 Thread gnix infosoft noida
How tio configure virtual host in tomcat 5.5 -- View this message in context: http://www.nabble.com/tomcat-virtual-host-or-directory-tp23780270p23780270.html Sent from the Tomcat - User mailing list archive at Nabble.com

RE: tomcat virtual host or directory

2009-05-29 Thread Caldarale, Charles R
From: gnix infosoft noida [mailto:garg.may...@gmail.com] Subject: tomcat virtual host or directory How tio configure virtual host in tomcat 5.5 Did you try to look at the Tomcat doc before posting? http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html - Chuck

Re: tomcat virtual host

2008-11-21 Thread mtail
: tomcat virtual host Caldarale, Charles R wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: tomcat virtual host status, or does something else happen? Is the DNS name mysvn defined on the machine your browser is running on? Internet Explorer could not display this web

RE: tomcat virtual host

2008-11-21 Thread Martin Gainty
] To: users@tomcat.apache.org Subject: Re: tomcat virtual host Hi André and every body, Thank you very mutch for the details:)) Tail - Mail Original - De: André Warnier [EMAIL PROTECTED] À: Tomcat Users List users@tomcat.apache.org Envoyé: Jeudi 20 Novembre 2008 22:44:34 GMT

tomcat virtual host

2008-11-20 Thread mtail
Hi, I deployed my webapp svn.war on webapps directory of tomcat 6. I configured localy a virtual host with tomcat 6, but it does not work. This url works : http://localhost:8080/svn/ But when i use the virtual host, it does not works : http://mysvn:8080/ This is a part of server.xml : ...

RE: tomcat virtual host

2008-11-20 Thread Peter Crowther
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] I deployed my webapp svn.war on webapps directory of tomcat 6. I configured localy a virtual host with tomcat 6, but it does not work. This url works : http://localhost:8080/svn/ But when i use the virtual host, it does not works :

Re: tomcat virtual host

2008-11-20 Thread David Smith
I suspect he needs to rename svn.war to ROOT.war -- David Sent from my iPod On Nov 20, 2008, at 8:47 AM, Peter Crowther [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] I deployed my webapp svn.war on webapps directory of tomcat 6. I configured localy a virtual

Re: tomcat virtual host

2008-11-20 Thread André Warnier
Can you be a bit more specific about the problem ? it does not work does not help much. [EMAIL PROTECTED] wrote: Hi, I deployed my webapp svn.war on webapps directory of tomcat 6. I configured localy a virtual host with tomcat 6, but it does not work. This url works :

Re: tomcat virtual host

2008-11-20 Thread mtail
I deployed my webapp svn.war on webapps directory of tomcat 6. I configured localy a virtual host with tomcat 6, but it does not work. This url works : http://localhost:8080/svn/ But when i use the virtual host, it does not works : http://mysvn:8080/ This is a part of server.xml : ...

RE: tomcat virtual host

2008-11-20 Thread Peter Crowther
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] When i tape http://mysvn:8080/ in browser to access to my web application, i have this : Internet Explorer cannot display the web page but when i tape http://localhost:8080/svnrepository; i access correctely to my application. Find file

Re: tomcat virtual host

2008-11-20 Thread mtail
I agree with the other response: rename your war to ROOT.war, so that it is the root web application. By the way, it is worth changing only one thing at once in your URL when testing. You are changing two. Does http://localhost:8080/ work? Does http://mysvn:8080/svnrepository work? But if i

RE: tomcat virtual host

2008-11-20 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: tomcat virtual host But if i do this, how can i access de tomcat manager ? with other name, but the examples will work ? By using their URLs? http://mysvn:8080/manager/html http://mysvn:8080/examples - Chuck

Re: tomcat virtual host

2008-11-20 Thread mtail
- Mail Original - De: Charles R Caldarale [EMAIL PROTECTED] À: Tomcat Users List users@tomcat.apache.org Envoyé: Jeudi 20 Novembre 2008 16:23:40 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: RE: tomcat virtual host From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: tomcat virtual host

2008-11-20 Thread Serge Fonville
: Jeudi 20 Novembre 2008 16:23:40 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: RE: tomcat virtual host From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: tomcat virtual host But if i do this, how can i access de tomcat manager ? with other name

RE: tomcat virtual host

2008-11-20 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: tomcat virtual host But, if a want to add a second application web , for example mysvn2 and i do not remove the mysvn, that is why I would like to use the virtual host. Sorry, but your question does not make any sense to me. I

Re: tomcat virtual host

2008-11-20 Thread mtail
Sorry, but your question does not make any sense to me. I don't see anything stopping you from adding as many virtual hosts as you want. If you need a different default webapp for each virtual host, then each Host will have to specify a different appBase attribute. Any webapps that you

RE: tomcat virtual host

2008-11-20 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: tomcat virtual host I configured localy a virtual host with tomcat 6 This url works : http://localhost:8080/svn/ But when i use the virtual host, it does not works : http://mysvn:8080/ What do you mean by does not work? Do

Re: tomcat virtual host

2008-11-20 Thread mtail
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: tomcat virtual host I configured localy a virtual host with tomcat 6 This url works : http://localhost:8080/svn/ But when i use the virtual host, it does not works : http://mysvn:8080/ What do you mean by does not work? Do

RE: tomcat virtual host

2008-11-20 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: tomcat virtual host status, or does something else happen? Is the DNS name mysvn defined on the machine your browser is running on? Internet Explorer could not display this web page i test this in local machine, so i do

Re: tomcat virtual host

2008-11-20 Thread André Warnier
Caldarale, Charles R wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: tomcat virtual host status, or does something else happen? Is the DNS name mysvn defined on the machine your browser is running on? Internet Explorer could not display this web page i test

Re: How to test a tomcat virtual host?

2006-09-21 Thread ben short
If you are using windows you could try added a line like the following to the c:\WINDOWS\system32\drivers\etc\hosts file. 127.0.0.1 www.virtualhost1.com Then open www.virtualhost1.com in your web browser. the same this should be possible from linux but i dont have my linux hat on at the

Re: How to test a tomcat virtual host?

2006-09-21 Thread Hassan Schroeder
On 9/21/06, Samsamoddin Rajaei [EMAIL PROTECTED] wrote: I am trying to test my virtual hosts and my tomcat configuration on my local pc (Windows XP). When I start tomcat they are no exceptions and everything seems to be ok. When I call the page http://127.0.0.1:9080/; I see the defaultHost

Re: How to test a tomcat virtual host?

2006-09-21 Thread Samsamoddin Rajaei
Thank you, it should be the answer. I must only find which service or program uses the file hosts, because I can not modify it (it is not read only)! Sam If you are using windows you could try added a line like the following to the c:\WINDOWS\system32\drivers\etc\hosts file. 127.0.0.1

Restart Tomcat Virtual Host - HOWTO

2006-05-06 Thread Vasanth Kamatgi
issues. I am looking at clean restart of a tomcat virtual host. regards, Vasanth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: newbie:access tomcat virtual host via apache

2006-02-07 Thread matador
Dieter Schicker [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: If you can't mount / because you also run php on apache, you can afaik only mount specific directories of tomcat in Apache, e.g. http://foo.bar.com:8080/jsp-examples = http://foo.bar.com/jsp-examples. In Google you can find

RE: newbie:access tomcat virtual host via apache

2006-02-07 Thread Tim Lucia
tomcat virtual host via apache Tim Lucia [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: A few weeks ago, I asked a similar question which went unanswered. Basically, I want to have the user request www.somewhere.com but have Apache forward that to tomcatserver:8009/someNonRootContext

RE: newbie:access tomcat virtual host via apache

2006-02-05 Thread Tim Lucia
tomcat virtual host via apache If you can't mount / because you also run php on apache, you can afaik only mount specific directories of tomcat in Apache, e.g. http://foo.bar.com:8080/jsp-examples = http://foo.bar.com/jsp-examples. In Google you can find many examples for this configuration. Didi

Re: newbie:access tomcat virtual host via apache

2006-02-05 Thread Dieter Schicker
: Dieter Schicker [mailto:[EMAIL PROTECTED] Sent: Sunday, February 05, 2006 4:46 AM To: Tomcat Users List Subject: Re: newbie:access tomcat virtual host via apache If you can't mount / because you also run php on apache, you can afaik only mount specific directories of tomcat in Apache, e.g. http

newbie:access tomcat virtual host via apache

2006-02-04 Thread matador
runnning tomcat 5.x on windows with apache 2.0.5x with modjk. tomcat on 8080 and apache on 80. so for a given webapp at foo.bar.com that really is served up by tomcat on 8080 as http://foo.bar.com:8080. how to get apache to see it so that i can access it as http://foo.bar.com without the