Theme Layout

Boxed or Wide or Framed

Wide

Theme Translation

Display Featured Slider

Featured Slider Styles

Display Grid Slider

yes

Grid Slider Styles

Display Trending Posts

Display Author Bio

Display Instagram Footer

off

Dark or Light Style

Light
Powered by Blogger.

Thursday, December 22, 2016

What is "HTML Injection"


# HTML Injection

: HTML Injection is a subclass of code injection attack. An attack that inserts malicious HTML Code into vulnerable parameters. Using this, the attacker inserts the HTML Tag on the page that the user requested to link and connects to the unintended content or the malicious site. 


# Reflection technique.

: It is an attack that inserts a malicious HTML tag in the URL and causes the HTML tag to be executed on the user's PC Who clicked the link. ( In particular, when data is transmitted by the GET Method, the variable name & input value are exposed in the URL.




# Storage technique.

: It is an attack that causes malicious HTML tag to be stored in DB so that the HTML Tags are executed on the PC of the users who has confirmed the stored tags. If attacker upload a malicious HTML tag to a public domain, attacker can attack multiple users.

Read more »
Unknown
0 Comments

You Might Also Like

Beebox Posting List

Beebox Posting List


This page is about the Beebox posting list document.
The purpose is to find the information I want more easily. There is no content that is not practiced directly. 




# Concept


# Training ( low )


# Training ( Medium )


# Training ( High )

Read more »
Unknown
4 Comments

You Might Also Like

Tuesday, December 20, 2016

Basic Stack Corruption (Stack Buffer Overflow)

Basic Stack Corruption (Stack Buffer Overflow)


# Basic Stack Corruption.

 : Buffer Overflow refers to a vulnerability that overwrites contiguous memory when more data is inserted than the allocated buffer. The vulnerability occurs because the string processing function doesn't check the length of the input value. (ex. strcpy ) 

The following program was used for the basic stack corruption at Ubuntu Linux 14.04.


The goal is to execute the vuln() function using the vulnerability of strcpy.
Since this version of Ubuntu uses various memory protection techniques, we have compiled it with the following options:

gcc -fno-stack-protector -mpreferred-stack-boundary=2 -o bof bof.c

After compiling, we can look at using gdb as follows.


The contents of attack based on the above contents are as follows.



Now find the address of vuln() needed to create the payload using GDB.



Since we find the address of vuln(), now we can complete the payload.



I overwrite buffer[30]&SFP with the letter "A", and modulated the RET address with the address of vuln(). So, After the main function was terminated, the vuln function is executed and a root privileged shell is executed.



Read more »
Unknown
0 Comments

You Might Also Like

Thursday, December 15, 2016

[Pwnable.kr/Toddler's Bottle] ShellShock ( Solved. 16.12.15 )

[Pwnable.kr/Toddler's Bottle] ShellShock ( Solved. 16.12.15 )


# Problem.

 : This problem is about shell shock vulnerability. This vulnerability has been  categorized as CVE-2014-6271. The contents of CVE are as follows.

GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which allows remote attackers to execute arbitrary code via a crafted environment, as demonstrated by vectors involving the ForceCommand feature in OpenSSH sshd, the mod_cgi and mod_cgid modules in the Apache HTTP Server, scripts executed by unspecified DHCP clients, and other situations in which setting the environment occurs across a privilege boundary from Bash execution, aka "ShellShock." NOTE: the original fix for this issue was incorrect; CVE-2014-7169 has been assigned to cover the vulnerability that is still present after the incorrect fix. -- CVE site


# How To solve.

 : The bash shell can define functions with environment variables. After the function definition is completed, an additional command is executed to execute the command.


Read more »
Unknown
0 Comments

You Might Also Like

[Pwnable.kr/Toddler's Bottle] Lotto ( Solved. 16.12.13 )

[Pwnable.kr/Toddler's Bottle] Lotto ( Solved. 16.12.13 )


# Problem.

 : This program has a code problem.


# How To Solve.

 : The code where the vulnerability exists is in the followed section.

 // calculate lotto score
 int match = 0, j = 0;
 for(i=0; i<6; i++){
  for(j=0; j<6; j++){
   if(lotto[i] == submit[j]){
    match++;
In this part, even if only one out of six is matched by the for statement, the match can be increased to 6.


Note that the value of submit[6] in this program is character variables.
Since lotto ranges from 1 to 45, player can input one of the characters from 33 to 45 six times. 



The result is as follows.





Read more »
Unknown
0 Comments

You Might Also Like

Tuesday, December 13, 2016

[Pwnable.kr/Toddler's Bottle] BlackJack ( Solved 16.12.13 )

[Pwnable.kr/Toddler's Bottle] BlackJack ( Solved 16.12.13 )


# Problem.

  : This problem is blackjack game. If player earn more than $1 million through BlackJack game, Player can see the flag.


# How To solve.

 : When I first solved this problem, I solved it without reference to the source code. The vulnerability of this program is that if player enter more money than player own, player will be prompted to re-enter it, but only once. So, when player re-enter more than $1 million and win the game, player can easily see the flag. I did the following.

And, If player win this game, player can check the flag as follows.




Read more »
Unknown
0 Comments

You Might Also Like

Monday, December 12, 2016

Follow @SunriseSunsetBlog