pfn / keepasshttp

KeePass plugin to expose password entries securely (256bit AES/CBC) over HTTP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KeePass crash on malformed request

piegamesde opened this issue · comments

I am currently trying to write a little client for KeePassHTTP using python:

#!/bin/python3
import requests

payload = {
    'header': 'Connection: keep-alive',
    'header': 'Accept: */*',
    'header': 'Accept-Encoding: gzip, deflate, br',
    'header': 'Content-Type: application/json',
    'post-data': '{\"RequestType\":\"test-associate\",\"TriggerUnlock\":false}'
}
r = requests.get('http://localhost:19455', data=payload)
print(r.status_code)
print(r.text)

This little code has an interesting property: start it with python3 and KeePass will crash. This shouldn't happen.