WGOD!

The general member portfolio consists of software developers, company owners and investors. Our mission is to ensure that all shared content is clean and functional. For this reason, unfortunately, not every member is accepted. Please do not attempt to register for 1 software or 1 theme, membership is paid. You can join our telegram group below or send an e-mail to [email protected] to purchase the invite code for 10$.

Join Telegram

XSS Açığı Kapatma

Info

Konu Hakkında Merhaba, tarihinde PHP kategorisinde RedBytes tarafından oluşturulan XSS Açığı Kapatma başlıklı konuyu okuyorsunuz. Bu konu şimdiye dek 686 kez görüntülenmiş, 5 yorum ve 1 tepki puanı almıştır...
Kategori Adı PHP
Konu Başlığı XSS Açığı Kapatma
Thread starter RedBytes
Start date
Replies
Views
First message reaction score
Son Mesaj Yazan afdsoft

RedBytes

Friend
New
28
Resources
2
10
Warez Point
Turkish Liras
0₺
Offline
Code:
<html>
    <head>
        <title>XSS Tespit</title>
    </head>
    <body>

<form action="index.php" method="post">
 Yaz: <br/>
 <input type="text" name="a" /><br/>
 <input type="submit" value="Formu gönder" />
</form>



    </body>
    </html>
<?php
$a = $_POST["a"];
echo $a ;

?>

Bu şekilde bir sayfa gelecektir. Buraya örneğin <b>Deneme yazarsanız kalın olarak deneme yazacaktır.

xss-script-1.png


Code:
$a = htmlspecialchars($_POST["a"]);

Şeklinde $a değişkenine htmlspecialchars ekleyerek deniyelim birde.

xss-script-2.png
 
  • 👍
Reactions: .
Guest
Help Users
  • No one is chatting at the moment.
  • aLeech:
    Guest wariclis has joined the room.
  • (Guest) wariclis:
    hi
    Quote
    (Guest) wariclis: hi
    Back
    Top