Skip to content

Commit

Permalink
Create XSS_in_Converting_File_Content_to_Text (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
omranisecurity authored Dec 11, 2023
1 parent aa21dad commit 3da4148
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions pages/attacks/XSS_in_Converting_File_Content_to_Text.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---

layout: col-sidebar
title: XSS in Converting File Content to Text
author: Mohammad Reza Omrani
contributors:
permalink: /attacks/XSS_in_Converting_File_Content_to_Text
tags: [attack, XSS]

---

{% include writers.html %}

## Description

Attackers may be able to execute JavaScript during the conversion of the content
of a file to text, which is commonly known as Cross-Site Scripting (XSS).
If an image containing XSS payload is imported into an image-to-text program,
its output may result in execution of JavaScript code. This vulnerability has been
verified by testing some services that translate text from photos and convert
photos to text. This same process may apply to other vulnerabilities as well!

## Examples

Attackers can use programs like Paint to write payloads on blank white photos and send them to targets.
![first example](../assets/images/XSS_in_Converting_File_Content_to_Text.png)

0 comments on commit 3da4148

Please sign in to comment.