this post was submitted on 09 Jul 2023
1395 points (99.0% liked)

Ask Lemmy

26281 readers
1644 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either [email protected] or [email protected]. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email [email protected]. For other questions check our partnered communities list, or use the search function.


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 23 points 1 year ago (6 children)

cleartext usernames and passwords as the URI components of GET requests

I’m not an infrastructure person. If the receiving web server doesn’t log the URI, and supposing the communication is encrypted with TLS, which removes the credentials from the URI, are there security concerns?

[–] [email protected] 30 points 1 year ago* (last edited 1 year ago) (2 children)

Anyone who has access to any involved network infrastructure can trace the cleartext communication and extract the credentials.

[–] [email protected] 3 points 1 year ago (1 children)

What do you mean by any involved network infrastructure? The URI is encrypted by TLS, you would only see the host address/domain unless you had access to it after decryption on the server.

[–] apazzy 8 points 1 year ago (1 children)

They said clear text, I would assume it's not https.

[–] [email protected] 5 points 1 year ago* (last edited 1 year ago) (1 children)

The comment we are replying to is asking about a situation where there is TLS. Also using clear text values in the URI itself does not mean there wouldn't be TLS.

[–] apazzy 2 points 1 year ago

When someone just says cleartext, I assume they mean transmission too.

OP replied confirming HTTP: https://lemmy.world/comment/1033128

[–] ItsMyFirstDay 11 points 1 year ago (2 children)

I'm not 100% on this but I think GET requests are logged by default.

POST requests, normally used for passwords, don't get logged by default.

BUT the Uri would get logged would get logged on both, so if the URI contained @username:Password then it's likely all there in the logs

[–] SzethFriendOfNimi 1 points 1 year ago

Get and post requests are logged

The difference is that the logged get requests will also include any query params

GET /some/uri?user=Alpha&pass=bravo

While a post request will have those same params sent as part of a form body request. Those aren’t logged and so it would look like this

POST /some/uri

[–] [email protected] 1 points 1 year ago

GET requests are logged

That’s why I specified

the receiving web server doesn’t log the URI

in my question.

[–] rtxn 11 points 1 year ago (1 children)

Nope, it's bare-ass HTTP. The server software also connected to an LDAP server.

[–] [email protected] 1 points 1 year ago

I don't even let things communicate on /30 networks via HTTP/cleartext...this whole thing is horrifying.

[–] netvor 6 points 1 year ago

I would still not sleep well; other things might log URI's to different unprotected places. Depending on how the software works, this might be client, but also middleware or proxy...

[–] Archer 3 points 1 year ago

supposing the communication is encrypted with TLS

I can practically guarantee you it was not

[–] nijave 1 points 1 year ago

Browser history

Even if the destination doesn't log GET components, there could be corporate proxies that MITM that might log the URL. Corporate proxies usually present an internally trusted certificate to the client.