#777546 Please don't grant localhost unconditional access to mod_status

Package:
apache2
Source:
apache2
Description:
Apache HTTP Server
Submitter:
Jean-Michel Nirgal Vourgère
Date:
2021-12-10 09:03:05 UTC
Severity:
wishlist
Tags:
#777546#5
Date:
2015-02-09 16:34:02 UTC
From:
To:
Hello

When one install a tor hidden service, a local proxy is installed.
This is an example from default /etc/tor/torrc [1] (This is commented
out in the example)
#HiddenServicePort 80 127.0.0.1:80

This means that all httpd connections seem to come from localhost.

This is a problem for mod_status, enabled by default, whose access is
based on incoming IP. Compromised information sometimes includes IP
public address, which is annoying for a hidden server, patch level, URL
being served, source IP addresses ... [2]


The obvious solution is to disable the module when using tor, but then
you loose the command "apache2ctl status", which is a pity.
Note that "service apache2 status" does work ok, however.


Some people have suggested that this url might be protected by a
password, and I believe it's the "lesser bad" idea. This is what I think
would be needed:
- Have postint generate a random strong password. Store it in a file
readable by apache & apache2ctl.
- Have default mod_status protected by that password.
- Have apache2ctl use that user/password. I did not test if all packages
providing www-browser supports the
http://user:password@localhost:80/server-status syntax.
This requires some auth modules to be enabled, which is probably a bad
idea. And exposes the password in "ps", too.


A variant of that solution would be to randomize the /server-status URL,
to include a secret suffix.


Another more simple and radical solution would be to disable mod_status
by default. Then, and actually in all cases, apache2ctl should test
"a2query -q -m status" and print a better error message than "The
requested URL /server-status was not found on this server." suggesting
the user to enable the module if he wants that.


What is your opinion on that problem?


Do you see a more generic way to restrict tor incoming connections so
that it doesn't match "require local" filter?


Fell free to adjust tags/severity.


[1]
https://sources.debian.net/src/tor/0.2.6.2-alpha-1/src/config/torrc.sample.in/
[2]
https://lists.torproject.org/pipermail/tor-talk/2015-February/036781.html

#777546#10
Date:
2015-02-17 22:56:15 UTC
From:
To:
That's a valid feature request. But for after jessie.

I don't have the perfect idea right now.

One could configure an additional localhost address like 127.0.0.2,
make the tor hidden service forward to that ip, and change mod_status'
config to explicitly require 127.0.0.1. But one still needs to change
the config because "require local" matches 127.0.0.0/8.

#777546#15
Date:
2016-01-31 09:42:16 UTC
From:
To:
#777546#20
Date:
2018-02-15 09:23:36 UTC
From:
To:
Laba diena,


Noriu Jus informuoti apie šių metų pasikeitimą dėl atnaujintos visos Lietuvos įmonių bazės 2018 metų sausio vidurio.
Visi juridiniai asmenys pateikti bazėje yra veikiantys, realiai vykdantys veiklą, turintys įdarbintų darbuotojų. Duomenys pagal Sodrą, Registrų centrą.

Bazėje nurodoma ir apyvarta, darbuotojų atlyginimai, darbuotojų skaičius, transporto skaičius ir daug kitų duomenų, kuriuos matysite pavyzdyje.

Duomenis galima filtruoti pagal veiklas, miestus ir kitus duomenis.


Šią bazę verta turėti visoms įmonėms. Pateiksiu priežastis:

1) Kontaktai pateikti bazėje direktorių ir kitų atsakingų asmenų, didelė tikimybė Jums surasti naujų klientų, partnerių, tiekėjų, kai tiesiogiai bendrausite su direktoriais, komercijos vadovais.

2) Konkurentų analizavimas, tiekėjų atsirinkimas pagal Jums reikalingus kriterijus, galite atsifiltruoti pagal įmonės dydį, bazėje nurodoma kiek įmonės skolingos Sodrai.

3) Lengva, greita ir patogu dirbti su šia baze, elektroninius pašto adresus galite importuoti į elektroninių laiškų siuntimo programas ar sistemas iš kurių siunčiate elektroninius laiškus.
Taip pat galite importuoti mobiliųjų telefonų numerius į SMS siuntimo programas.


Išsirinkite iš "Veiklų sąrašo" veiklas kurių Jums reikia.
( Sąrašas prisegtas laiške excel faile )

Parašykite, kurias veiklas išsirinkote
ir atsiųsime pavyzdį ir pasiūlymą su sąlygomis įmonių bazei įsigyti



Pagarbiai,
Tadas Giedraitis
Tel. nr. +37067881041

#777546#25
Date:
2019-06-06 07:38:31 UTC
From:
To:
On 06-06-2019

Hey jemerson ...


The following will not acquire a lot of your study time,and so straight to the issue. I obtained a video clip of you flogging the dolphin while at the pornpage you''re been to, thanks to a fantastic arse software I have been able to put on a few sites with that type of content.

You hit play button and all the cams and a microphone start working in addition it will save every damn element from your personal pc, just like contact info,passwords and stuff such as that,think just where i obtained this e-mail from?) So now i know who i will send this to,if you aren't gonna settle this with me.

I will place a account address below that you can throw me 650 dollars within 1 days maximum via biтcоin.Notice,it's not that large of a value to cover,suppose this would make me not that awful of a person.

You are welcome to try and do whichever the fuck you wish to,however in case i will not find the total within the time period mentioned over,well... you by now understand what will happen.

And so it's under your control now.Now i'm not gonna move through all the info and crap,just simply ain't got precious time for that and also you likely know that net is loaded with mail similar to this,so it is as well your choice to trust in this or not,there may be just a proven way to find out.

Here is my biTcоin wallet address- 15us41njCDh1ji4HRmfkh3ipeDPZLDz5gi


Have fun and bear in mind that time is beating... .

#777546#30
Date:
2019-06-17 07:38:29 UTC
From:
To:
Hello,

Our partners referred your company to us. Regarding your great products.
Please see required products, quantity and specifications as attached.

Kindly give us your lowest possible prices for FCL shipment.


Best Regards,

Wanda Rodriguez
Purchase Assistant

Hidroconta Trading Ltd.
Av. de Sta. Catalina,
60, 30012 Murcia, Spain
Phone: +34 968 26 77 66
Fax: +34 968 26 77 06

#777546#35
Date:
2020-05-10 08:34:59 UTC
From:
To:
Good day,

My associate from China wants to discuss a business investment deal with
you. I awaiting your response to enable us discuss about this business
investment

Nael M. Al Homoud
Executive Director & High Investment Committee Member@
The Arab Investment Co
www.taic.com [1]



Links:
------
[1] http://www.taic.com

#777546#40
Date:
2021-09-22 07:37:35 UTC
From:
To:
Dzień dobry,

kontaktuję się z Państwem, ponieważ dostrzegam możliwość redukcji opłat za prąd.

Odpowiednio dobrana instalacja fotowoltaiczna to rozwiązanie, które pozwala wygenerować spore oszczędności w skali roku.

Chciałbym porozmawiać z Państwem o tego typu rozwiązaniu, a także przedstawić wstępne kalkulacje.

Czy są Państwo zainteresowani?

Pozdrawiam,
Dorian Kwiatkowski

#777546#45
Date:
2021-09-30 07:30:46 UTC
From:
To:
Dzień dobry,

kontaktuję się z Państwem, ponieważ dostrzegam możliwość redukcji opłat za prąd.

Odpowiednio dobrana instalacja fotowoltaiczna to rozwiązanie, które pozwala wygenerować spore oszczędności w skali roku.

Chciałbym porozmawiać z Państwem o tego typu rozwiązaniu, a także przedstawić wstępne kalkulacje.

Czy są Państwo zainteresowani?

Pozdrawiam,
Dorian Kwiatkowski

#777546#50
Date:
2021-10-19 07:30:36 UTC
From:
To:
Dzień dobry,

jakiś czas temu zgłosiła się do nas firma, której strona internetowa nie pozycjonowała się wysoko w wyszukiwarce Google.

Na podstawie wykonanego przez nas audytu SEO zoptymalizowaliśmy treści na stronie pod kątem wcześniej opracowanych słów kluczowych. Nasz wewnętrzny system codziennie analizuje prawidłowe działanie witryny.  Dzięki indywidualnej strategii, firma zdobywa coraz więcej Klientów.

Czy chcieliby Państwo zwiększyć liczbę osób odwiedzających stronę internetową firmy? Mógłbym przedstawić ofertę?


Pozdrawiam serdecznie,
Patryk Górecki

#777546#55
Date:
2021-10-29 08:11:01 UTC
From:
To:
Dzień dobry,

jakiś czas temu zgłosiła się do nas firma, której strona internetowa nie pozycjonowała się wysoko w wyszukiwarce Google.

Na podstawie wykonanego przez nas audytu SEO zoptymalizowaliśmy treści na stronie pod kątem wcześniej opracowanych słów kluczowych. Nasz wewnętrzny system codziennie analizuje prawidłowe działanie witryny.  Dzięki indywidualnej strategii, firma zdobywa coraz więcej Klientów.

Czy chcieliby Państwo zwiększyć liczbę osób odwiedzających stronę internetową firmy? Mógłbym przedstawić ofertę?


Pozdrawiam serdecznie,
Patryk Górecki

#777546#60
Date:
2021-11-04 08:41:09 UTC
From:
To:
Dzień dobry,

jakiś czas temu zgłosiła się do nas firma, której strona internetowa nie pozycjonowała się wysoko w wyszukiwarce Google.

Na podstawie wykonanego przez nas audytu SEO zoptymalizowaliśmy treści na stronie pod kątem wcześniej opracowanych słów kluczowych. Nasz wewnętrzny system codziennie analizuje prawidłowe działanie witryny.  Dzięki indywidualnej strategii, firma zdobywa coraz więcej Klientów.

Czy chcieliby Państwo zwiększyć liczbę osób odwiedzających stronę internetową firmy? Mógłbym przedstawić ofertę?


Pozdrawiam serdecznie,
Patryk Górecki

#777546#65
Date:
2021-11-12 08:51:16 UTC
From:
To:
Dzień dobry!

Czy mógłbym przedstawić rozwiązanie, które umożliwia monitoring każdego auta w czasie rzeczywistym w tym jego pozycję, zużycie paliwa i przebieg?

Dodatkowo nasze narzędzie minimalizuje koszty utrzymania samochodów, skraca czas przejazdów, a także tworzenie planu tras czy dostaw.

Z naszej wiedzy i doświadczenia korzysta już ponad 49 tys. Klientów. Monitorujemy 809 000 pojazdów na całym świecie, co jest naszą najlepszą wizytówką.

Bardzo proszę o e-maila zwrotnego, jeśli moglibyśmy wspólnie omówić potencjał wykorzystania takiego rozwiązania w Państwa firmie.


Z poważaniem,
Dawid Rowicki

#777546#70
Date:
2021-12-10 08:50:09 UTC
From:
To:
Dzień dobry,

zapoznałem się z Państwa ofertą i z przyjemnością przyznaję, że przyciąga uwagę i zachęca do dalszych rozmów.

Pomyślałem, że może mógłbym mieć swój wkład w Państwa rozwój i pomóc dotrzeć z tą ofertą do większego grona odbiorców. Pozycjonuję strony www, dzięki czemu generują świetny ruch w sieci.

Możemy porozmawiać w najbliższym czasie?


Pozdrawiam
Adam Furgalski