generated from OWASP/www-projectchapter-example
-
Notifications
You must be signed in to change notification settings - Fork 698
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create XSS_in_Converting_File_Content_to_Text (#846)
- Loading branch information
1 parent
aa21dad
commit 3da4148
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |