HexBrain

Python Cryptographic Authority · Report #1998179

Error Page Content Spoofing or Text Injection

Validstatus
lowseverity
16upvotes
3 Jul 2023disclosed

How it was found

Domain : cryptography.io

Description: Content spoofing, also referred to as content injection, "arbitrary text injection" or virtual defacement, is an attack targeting a user made possible by an injection vulnerability in a web application. When an application does not properly handle user-supplied data, an attacker can supply content to a web application, typically via a parameter value, that is reflected back to the user. This presents the user with a modified page under the context of the trusted domain.

Steps to Reproduce: 1 - Go to https://cryptography.io/en/latest/_sources/ 2 - Write anything after the slash and it will be printed in the page

POC: https://cryptography.io/en/latest/_sources/%20%20%20%20%20%20%20This%20site%20is%20moved%20to%20attacker.com

Reference: https://hackerone.com/reports/498562 https://hackerone.com/reports/327671

Solution: Just delete the printed path from the page

Impact

This attack is typically used as, or in conjunction with social engineering because the attack is exploiting a code-based vulnerability and a user's trust. As a side note, this attack is widely misunderstood as a kind of bug that brings no impact.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original