HexBrain

OpenMage · Report #1091957

Very long names on demo.openmage.org could redirect victim users to malicious url redirects via email contacts.

Validstatus
mediumseverity
14upvotes
29 Apr 2021disclosed

How it was found

Summary:

We found that the maximum length of the first and last name fields was not set to 32 characters at registration and to 1000 characters when using the profile update form. The attacker can use this method as a malware attack, the user will redirect to a website that contains malware or hijack.

Descriptions

  • very long name vulnerabilities use refferals
  • control character allowed in username
  • Email spoofing can redirect victim to malware attack

Steps To Reproduce:

Request

POST /customer/account/createpost/ HTTP/1.1
Host: demo.openmage.org/
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: close
Upgrade-Insecure-Requests: 1
Content-Length: 91

Content-Disposition: form-data; name="error_url"


------WebKitFormBoundaryZaGjL6AhSOgUPeQl
Content-Disposition: form-data; name="form_key"

8aHBFidQJt9At8Ux
------WebKitFormBoundaryZaGjL6AhSOgUPeQl
Content-Disposition: form-data; name="firstname"

hello your account has been deleted permanenty please visit here evil.com your account has been blocked permanenty ,please confrim your verification here evil.com
------WebKitFormBoundaryZaGjL6AhSOgUPeQl
Content-Disposition: form-data; name="lastname"

hello your account has been deleted permanenty please visit here evil.com your account has been blocked permanenty ,please confrim your verification here evil.com
------WebKitFormBoundaryZaGjL6AhSOgUPeQl
Content-Disposition: form-data; name="email"

[email protected]
------WebKitFormBoundaryZaGjL6AhSOgUPeQl
Content-Disposition: form-data; name="password"

memek@123
------WebKitFormBoundaryZaGjL6AhSOgUPeQl
Content-Disposition: form-data; name="confirmation"

memek@123
------WebKitFormBoundaryZaGjL6AhSOgUPeQl--

Supporting Material/References:

F1179531 F1179532

Impact

  • Attacker can sent a malware attack to victim email using a server notification emails this is can leads to Business Logic Errors
    • Email Hijacking
    • Control character allowed in username

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