Articles

Metasploit Framework Windows Tutorial
Remote Desktop Connection
Windows Processes That May Be Dangerous
How-To use NetCat a Tutorial
Common Linux Commands
Common Ports
Netcat Commands
HTTP Response Codes
War-Google Hack Terms
Wardriving
Avoiding Social Engineering and Phishing Attacks
Intrusion Detection on Linux
Linux Intrusion Detection
Penetration Testing Guide
Penetration Testing Tools
Social Engineering Fundamentals, Part I: Hacker Tactics
Social engineering (computer security)
The Psychology of Social Engineering

The Archives

General GSO
GovernmentSecurity.org News & Suggestions
In The News
Open Topic
General Security Information
Trash Can
Exploit & Vulnerability Mailing List Archives
Trial Member Forum
Product and Program Reviews GSO Tutorials
System Security
Windows Systems
Beginners Section
Linux & Unix Systems
File Downloads
Exploit Research & Discussion Trojan & Virus Errata
Networking Security / Firewall / IDS / VPN / Routers
System Hardening
E-Mail Security
Wifi Security
Trial Member Uploads
Upload discovered Trojans & Mal ware
GSO Programming Section
C , C++ , VC++
Visual Basic.NET
Perl /CGI
Java/Javascript
PHP/XML/ASP/HTML
Assembly + Other
The Cork Board
Network Security Consultant Directory
Network Security Jobs
The Archives
Encryption Information
General Network Security
Internet Anonymity
HTTP Protocol Security
Linux Security
MS IIS Information
Exploit Articles
Programming / Tool Design
GSO Software Projects
Public Downloads
Microsoft Security Questions and Papers

Full Version: Analyze This Code
onlinepass
QUOTE
<%
String sessionString = "";

session.setMaxInactiveInterval(500);

if (!session.isNew())
{
  if (session.getAttribute("someattribute")==null)
  {
  response.sendRedirect("../default.html");
  }
  else
  {
  sessionString = session.getAttribute("someattribute").toString();
   
  if (!sessionString.equals("ax98asdf8234"))
  {
    response.sendRedirect("../default.html");
  }
  }
}

if (session.isNew())
{
  response.sendRedirect("../default.html");
}

%>
<%
String appth = request.getContextPath();
String userString = request.getParameter("Usrtring");
if (userString.equals("validated"))
{
%>


I have tried to bypass this JSP validation using some tricks by using a proxy in between and changing the attributes and other stuff, but still i dont seem to be hitting it right.

Can any one of you identify how we can bypass thiss???
tweakz20
is it just me or is this a how to hack?
onlinepass
Wot does it seem to you... if i were hacking in to it.... and the server would give me the JSP source...

tweakz20 First try to understand that JSP source is not spitted out as simmilar to HTML code.
you need to have the source code.


And also I think this is much better than asking for "SQL Injection Strings"
phase
I am not really seeing what you are trying your doing. Give me some more info.

This code seems to just look at the session. There is bound to be more code involved.

phase ph34r.gif
tweakz20
QUOTE (onlinepass @ Apr 15 2004, 11:23 AM)
tweakz20 First try to understand that JSP source is not spitted out as simmilar to HTML code.
you need to have the source code.

ahhh, sorry, i didn't really look at it.. just saw javascript and a "how to bypass" question
btw: i agree with phase
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2005 Invision Power Services, Inc.