This has been around for ages and I'm kinda surprised bumcheekcity/fewyn/zarqon haven't noticed these arriving on their servers, as they'd collectively be running the most popular servers externally visited by ASH scripts. I don't know why it has taken me until today to report this, because it's definitely a bug and a potential security risk. I guess I've just brushed it off earlier.
The issue is in the title, but to explain it better:
> ash visit_url("http://www.google.com/?");
Server returned response code 405 for http://www.google.com/
Returned:
Now let's look at the HTTP request body:
=&pwd=mypwdstring
That's not cool
Why does google need to know my pwd string?
I think the issue tends to become further exasperated by the request method behaviour of visit_url, GET, being switched to a POST when a querystring is present in the URL (this itself is fairly unconventional). The wiki entry isn't really accurate in that sense.
If I had done a visit_url("http://www.google.com/?pwd="); I still wouldn't want mafia to fill in my pwd string, but it wouldn't be as unexpected.
Suggested fix: Only add/autofill pwd if the host is KOL_IP/KOL_HOST. In addition, the pwd element should probably only be omitted from logs when visiting KOL_IP/KOL_HOST.
I am probably capable of patching this, but right now I am busy. If anyone else wants to take a look, feel free.
The issue is in the title, but to explain it better:
> ash visit_url("http://www.google.com/?");
Server returned response code 405 for http://www.google.com/
Returned:
Now let's look at the HTTP request body:
=&pwd=mypwdstring
That's not cool

I think the issue tends to become further exasperated by the request method behaviour of visit_url, GET, being switched to a POST when a querystring is present in the URL (this itself is fairly unconventional). The wiki entry isn't really accurate in that sense.
If I had done a visit_url("http://www.google.com/?pwd="); I still wouldn't want mafia to fill in my pwd string, but it wouldn't be as unexpected.
Suggested fix: Only add/autofill pwd if the host is KOL_IP/KOL_HOST. In addition, the pwd element should probably only be omitted from logs when visiting KOL_IP/KOL_HOST.
I am probably capable of patching this, but right now I am busy. If anyone else wants to take a look, feel free.
Last edited: