Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7542915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:17:38+00:00 2026-05-30T08:17:38+00:00

I have a Java webapp which is vulnerable to the directory transversal (aka path

  • 0

I have a Java webapp which is vulnerable to the directory transversal (aka path transversal) attack via URL encoding. After being authenticated:

  • if I hit http://localhost:8080/Web/WEB-INF/web.xml, I get a 404 (which is fine)
  • if I hit http://localhost:8080/Web/%c0%ae/WEB-INF/web.xml, I can read the file (which is obviously not fine)

As per the Servlet spec., the WEB-INF folder is not supposed to be accessible publicly, but somehow it works in this case.
I’m using Websphere 5.1 with Java 1.4, Spring Security 2.0.5 and Struts 1.3.
From what I read, it seems to be related to the encoding, %c0%ae being ‘.’ (dot) in UTF-8.

I tried the same thing on a different webapp which runs in a different environment (Tomcat 6 with Java 7, Spring Security 3 and Spring MVC) and I wasn’t able to reproduce the problem. This second webapp has a filter to force encode the pages in UTF-8 (org.springframework.web.filter.CharacterEncodingFilter), so I tried the same configuration on the first webapp, but it didn’t do the trick.
Any ideas?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T08:17:39+00:00Added an answer on May 30, 2026 at 8:17 am

    I am going to answer my own question.
    So with the limited options I had, what I ended up doing is add in the Spring Security configuration file a security rule such as

    <sec:intercept-url pattern="/**/WEB-INF/**" access="no-access"/>
    

    It restricts access to WEB-INF to the ‘no-access’ role which is in fact not a role. That prevents access to all users. It is not ideal but will do the trick until there is an upgrade.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a java webapp which needs to upload files via http and then
I have a Tomcat Java webapp which is thrashing the Java GC when under
I have a Java class which can be called from shell. (via java [command][options])
I have a java/spring webapp which uses HibernateTemplate and I was wondering if it
I have a java webapp that has to be deployed on either Win or
I have a Java EE webapp that works perfectly when I run it on
I got a Java Webapp project which uses Struts2 as the controller layer. I
I am developing a java webapp, using jsp/jquery/ejb/jboss. I have a web-form that enables
Situation is pretty straightforward. I have a Java webapp that I'm converting to be
I wonder if anyone can advise on a Java webapp question? I have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.