You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can spoof the localhost hostname from any system able to connect to gitweb and by this code anyone able to access webui by the hostname "localhost" have writeaccess.
Also accessing localhost by another Hostname results in no write access curl 'http://localhost:8000/viewonly' -H "Host: exthost" -> 1
The text was updated successfully, but these errors were encountered:
cHolzberger
changed the title
Spoofing Hostname leads to Write-Access on any system
[security] Spoofing Hostname leads to Write-Access on any system
Sep 29, 2019
git-webui/src/libexec/git-core/git-webui
Line 145 in dee7c19
You can spoof the localhost hostname from any system able to connect to gitweb and by this code anyone able to access webui by the hostname "localhost" have writeaccess.
Curl Example:
curl 'http://192.168.X.X:8000/viewonly' -H "Host: localhost" -> 0
Also accessing localhost by another Hostname results in no write access
curl 'http://localhost:8000/viewonly' -H "Host: exthost" -> 1
The text was updated successfully, but these errors were encountered: