code-423n4 / code-423n4/code423n4.com

[BUG]: clickjacking vulnerability

Open
#3,861 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug External request
Dominant language
JavaScript
Stars
179
Forks
173
PR merge metrics
No merged PRs in 30d

Description

While performing security testing https://code4rena.com/I have found the vulnerability called Clickjacking.

What is Clickjacking ?
Clickjacking (User Interface redress attack, UI redress attack, UI redressing) is a malicious technique of tricking a Web user into clicking on something different from what the user perceives they are clicking on, thus potentially revealing confidential information or taking control of their computer while clicking on seemingly innocuous web pages.
The server didn't return an X-Frame-Options header which means that this website could be at risk of a clickjacking attack. The X-Frame-Options HTTP response header can be used to indicate whether or not a browser should be allowed to render a page in a or <iframe>. Sites can use this to avoid clickjacking attacks, by ensuring that their content is not embedded into other sites.
This vulnerability affects Web Server.

Steps to Reproduce:
Put https://code4rena.com/ url in the code of iframe, which is given below

<title>I Frame</title> clickjacking vulnerability <iframe src="https://code4rena.com/" height="550px" width="700px"></iframe> By Dinesh11

Notice that site is visible in the Iframe

Impact:
This is an attack that tricks a user into clicking a webpage element which is invisible or disguised as another element. This can cause users to unwittingly download malware, visit malicious web pages, provide credentials or sensitive information, transfer money, or purchase products online or Stealing NFTs.
Typically, clickjacking is performed by displaying an invisible page or HTML element, inside an iframe, on top of the page the user sees. The user believes they are clicking the visible page

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported iframe behavior against https://code4rena.com/ and inspect the HTTP response headers. The issue is done when the site returns an anti-framing policy that prevents unauthorized iframe embedding; confirm the result with the provided reproduction case.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
security, web-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.