diff --git a/CHANGELOG b/CHANGELOG index 50dfc7b..8c53452 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,19 @@ 2.0.0 (unreleased) - Requires PHP 8.2 (was 8.1), the oldest version CI runs the tests on + - Removed: the delay of the response to failed logins ("Delay", "Adaptive + Delay" and its thresholds). A response held back by PHP holds a PHP + worker for the whole delay, which an attacker sending failed logins in + parallel, from many addresses (an IPv6 network gives plenty), can use to + run the server out of workers, while it hardly slows down anybody who + doesn't wait for one answer before sending the next attempt; blocking + stops a single address long before a delay would matter. Failed logins + are now answered at once, and counted and blocked as before. The update + removes the settings and tells the administrator if they delayed + responses; to slow down clients, use the rate limiting of the web server + or a proxy (e.g. nginx's limit_req, Apache's mod_evasive or mod_qos, + fail2ban). With "Reporting Only" as the blocking mode, BFStop now only + records failed logins and sends notifications. The wiki has the details: + "Design Decision No Response Delays" and "Why No Delay Options in 2.0" - Hardening (issue #285): the page shown to a blocked address and the unblock page may not be shown in another site's frame, and the unblock page's type is not left to the browser to guess; with a proxy @@ -181,9 +195,8 @@ Joomla's events; what it did itself is split up in src/Service: RequestClassifier (what a request does - a login, the unblock page, the password recovery), BlockPolicy (when, for how long and how a client is - blocked, the unblock mail, the delays), Responder (the block page, the - messages, the delayed response), LoginTurn (logins of one address one - after the other) and DailyMaintenance (see the Task Scheduler entry). + blocked, the unblock mail), Responder (the block page, the messages), + LoginTurn (logins of one address one after the other) and DailyMaintenance (see the Task Scheduler entry). RequestClassifier works out what Joomla will run the way Joomla's own code does, which is no API: a new test, RequestClassifierTest, compares it with what the Joomla version @@ -332,12 +345,15 @@ (Components -> Brute Force Stop -> Settings); the plugin's Options tab and description now just point there instead of holding real settings - Adaptive allowance of failed attempts (#76): failed logins for a - username are now also throttled across all source IPs combined, not - just per IP, so a distributed attack spreading attempts against one - account across many IPs can no longer evade the per-IP threshold; a - new per-attempt risk score (known IP/username pairs, common usernames, - missing User-Agent, optional GeoIP country and reverse-DNS signals) - adjusts the delay and allowed-attempts threshold; optional progressive + username are now also counted across all source IPs combined, not just + per IP: once an account has had too many of them ("Distributed Attacks + on One Account", default 20 within 60 minutes), every address trying it + is blocked after fewer attempts, so a distributed attack spreading + attempts against one account across many IPs no longer goes unnoticed + by the per-IP threshold; a new per-attempt risk score (known + IP/username pairs, common usernames, missing User-Agent, optional GeoIP + country and reverse-DNS signals, an attacked account) adjusts the + allowed-attempts threshold; optional progressive (exponential) block duration for repeat offenders; password reset/ username reminder now stay reachable even for a blocked IP - Notifications of failed logins only for existing accounts (#172): the new @@ -392,12 +408,9 @@ and private client addresses reported by the proxy are accepted. Not all proxies append to an incoming header: pick a header yours sets or appends to - - Security: a failed login is now recorded, counted and checked against - the block threshold before the configured delay is applied, not after - it, and a request whose IP address just got (or already is) blocked is - not delayed any more. Before, a burst of parallel login attempts all - ran before the first of them was counted, and every one of them held - on to a server worker for the whole delay + - Security: a failed login is now recorded and counted before anything + else is done with it (the risk score, the mails). Before, a burst of + parallel login attempts all ran before the first of them was counted - Security: usernames of failed logins which do not belong to an existing account (and are not on the list of common usernames) are now stored, shown, logged and mailed as an unreadable hash by default, as users @@ -499,8 +512,8 @@ - Security: the failed logins are indexed by address and by time. With the 200000 of them that are kept at most, the lookups made for every failed login took 9-27 ms each (PostgreSQL 16 / MariaDB 10.11), the one - made when an address gets blocked up to 190 ms on MariaDB, and those of - the adaptive delay 8-18 ms; now each takes below 1 ms, while recording + made when an address gets blocked up to 190 ms on MariaDB; now each + takes below 1 ms, while recording a failed login takes as long as before - Security: the bundled MaxMind DB reader (maxmind-db/reader, now 1.14.0, which limits the decoding of malformed or hostile database files) is @@ -547,11 +560,6 @@ duration instead of a language key - Security: failed logins are purged after 4 weeks by default (set the purge age to 0 for the old behaviour) and limited to 200000 rows - - Security: a response is delayed by 60 seconds at most, however the delay - settings add up, and the account throttle no longer delays an address - that was just blocked. "Delay Duration" and "Maximum Adaptive Delay" go - up to 60 seconds (before: 120); a larger value saved by an earlier - version has to be lowered the next time the settings are saved - Security: unblock tokens are stored as hashes; links sent before the update stop working (they are valid for 3 days only) - Security: usernames in log entries and in mails can no longer contain @@ -581,14 +589,6 @@ user has logged in from that IP address before" sends them; the settings page doesn't take the setting then and says what to add to configuration.php, and the backend warns about a setting saved before - - Security: delays can no longer be used to run the server out of PHP - workers. A delayed response holds a worker for the whole delay, and an - attacker with many addresses (an IPv6 network gives plenty) could send - failed logins in parallel until none was left. At most "Responses - delayed at the same time" (default 5) responses are delayed at once; - further ones are answered without delay, and still counted and blocked. - The risk score adds no delay by default any more ("Delay Seconds Per - Risk Point" 0, before: 2, i.e. 4 seconds for a failed login as "admin") - Security: the reverse DNS risk signal can no longer hold a request for as long as the attacker's name servers like. The lookup is made by the plugin over UDP, with the name servers of /etc/resolv.conf, and given up diff --git a/README.md b/README.md index 47d2277..c0c512d 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # Brute Force Stop for Joomla! Brute Force Stop (BFStop) protects the login of a Joomla! site against -brute-force attacks. It records failed logins, slows down and blocks the IP -addresses (and throttles the accounts) they come from, notifies you about -failed logins and blocks, and lets users who blocked themselves unblock their -address through a link sent by email. +brute-force attacks. It records failed logins, blocks the IP addresses they +come from (sooner when an account is attacked from many addresses), notifies +you about failed logins and blocks, and lets users who blocked themselves +unblock their address through a link sent by email. This repository contains all of BFStop, which is released as one package: @@ -43,21 +43,23 @@ of another, only those of the library. *Components → Brute Force Stop → Settings*. - Joomla! offers updates through its update manager. -### What the delays can and can't do +### Rate limiting Blocking is what protects the login: an address (an IPv6 client: its -network) gets only so many failed logins. The delays - the delay of the -response to a failed login, the adaptive delay, the account throttle and the -delay per point of the risk score - only slow down a client which waits for -one answer before it sends the next attempt. Each delayed response holds a -PHP worker for as long as it is delayed, so at most "delayMaxConcurrent" -responses are delayed at the same time (and none longer than 60 seconds); -any further failed login is answered at once. An attacker who sends many -attempts in parallel, from many addresses, therefore gets most answers -without delay: the account throttle in particular doesn't stop a distributed -attack on one account, it only makes it a little slower. Holding many -connections open cheaply is something only the web server or a proxy in -front of it can do (e.g. nginx's `limit_req`). +network) gets only so many failed logins, fewer if its attempts look risky +or the account it tries is attacked from many addresses at once. BFStop +answers every failed login at once and doesn't slow clients down: since +2.0.0, there are no delay settings any more. A response held back by PHP +holds a PHP worker for as long, so an attacker sending many attempts in +parallel, from many addresses, could run the server out of workers, while a +delay hardly slows down a client which doesn't wait for one answer before +sending the next attempt. Holding many connections open cheaply is something +only the web server or a proxy in front of it can do: to slow down or limit +requests to the login, use e.g. nginx's +[`limit_req`](https://nginx.org/en/docs/http/ngx_http_limit_req_module.html), +Apache's `mod_evasive` or `mod_qos`, or fail2ban. The wiki explains +[why the delays were removed](https://github.com/codeling/bfstop/wiki/Why-No-Delay-Options-in-2.0) +and has examples. ## Resources diff --git a/component/admin/forms/settings.xml b/component/admin/forms/settings.xml index 048265e..134f3d1 100644 --- a/component/admin/forms/settings.xml +++ b/component/admin/forms/settings.xml @@ -224,38 +224,10 @@ label="COM_BFSTOP_SETTINGS_NGINX_DENY_FILE_LABEL" description="COM_BFSTOP_SETTINGS_NGINX_DENY_FILE_DESC" /> -
- - - - - - - - - -
- + @@ -267,10 +239,10 @@ default="60" first="5" last="10080" step="5" label="COM_BFSTOP_SETTINGS_ACCOUNT_CHECK_INTERVAL_LABEL" description="COM_BFSTOP_SETTINGS_ACCOUNT_CHECK_INTERVAL_DESC" /> - +
- vista de configuració del component." -COM_BFSTOP_SETTINGS_ACCOUNT_FIELDSET_LABEL="Limitació a nivell de compte" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_ENABLED_LABEL="Activa la limitació a nivell de compte" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_ENABLED_DESC="Si, a més, s'han de comptar els inicis de sessió fallits per nom d'usuari, sumant totes les adreces IP d'origen que els han intentat, i no només per adreça IP. Així es detecta un atac distribuït que reparteix els intents contra un mateix compte entre moltes IP diferents, cosa que el llindar de bloqueig habitual per IP no pot detectar per si sol. El compte mateix mai no es bloqueja; només s'endarrereixen progressivament els intents fallits." -COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_LABEL="Intents fallits abans de limitar" -COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_DESC="Quants inicis de sessió fallits amb el mateix nom d'usuari, sumant totes les adreces IP d'origen, dins de la finestra de recompte indicada més avall, calen perquè els intents següents amb aquest nom d'usuari rebin un retard addicional." +COM_BFSTOP_SETTINGS_ACCOUNT_FIELDSET_LABEL="Atacs distribuïts contra un compte" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_ENABLED_LABEL="Detecta atacs distribuïts contra un compte" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_ENABLED_DESC="Si també es compten els inicis de sessió fallits per nom d'usuari, sumant totes les adreces IP que els han intentat, i no només per adreça IP. Quan un nom d'usuari n'acumula massa (vegeu més avall), cada adreça que l'intenta té menys intents fallits abans de ser bloquejada: la puntuació de risc dels seus intents augmenta en els punts de més avall. Així es detecta un atac que reparteix els intents contra un compte entre moltes adreces, cosa que el llindar de bloqueig per adreça no pot detectar tot sol. El compte mai no es bloqueja, i un inici de sessió des d'una adreça des de la qual ja s'havia utilitzat el compte continua sent de confiança (vegeu 'IP coneguda' a 'Puntuació de risc adaptativa')." +COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_LABEL="Intents fallits per compte" +COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_DESC="Quants inicis de sessió fallits amb el mateix nom d'usuari, sumant totes les adreces IP, dins de la finestra de recompte de més avall, fan que el compte es consideri atacat." COM_BFSTOP_SETTINGS_ACCOUNT_CHECK_INTERVAL_LABEL="Finestra de recompte (minuts)" COM_BFSTOP_SETTINGS_ACCOUNT_CHECK_INTERVAL_DESC="La finestra de temps (en minuts) dins de la qual es compten els intents fallits amb el mateix nom d'usuari, independentment de l'adreça IP d'origen." -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_DELAY_LABEL="Retard addicional (segons)" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_DELAY_DESC="Quants segons de retard addicional s'afegeixen a cada nou inici de sessió fallit d'un nom d'usuari limitat, a més de qualsevol altre retard ja configurat." +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_POINTS_LABEL="Punts de risc durant un atac" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_POINTS_DESC="Quants punts augmenta la puntuació de risc d'un inici de sessió fallit mentre el seu nom d'usuari es considera atacat. Cada punt deixa a l'adreça menys intents fallits abans del bloqueig, segons el que s'ha configurat a 'Puntuació de risc adaptativa'. 0 només registra l'atac." COM_BFSTOP_SETTINGS_GEOIP_FIELDSET_LABEL="Base de dades GeoIP" COM_BFSTOP_SETTINGS_GEOIP_DB_PATH_LABEL="Ruta de la base de dades GeoIP" COM_BFSTOP_SETTINGS_GEOIP_DB_PATH_DESC="Ruta completa al sistema de fitxers del servidor d'una base de dades .mmdb de MaxMind GeoLite2 (o GeoIP2), per exemple GeoLite2-City.mmdb. Baixeu-vos la vostra pròpia còpia de MaxMind (cal un compte gratuït): BFStop no inclou ni redistribueix aquestes dades. Cal una base de dades del nivell City perquè la vista «Informació de l'adreça IP» mostri regió, ciutat i coordenades; per al senyal de puntuació de risc adaptativa indicada més avall n'hi ha prou amb una base de dades del nivell Country. Deixeu-la buida per desactivar totes dues funcions. La consulta és totalment local; cap adreça IP no s'envia mai a tercers." @@ -153,8 +153,6 @@ COM_BFSTOP_SETTINGS_BLOCK_MODE_OFF="Només informes" COM_BFSTOP_SETTINGS_BLOCK_MODE_LOGINONLY="Només inici de sessió" COM_BFSTOP_SETTINGS_BLOCK_MODE_FULL="Tot el lloc" COM_BFSTOP_SETTINGS_BLOCK_MODE_HTACCESS="Tot el lloc + .htaccess" -COM_BFSTOP_SETTINGS_RISK_DELAY_PER_POINT_LABEL="Segons de retard per punt de risc" -COM_BFSTOP_SETTINGS_RISK_DELAY_PER_POINT_DESC="Quants segons de retard addicional s'afegeixen per cada punt positiu (de risc) de la puntuació de risc combinada, a més del retard configurat més amunt. Una puntuació negativa (de confiança) mai no redueix el retard per sota del configurat més amunt. 0 (el valor per defecte) no afegeix cap retard: cada segon de retard manté ocupat un procés PHP del servidor, vegeu \"Respostes retardades alhora\"." COM_BFSTOP_SETTINGS_RISK_BLOCK_REDUCTION_PER_POINT_LABEL="Canvi del llindar de bloqueig per punt de risc" COM_BFSTOP_SETTINGS_RISK_BLOCK_REDUCTION_PER_POINT_DESC="Quant es redueix (amb una puntuació positiva o de risc) o s'augmenta (amb una puntuació negativa o de confiança) el nombre d'intents fallits permesos abans del bloqueig, per cada punt de la puntuació de risc combinada." COM_BFSTOP_SETTINGS_RISK_MIN_BLOCK_NUMBER_LABEL="Mínim d'intents permesos" @@ -232,8 +230,6 @@ COM_BFSTOP_SETTINGS_NGINX_DENY_FILE_FOREIGN="%1$s existeix i no l'ha escrit BFSt COM_BFSTOP_WARNING_NO_LIVE_SITE="L'adreça del lloc no està definida ($live_site al configuration.php). Llavors Joomla! construeix els enllaços dels correus de Brute Force Stop amb l'amfitrió indicat a cada petició, que un visitant pot triar lliurement - per això no s'envia cap enllaç de desbloqueig i les notificacions als administradors no indiquen cap adreça. Per definir l'adreça, afegiu aquesta línia a la classe del configuration.php del lloc, amb l'adreça amb què s'accedeix al lloc (proposada a partir d'aquesta petició, comproveu-la): %s" COM_BFSTOP_WARNING_NOTIFY_ANY_WITHOUT_LIVE_SITE="S'han d'enviar enllaços de desbloqueig (configuració), però l'adreça del lloc no està definida ($live_site al configuration.php): no s'envia cap enllaç de desbloqueig." COM_BFSTOP_SETTINGS_IPV6_PREFIX_56="/56 (recomanat)" -COM_BFSTOP_SETTINGS_DELAY_MAX_CONCURRENT_LABEL="Respostes retardades alhora" -COM_BFSTOP_SETTINGS_DELAY_MAX_CONCURRENT_DESC="Com a màxim aquest nombre de respostes a inicis de sessió fallits es retarden alhora; les altres es responen immediatament. Una resposta retardada manté ocupat un procés PHP del servidor durant tot el retard, i un atacant amb moltes adreces pot enviar inicis de sessió fallits en paral·lel fins que no quedi cap procés lliure per a altres visitants. Mantingueu aquest valor ben per sota del nombre de processos PHP (p. ex. pm.max_children de PHP-FPM). Els inicis de sessió fallits que es responen immediatament es compten i es bloquegen com sempre." COM_BFSTOP_IP_NETWORK_TOO_LARGE="La xarxa %1$s és massa gran: la longitud del prefix ha de ser com a mínim /%2$d per a IPv4 i /%3$d per a IPv6." COM_BFSTOP_IPADDRESS_TRUSTED_PROXY="Això és (o conté) un servidor intermediari de confiança de la configuració: si es bloqueja al fitxer .htaccess, es rebutjaria qualsevol petició que hi passi." COM_BFSTOP_SETTINGS_HTACCESS_NOT_TIDIED="Brute Force Stop no ha pogut treure els seus bloquejos de %s, que ja no bloqueja: el servidor web continua rebutjant aquestes adreces, també quan els seus bloquejos s'han acabat. Feu que el fitxer es pugui escriure i traieu-les a mà - són a les línies <If> entre '# BEGIN BFStop Blocks' i '# END BFStop Blocks'." diff --git a/component/admin/language/de-DE/de-DE.com_bfstop.ini b/component/admin/language/de-DE/de-DE.com_bfstop.ini index 2b36279..ce5bff3 100644 --- a/component/admin/language/de-DE/de-DE.com_bfstop.ini +++ b/component/admin/language/de-DE/de-DE.com_bfstop.ini @@ -106,15 +106,15 @@ COM_BFSTOP_IP_BLOCKS_USER="Eingegebene Adresse/Bereich (%s) würde die IP-Adress COM_BFSTOP_HEADING_IPRANGE_INFO="IP Bereich Info" COM_BFSTOP_YOUR_IP_IS="Deine IP-Adresse aus der Sicht von BFStop ist %s." COM_BFSTOP_INSTALL_HINT="Brute Force Stop schützt die Website mit den Standardeinstellungen, sobald das Plugin installiert ist (das Paket installiert und aktiviert es). Bitte die Einstellungen in der Einstellungen-Ansicht der Komponente überprüfen." -COM_BFSTOP_SETTINGS_ACCOUNT_FIELDSET_LABEL="Drosselung auf Kontoebene" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_ENABLED_LABEL="Drosselung auf Kontoebene aktivieren" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_ENABLED_DESC="Ob fehlgeschlagene Logins zusätzlich pro Benutzername gezählt werden, summiert über alle Quell-IP-Adressen, von denen sie ausgingen - und nicht nur pro IP-Adresse. So wird ein verteilter Angriff erkannt, der seine Versuche gegen ein einzelnes Konto auf viele verschiedene IPs verteilt, was die übliche Sperrschwelle pro IP allein nicht erkennen kann. Das Konto selbst wird nie gesperrt; nur fehlgeschlagene Versuche werden zunehmend verzögert." -COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_LABEL="Fehlversuche bis zur Drosselung" -COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_DESC="Wie viele fehlgeschlagene Logins für denselben Benutzernamen, summiert über alle Quell-IP-Adressen, innerhalb des unten eingestellten Zählfensters auftreten müssen, bevor weitere Versuche für diesen Benutzernamen zusätzlich verzögert werden." +COM_BFSTOP_SETTINGS_ACCOUNT_FIELDSET_LABEL="Verteilte Angriffe auf ein Konto" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_ENABLED_LABEL="Verteilte Angriffe auf ein Konto erkennen" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_ENABLED_DESC="Ob fehlgeschlagene Logins zusätzlich pro Benutzername gezählt werden, summiert über alle IP-Adressen, von denen sie kamen - nicht nur pro IP-Adresse. Hat ein Benutzername zu viele davon (siehe unten), hat jede Adresse, die ihn versucht, weniger Fehlversuche bis zur Sperre: Die Risikobewertung ihrer Versuche steigt um die unten eingestellten Punkte. So wird ein Angriff erkannt, der seine Versuche auf ein Konto über viele Adressen verteilt, was die Sperrschwelle pro Adresse allein nicht erkennen kann. Das Konto selbst wird nie gesperrt, und ein Login von einer Adresse, von der aus das Konto schon benutzt wurde, gilt weiterhin als vertrauenswürdig (siehe „bekannte IP“ unter „Adaptive Risikobewertung“)." +COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_LABEL="Fehlversuche pro Konto" +COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_DESC="Wie viele fehlgeschlagene Logins für denselben Benutzernamen, summiert über alle IP-Adressen, innerhalb des unten eingestellten Zeitfensters das Konto als angegriffen gelten lassen." COM_BFSTOP_SETTINGS_ACCOUNT_CHECK_INTERVAL_LABEL="Zählfenster (Minuten)" COM_BFSTOP_SETTINGS_ACCOUNT_CHECK_INTERVAL_DESC="Das Zeitfenster (in Minuten), innerhalb dessen fehlgeschlagene Versuche für denselben Benutzernamen gezählt werden, unabhängig von der Quell-IP-Adresse." -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_DELAY_LABEL="Zusätzliche Verzögerung (Sekunden)" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_DELAY_DESC="Wie viele Sekunden zusätzliche Verzögerung jedem weiteren fehlgeschlagenen Login eines gedrosselten Benutzernamens hinzugefügt werden, zusätzlich zu einer bereits eingestellten Verzögerung." +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_POINTS_LABEL="Risikopunkte während eines Angriffs" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_POINTS_DESC="Um wie viele Punkte die Risikobewertung eines fehlgeschlagenen Logins steigt, solange sein Benutzername als angegriffen gilt. Jeder Punkt lässt der Adresse weniger Fehlversuche bis zur Sperre, wie unter „Adaptive Risikobewertung“ eingestellt. 0 protokolliert den Angriff nur." COM_BFSTOP_SETTINGS_GEOIP_FIELDSET_LABEL="GeoIP-Datenbank" COM_BFSTOP_SETTINGS_GEOIP_DB_PATH_LABEL="Pfad der GeoIP-Datenbank" COM_BFSTOP_SETTINGS_GEOIP_DB_PATH_DESC="Vollständiger Pfad im Dateisystem des Servers zu einer MaxMind-GeoLite2-Datenbank (oder GeoIP2-Datenbank) im .mmdb-Format, z.B. GeoLite2-City.mmdb. Lade deine eigene Kopie bei MaxMind herunter (ein kostenloses Konto ist erforderlich) - BFStop enthält und verbreitet diese Daten nicht. Damit die Admin-Ansicht „Informationen zur IP-Adresse“ Region, Stadt und Koordinaten anzeigt, ist eine Datenbank der Stufe City nötig; für das unten beschriebene Signal der adaptiven Risikobewertung genügt eine Datenbank der Stufe Country. Leer lassen, um beides zu deaktivieren. Die Abfrage erfolgt vollständig lokal; es wird nie eine IP-Adresse an Dritte gesendet." @@ -151,8 +151,6 @@ COM_BFSTOP_SETTINGS_BLOCK_MODE_OFF="Nur Berichten" COM_BFSTOP_SETTINGS_BLOCK_MODE_LOGINONLY="Nur Login" COM_BFSTOP_SETTINGS_BLOCK_MODE_FULL="Ganze Website" COM_BFSTOP_SETTINGS_BLOCK_MODE_HTACCESS="Ganze Website + .htaccess" -COM_BFSTOP_SETTINGS_RISK_DELAY_PER_POINT_LABEL="Verzögerung in Sekunden pro Risikopunkt" -COM_BFSTOP_SETTINGS_RISK_DELAY_PER_POINT_DESC="Wie viele Sekunden zusätzliche Verzögerung pro positivem (riskantem) Punkt der kombinierten Risikobewertung hinzugefügt werden, zusätzlich zur oben eingestellten Verzögerung. Eine negative (vertrauenswürdige) Bewertung senkt die Verzögerung nie unter den oben eingestellten Wert. 0 (die Voreinstellung) fügt keine Verzögerung hinzu: jede Sekunde Verzögerung hält einen PHP-Worker des Servers beschäftigt, siehe \"Gleichzeitig verzögerte Antworten\"." COM_BFSTOP_SETTINGS_RISK_BLOCK_REDUCTION_PER_POINT_LABEL="Änderung der Sperrschwelle pro Risikopunkt" COM_BFSTOP_SETTINGS_RISK_BLOCK_REDUCTION_PER_POINT_DESC="Um wie viel die Zahl der erlaubten Fehlversuche vor der Sperre pro Punkt der kombinierten Risikobewertung verringert (bei positiver/riskanter Bewertung) bzw. erhöht (bei negativer/vertrauenswürdiger Bewertung) wird." COM_BFSTOP_SETTINGS_RISK_MIN_BLOCK_NUMBER_LABEL="Minimal erlaubte Versuche" @@ -230,8 +228,6 @@ COM_BFSTOP_SETTINGS_NGINX_DENY_FILE_FOREIGN="%1$s existiert und wurde nicht von COM_BFSTOP_WARNING_NO_LIVE_SITE="Die Adresse der Website ist nicht gesetzt ($live_site in der configuration.php). Joomla! baut die Links in den Emails von Brute Force Stop dann mit dem Host, den die jeweilige Anfrage nennt und den ein Besucher frei wählen kann - deshalb werden keine Entsperr-Links gesendet, und die Benachrichtigungen an die Administratoren nennen keine Adresse. Um die Adresse zu setzen, füge diese Zeile in die Klasse in der configuration.php der Website ein, mit der Adresse, unter der die Website erreichbar ist (aus dieser Anfrage vorgeschlagen, bitte prüfen): %s" COM_BFSTOP_WARNING_NOTIFY_ANY_WITHOUT_LIVE_SITE="Entsperr-Links sollen gesendet werden (Einstellungen), aber die Adresse der Website ist nicht gesetzt ($live_site in der configuration.php): es werden keine Entsperr-Links gesendet." COM_BFSTOP_SETTINGS_IPV6_PREFIX_56="/56 (empfohlen)" -COM_BFSTOP_SETTINGS_DELAY_MAX_CONCURRENT_LABEL="Gleichzeitig verzögerte Antworten" -COM_BFSTOP_SETTINGS_DELAY_MAX_CONCURRENT_DESC="Höchstens so viele Antworten auf fehlgeschlagene Logins werden gleichzeitig verzögert; weitere werden sofort beantwortet. Eine verzögerte Antwort hält einen PHP-Worker des Servers für die ganze Verzögerung beschäftigt, und ein Angreifer mit vielen Adressen kann fehlgeschlagene Logins parallel senden, bis für andere Besucher kein Worker mehr frei ist. Halte den Wert deutlich unter der Zahl der PHP-Worker (z.B. pm.max_children von PHP-FPM). Sofort beantwortete fehlgeschlagene Logins werden wie üblich gezählt und gesperrt." COM_BFSTOP_IP_NETWORK_TOO_LARGE="Das Netz %1$s ist zu groß: seine Präfixlänge muss bei IPv4 mindestens /%2$d und bei IPv6 mindestens /%3$d sein." COM_BFSTOP_IPADDRESS_TRUSTED_PROXY="Das ist (oder enthält) ein vertrauenswürdiger Proxy der Einstellungen: in der .htaccess-Datei gesperrt, würde jede Anfrage abgewiesen, die über ihn kommt." COM_BFSTOP_SETTINGS_HTACCESS_NOT_TIDIED="Brute Force Stop konnte seine Sperren nicht aus %s entfernen, das nicht mehr sperrt: der Webserver weist diese Adressen weiter ab, auch wenn ihre Sperren abgelaufen sind. Machen Sie die Datei beschreibbar und entfernen Sie sie von Hand - sie stehen in den <If>-Zeilen zwischen '# BEGIN BFStop Blocks' und '# END BFStop Blocks'." diff --git a/component/admin/language/en-GB/en-GB.com_bfstop.ini b/component/admin/language/en-GB/en-GB.com_bfstop.ini index 477acef..f0c8b1a 100644 --- a/component/admin/language/en-GB/en-GB.com_bfstop.ini +++ b/component/admin/language/en-GB/en-GB.com_bfstop.ini @@ -106,15 +106,15 @@ COM_BFSTOP_IP_BLOCKS_USER="The entered IP/range (%s) would block the IP address COM_BFSTOP_HEADING_IPRANGE_INFO="IP Range Info" COM_BFSTOP_YOUR_IP_IS="Your IP address as BFStop sees it is %s." COM_BFSTOP_INSTALL_HINT="Brute Force Stop protects your site with its default settings as soon as its plugin is installed (the package installs and enables it). Please review them in the component's Settings view." -COM_BFSTOP_SETTINGS_ACCOUNT_FIELDSET_LABEL="Account-level Throttle" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_ENABLED_LABEL="Enable Account-level Throttle" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_ENABLED_DESC="Whether to also count failed logins per username, added up across every source IP address that attempted them - not just per IP address. This catches a distributed attack that spreads attempts against one account across many different IPs, which the regular per-IP block threshold alone cannot detect. The account itself is never locked out; only failed attempts get progressively delayed." -COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_LABEL="Failed Attempts Before Throttling" -COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_DESC="How many failed logins for the same username, combined across all source IP addresses, within the counting window below, before further attempts for that username get an additional delay." +COM_BFSTOP_SETTINGS_ACCOUNT_FIELDSET_LABEL="Distributed Attacks on One Account" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_ENABLED_LABEL="Detect Distributed Attacks on One Account" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_ENABLED_DESC="Whether to also count failed logins per username, added up across every IP address that attempted them - not just per IP address. Once a username has had too many of them (see below), every address which tries it is allowed fewer failed logins before it is blocked: the risk score of its attempts goes up by the points below. This catches an attack that spreads its attempts against one account over many addresses, which the per-address block threshold alone cannot detect. The account itself is never locked, and logging in from an address the account was used from before is still trusted (see 'Known IP' under 'Adaptive Risk Scoring')." +COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_LABEL="Failed Attempts per Account" +COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_DESC="How many failed logins for the same username, combined across all IP addresses, within the counting window below, make the account count as under attack." COM_BFSTOP_SETTINGS_ACCOUNT_CHECK_INTERVAL_LABEL="Counting Window (Minutes)" COM_BFSTOP_SETTINGS_ACCOUNT_CHECK_INTERVAL_DESC="The time window (in minutes) within which failed attempts for the same username are counted, regardless of source IP address." -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_DELAY_LABEL="Additional Delay (Seconds)" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_DELAY_DESC="How many seconds of additional delay to add to every further failed login for a throttled username, on top of any other delay already configured." +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_POINTS_LABEL="Risk Points While Under Attack" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_POINTS_DESC="By how many points the risk score of a failed login goes up while its username counts as under attack. Each point allows the address fewer failed logins before it is blocked, as set under 'Adaptive Risk Scoring'. 0 only logs the attack." COM_BFSTOP_SETTINGS_GEOIP_FIELDSET_LABEL="GeoIP Database" COM_BFSTOP_SETTINGS_GEOIP_DB_PATH_LABEL="GeoIP Database Path" COM_BFSTOP_SETTINGS_GEOIP_DB_PATH_DESC="Full server filesystem path to a MaxMind GeoLite2 (or GeoIP2) .mmdb database file, e.g. GeoLite2-City.mmdb. Download your own copy from MaxMind (a free account is required) - BFStop does not bundle or redistribute this data. A City-tier database is needed for the 'Information for IP Address' admin view to show region/city/coordinates; a Country-tier database is enough for the adaptive risk scoring signal below. Leave empty to disable both. The lookup is entirely local; no IP address is ever sent to a third party." @@ -151,8 +151,6 @@ COM_BFSTOP_SETTINGS_BLOCK_MODE_OFF="Reporting Only" COM_BFSTOP_SETTINGS_BLOCK_MODE_LOGINONLY="Login Only" COM_BFSTOP_SETTINGS_BLOCK_MODE_FULL="Full Site" COM_BFSTOP_SETTINGS_BLOCK_MODE_HTACCESS="Full Site + .htaccess" -COM_BFSTOP_SETTINGS_RISK_DELAY_PER_POINT_LABEL="Delay Seconds Per Risk Point" -COM_BFSTOP_SETTINGS_RISK_DELAY_PER_POINT_DESC="How many seconds of additional delay to add per positive (risky) point of the combined risk score, on top of the delay configured above. A negative (trusted) score never reduces the delay below what's configured above. 0 (the default) adds no delay: each second of delay keeps a PHP worker of the server busy, see \"Responses delayed at the same time\"." COM_BFSTOP_SETTINGS_RISK_BLOCK_REDUCTION_PER_POINT_LABEL="Block Threshold Change Per Risk Point" COM_BFSTOP_SETTINGS_RISK_BLOCK_REDUCTION_PER_POINT_DESC="How much to reduce (for a positive/risky score) or increase (for a negative/trusted score) the number of allowed failed attempts before blocking, per point of the combined risk score." COM_BFSTOP_SETTINGS_RISK_MIN_BLOCK_NUMBER_LABEL="Minimum Allowed Attempts" @@ -230,8 +228,6 @@ COM_BFSTOP_SETTINGS_NGINX_DENY_FILE_FOREIGN="%1$s exists, and was not written by COM_BFSTOP_WARNING_NO_LIVE_SITE="The site's address is not set ($live_site in configuration.php). Joomla! then builds the links in the emails of Brute Force Stop from the host named by each request, which a visitor can choose freely - so no unblock links are sent, and the notifications to the administrators name no address. To set the address, add this line to the class in the site's configuration.php, with the address under which the site is reached (proposed from this request, please check it): %s" COM_BFSTOP_WARNING_NOTIFY_ANY_WITHOUT_LIVE_SITE="Unblock links are to be sent (settings), but the site's address is not set ($live_site in configuration.php): no unblock links are sent." COM_BFSTOP_SETTINGS_IPV6_PREFIX_56="/56 (recommended)" -COM_BFSTOP_SETTINGS_DELAY_MAX_CONCURRENT_LABEL="Responses delayed at the same time" -COM_BFSTOP_SETTINGS_DELAY_MAX_CONCURRENT_DESC="At most this many responses to failed logins are delayed at the same time; further ones are answered at once. A delayed response keeps a PHP worker of the server busy for the whole delay, and an attacker with many addresses can send failed logins in parallel until no worker is left for other visitors. Keep this well below the number of PHP workers (e.g. pm.max_children of PHP-FPM). Failed logins which are answered at once are counted and blocked as usual." COM_BFSTOP_IP_NETWORK_TOO_LARGE="The network %1$s is too large: its prefix length has to be at least /%2$d for IPv4 and /%3$d for IPv6." COM_BFSTOP_IPADDRESS_TRUSTED_PROXY="This is (or contains) a trusted proxy of the settings: blocked in the .htaccess file, every request coming through it would be turned away." COM_BFSTOP_SETTINGS_HTACCESS_NOT_TIDIED="Brute Force Stop could not take its blocks out of %s, which no longer blocks: the web server goes on refusing these addresses, also once their blocks are over. Make the file writable and remove them by hand - they are in the <If> lines between '# BEGIN BFStop Blocks' and '# END BFStop Blocks'." diff --git a/component/admin/language/es-ES/es-ES.com_bfstop.ini b/component/admin/language/es-ES/es-ES.com_bfstop.ini index 46632e7..80e54bb 100644 --- a/component/admin/language/es-ES/es-ES.com_bfstop.ini +++ b/component/admin/language/es-ES/es-ES.com_bfstop.ini @@ -106,15 +106,15 @@ COM_BFSTOP_IP_BLOCKS_USER="¡La IP o el rango introducido (%s) bloquearía la di COM_BFSTOP_HEADING_IPRANGE_INFO="Información del rango de IP" COM_BFSTOP_YOUR_IP_IS="Su dirección IP, tal como la ve BFStop, es %s." COM_BFSTOP_INSTALL_HINT="Brute Force Stop protege su sitio con la configuración predeterminada en cuanto se instala su plugin (el paquete lo instala y lo activa). Revise la configuración en la vista de configuración del componente." -COM_BFSTOP_SETTINGS_ACCOUNT_FIELDSET_LABEL="Limitación a nivel de cuenta" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_ENABLED_LABEL="Activar la limitación a nivel de cuenta" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_ENABLED_DESC="Si, además, se deben contar los inicios de sesión fallidos por nombre de usuario, sumando todas las direcciones IP de origen que los intentaron, y no solo por dirección IP. Así se detecta un ataque distribuido que reparte los intentos contra una misma cuenta entre muchas IP distintas, algo que el umbral de bloqueo habitual por IP no puede detectar por sí solo. La cuenta en sí nunca se bloquea; solo se retrasan progresivamente los intentos fallidos." -COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_LABEL="Intentos fallidos antes de limitar" -COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_DESC="Cuántos inicios de sesión fallidos con el mismo nombre de usuario, sumando todas las direcciones IP de origen, dentro de la ventana de recuento indicada abajo, hacen falta para que los siguientes intentos con ese nombre de usuario reciban un retardo adicional." +COM_BFSTOP_SETTINGS_ACCOUNT_FIELDSET_LABEL="Ataques distribuidos contra una cuenta" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_ENABLED_LABEL="Detectar ataques distribuidos contra una cuenta" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_ENABLED_DESC="Si también se cuentan los inicios de sesión fallidos por nombre de usuario, sumando todas las direcciones IP desde las que se intentaron, y no solo por dirección IP. Cuando un nombre de usuario acumula demasiados (ver abajo), cada dirección que lo intenta tiene menos intentos fallidos antes de ser bloqueada: la puntuación de riesgo de sus intentos sube en los puntos indicados abajo. Así se detecta un ataque que reparte sus intentos contra una cuenta entre muchas direcciones, algo que el umbral de bloqueo por dirección no puede detectar por sí solo. La cuenta nunca se bloquea, y un inicio de sesión desde una dirección desde la que ya se usó la cuenta sigue siendo de confianza (ver 'IP conocida' en 'Puntuación de riesgo adaptativa')." +COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_LABEL="Intentos fallidos por cuenta" +COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_DESC="Cuántos inicios de sesión fallidos con el mismo nombre de usuario, sumando todas las direcciones IP, dentro de la ventana de recuento de abajo, hacen que la cuenta se considere atacada." COM_BFSTOP_SETTINGS_ACCOUNT_CHECK_INTERVAL_LABEL="Ventana de recuento (minutos)" COM_BFSTOP_SETTINGS_ACCOUNT_CHECK_INTERVAL_DESC="La ventana de tiempo (en minutos) dentro de la cual se cuentan los intentos fallidos con el mismo nombre de usuario, independientemente de la dirección IP de origen." -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_DELAY_LABEL="Retardo adicional (segundos)" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_DELAY_DESC="Cuántos segundos de retardo adicional se añaden a cada nuevo inicio de sesión fallido de un nombre de usuario limitado, además de cualquier otro retardo ya configurado." +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_POINTS_LABEL="Puntos de riesgo durante un ataque" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_POINTS_DESC="Cuántos puntos sube la puntuación de riesgo de un inicio de sesión fallido mientras su nombre de usuario se considera atacado. Cada punto deja a la dirección menos intentos fallidos antes del bloqueo, según lo configurado en 'Puntuación de riesgo adaptativa'. 0 solo registra el ataque." COM_BFSTOP_SETTINGS_GEOIP_FIELDSET_LABEL="Base de datos GeoIP" COM_BFSTOP_SETTINGS_GEOIP_DB_PATH_LABEL="Ruta de la base de datos GeoIP" COM_BFSTOP_SETTINGS_GEOIP_DB_PATH_DESC="Ruta completa en el sistema de archivos del servidor de una base de datos .mmdb de MaxMind GeoLite2 (o GeoIP2), por ejemplo GeoLite2-City.mmdb. Descargue su propia copia de MaxMind (se necesita una cuenta gratuita): BFStop no incluye ni redistribuye estos datos. Se necesita una base de datos del nivel City para que la vista «Información de la dirección IP» muestre región, ciudad y coordenadas; para la señal de puntuación de riesgo adaptativa indicada más abajo basta una base de datos del nivel Country. Déjela vacía para desactivar ambas funciones. La consulta es totalmente local; ninguna dirección IP se envía nunca a terceros." @@ -151,8 +151,6 @@ COM_BFSTOP_SETTINGS_BLOCK_MODE_OFF="Solo informes" COM_BFSTOP_SETTINGS_BLOCK_MODE_LOGINONLY="Solo inicio de sesión" COM_BFSTOP_SETTINGS_BLOCK_MODE_FULL="Todo el sitio" COM_BFSTOP_SETTINGS_BLOCK_MODE_HTACCESS="Todo el sitio + .htaccess" -COM_BFSTOP_SETTINGS_RISK_DELAY_PER_POINT_LABEL="Segundos de retardo por punto de riesgo" -COM_BFSTOP_SETTINGS_RISK_DELAY_PER_POINT_DESC="Cuántos segundos de retardo adicional se añaden por cada punto positivo (de riesgo) de la puntuación de riesgo combinada, además del retardo configurado arriba. Una puntuación negativa (de confianza) nunca reduce el retardo por debajo del configurado arriba. 0 (el valor por defecto) no añade retraso: cada segundo de retraso mantiene ocupado un proceso PHP del servidor, véase \"Respuestas retrasadas a la vez\"." COM_BFSTOP_SETTINGS_RISK_BLOCK_REDUCTION_PER_POINT_LABEL="Cambio del umbral de bloqueo por punto de riesgo" COM_BFSTOP_SETTINGS_RISK_BLOCK_REDUCTION_PER_POINT_DESC="Cuánto se reduce (con una puntuación positiva o de riesgo) o se aumenta (con una puntuación negativa o de confianza) el número de intentos fallidos permitidos antes del bloqueo, por cada punto de la puntuación de riesgo combinada." COM_BFSTOP_SETTINGS_RISK_MIN_BLOCK_NUMBER_LABEL="Mínimo de intentos permitidos" @@ -230,8 +228,6 @@ COM_BFSTOP_SETTINGS_NGINX_DENY_FILE_FOREIGN="%1$s existe y no lo escribió BFSto COM_BFSTOP_WARNING_NO_LIVE_SITE="La dirección del sitio no está definida ($live_site en configuration.php). Entonces Joomla! construye los enlaces de los correos de Brute Force Stop con el host indicado en cada petición, que un visitante puede elegir libremente - por eso no se envían enlaces de desbloqueo y las notificaciones a los administradores no indican ninguna dirección. Para definir la dirección, añada esta línea a la clase del configuration.php del sitio, con la dirección en la que se accede al sitio (propuesta a partir de esta petición, compruébela): %s" COM_BFSTOP_WARNING_NOTIFY_ANY_WITHOUT_LIVE_SITE="Se deben enviar enlaces de desbloqueo (configuración), pero la dirección del sitio no está definida ($live_site en configuration.php): no se envían enlaces de desbloqueo." COM_BFSTOP_SETTINGS_IPV6_PREFIX_56="/56 (recomendado)" -COM_BFSTOP_SETTINGS_DELAY_MAX_CONCURRENT_LABEL="Respuestas retrasadas a la vez" -COM_BFSTOP_SETTINGS_DELAY_MAX_CONCURRENT_DESC="Como máximo se retrasan a la vez este número de respuestas a inicios de sesión fallidos; las demás se responden de inmediato. Una respuesta retrasada mantiene ocupado un proceso PHP del servidor durante todo el retraso, y un atacante con muchas direcciones puede enviar inicios de sesión fallidos en paralelo hasta que no quede ningún proceso libre para otros visitantes. Mantenga este valor muy por debajo del número de procesos PHP (p. ej. pm.max_children de PHP-FPM). Los inicios de sesión fallidos que se responden de inmediato se cuentan y bloquean como siempre." COM_BFSTOP_IP_NETWORK_TOO_LARGE="La red %1$s es demasiado grande: la longitud de su prefijo debe ser al menos /%2$d para IPv4 y /%3$d para IPv6." COM_BFSTOP_IPADDRESS_TRUSTED_PROXY="Esto es (o contiene) un proxy de confianza de la configuración: bloqueado en el archivo .htaccess, se rechazaría cualquier petición que pase por él." COM_BFSTOP_SETTINGS_HTACCESS_NOT_TIDIED="Brute Force Stop no pudo quitar sus bloqueos de %s, que ya no bloquea: el servidor web sigue rechazando estas direcciones, también cuando sus bloqueos han terminado. Haga el archivo escribible y quítelas a mano - están en las líneas <If> entre '# BEGIN BFStop Blocks' y '# END BFStop Blocks'." diff --git a/component/admin/language/fr-FR/fr-FR.com_bfstop.ini b/component/admin/language/fr-FR/fr-FR.com_bfstop.ini index bdba277..d24050f 100644 --- a/component/admin/language/fr-FR/fr-FR.com_bfstop.ini +++ b/component/admin/language/fr-FR/fr-FR.com_bfstop.ini @@ -114,15 +114,15 @@ COM_BFSTOP_DESC_BLOCK_CRDATE="La date / l'heure de mise en oeuvre du blocage" COM_BFSTOP_DESC_ALLOWLIST_IPADDRESS="L'adresse IP (ou le sous-réseau) pour lequel l'accès à ce site est toujours autorisé (les contrôles réalisés par le plugin sont désactivés). Les sous-réseaux sont spécifiés dans la notation de suffixe de CIDR, c'est à dire au moyen d'un bloc défini par le préfixe (par exemple 192.168.0.0) suivi de / puis du nombre de bits représentant la taille du bloc (par exemple '192.168.0.0/24')" COM_BFSTOP_DESC_ALLOWLIST_NOTES="Saisissez la note de votre choix pour l'entrée de la liste blanche, par exemple la date de sa création ou l'utilisateur pour lequel elle a été créée." COM_BFSTOP_INSTALL_HINT="Brute Force Stop protège votre site avec ses réglages par défaut dès que son plugin est installé (le paquet l'installe et l'active). Veuillez vérifier les réglages dans la vue Réglages du composant." -COM_BFSTOP_SETTINGS_ACCOUNT_FIELDSET_LABEL="Limitation au niveau du compte" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_ENABLED_LABEL="Activer la limitation au niveau du compte" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_ENABLED_DESC="Indique s'il faut aussi compter les échecs de connexion par nom d'utilisateur, toutes adresses IP sources confondues, et pas seulement par adresse IP. Cela permet de détecter une attaque distribuée qui répartit ses tentatives contre un même compte entre de nombreuses adresses IP différentes, ce que le seuil de blocage habituel par adresse IP ne peut pas détecter à lui seul. Le compte lui-même n'est jamais verrouillé ; seules les tentatives échouées sont retardées progressivement." -COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_LABEL="Échecs avant limitation" -COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_DESC="Nombre d'échecs de connexion pour un même nom d'utilisateur, toutes adresses IP sources confondues, dans la fenêtre de comptage ci-dessous, à partir duquel les tentatives suivantes pour ce nom d'utilisateur subissent un délai supplémentaire." +COM_BFSTOP_SETTINGS_ACCOUNT_FIELDSET_LABEL="Attaques distribuées contre un compte" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_ENABLED_LABEL="Détecter les attaques distribuées contre un compte" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_ENABLED_DESC="Compter aussi les échecs de connexion par nom d'utilisateur, toutes adresses IP confondues, et pas seulement par adresse IP. Dès qu'un nom d'utilisateur en a accumulé trop (voir ci-dessous), chaque adresse qui l'essaie a droit à moins d'échecs avant d'être bloquée : le score de risque de ses tentatives augmente des points indiqués ci-dessous. Cela détecte une attaque qui répartit ses tentatives contre un compte sur de nombreuses adresses, ce que le seuil de blocage par adresse ne peut pas détecter à lui seul. Le compte lui-même n'est jamais verrouillé, et une connexion depuis une adresse déjà utilisée pour ce compte reste digne de confiance (voir « IP connue » dans « Score de risque adaptatif »)." +COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_LABEL="Échecs par compte" +COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_DESC="Combien d'échecs de connexion pour le même nom d'utilisateur, toutes adresses IP confondues, dans la fenêtre de comptage ci-dessous, font considérer le compte comme attaqué." COM_BFSTOP_SETTINGS_ACCOUNT_CHECK_INTERVAL_LABEL="Fenêtre de comptage (minutes)" COM_BFSTOP_SETTINGS_ACCOUNT_CHECK_INTERVAL_DESC="La fenêtre de temps (en minutes) pendant laquelle les tentatives échouées pour un même nom d'utilisateur sont comptées, quelle que soit l'adresse IP source." -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_DELAY_LABEL="Délai supplémentaire (secondes)" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_DELAY_DESC="Nombre de secondes de délai supplémentaire ajoutées à chaque nouvel échec de connexion d'un nom d'utilisateur limité, en plus de tout autre délai déjà configuré." +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_POINTS_LABEL="Points de risque pendant une attaque" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_POINTS_DESC="De combien de points le score de risque d'un échec de connexion augmente tant que son nom d'utilisateur est considéré comme attaqué. Chaque point laisse à l'adresse moins d'échecs avant le blocage, selon le réglage de « Score de risque adaptatif ». 0 ne fait que journaliser l'attaque." COM_BFSTOP_SETTINGS_GEOIP_FIELDSET_LABEL="Base de données GeoIP" COM_BFSTOP_SETTINGS_GEOIP_DB_PATH_LABEL="Chemin de la base de données GeoIP" COM_BFSTOP_SETTINGS_GEOIP_DB_PATH_DESC="Chemin complet, dans le système de fichiers du serveur, d'une base de données .mmdb MaxMind GeoLite2 (ou GeoIP2), par exemple GeoLite2-City.mmdb. Téléchargez votre propre copie chez MaxMind (un compte gratuit est nécessaire) : BFStop n'inclut ni ne redistribue ces données. Une base de niveau City est nécessaire pour que la vue d'administration « Informations sur l'adresse IP » affiche région, ville et coordonnées ; une base de niveau Country suffit pour le signal de score de risque adaptatif ci-dessous. Laissez vide pour désactiver les deux. La recherche est entièrement locale ; aucune adresse IP n'est jamais envoyée à un tiers." @@ -159,8 +159,6 @@ COM_BFSTOP_SETTINGS_BLOCK_MODE_OFF="Rapport seulement" COM_BFSTOP_SETTINGS_BLOCK_MODE_LOGINONLY="Connexion seulement" COM_BFSTOP_SETTINGS_BLOCK_MODE_FULL="Site entier" COM_BFSTOP_SETTINGS_BLOCK_MODE_HTACCESS="Site entier + .htaccess" -COM_BFSTOP_SETTINGS_RISK_DELAY_PER_POINT_LABEL="Secondes de délai par point de risque" -COM_BFSTOP_SETTINGS_RISK_DELAY_PER_POINT_DESC="Nombre de secondes de délai supplémentaire à ajouter par point positif (risqué) du score de risque combiné, en plus du délai configuré ci-dessus. Un score négatif (de confiance) ne réduit jamais le délai en dessous de celui configuré ci-dessus. 0 (la valeur par défaut) n'ajoute aucun délai : chaque seconde de délai occupe un processus PHP du serveur, voir \"Réponses retardées en même temps\"." COM_BFSTOP_SETTINGS_RISK_BLOCK_REDUCTION_PER_POINT_LABEL="Variation du seuil de blocage par point de risque" COM_BFSTOP_SETTINGS_RISK_BLOCK_REDUCTION_PER_POINT_DESC="De combien réduire (pour un score positif / risqué) ou augmenter (pour un score négatif / de confiance) le nombre d'échecs autorisés avant blocage, par point du score de risque combiné." COM_BFSTOP_SETTINGS_RISK_MIN_BLOCK_NUMBER_LABEL="Nombre minimal de tentatives autorisées" @@ -238,8 +236,6 @@ COM_BFSTOP_SETTINGS_NGINX_DENY_FILE_FOREIGN="%1$s existe et n'a pas été écrit COM_BFSTOP_WARNING_NO_LIVE_SITE="L'adresse du site n'est pas définie ($live_site dans configuration.php). Joomla! construit alors les liens des e-mails de Brute Force Stop à partir de l'hôte indiqué par chaque requête, qu'un visiteur peut choisir librement - c'est pourquoi aucun lien de déblocage n'est envoyé et les notifications aux administrateurs n'indiquent pas d'adresse. Pour définir l'adresse, ajoutez cette ligne à la classe du fichier configuration.php du site, avec l'adresse à laquelle le site est accessible (proposée d'après cette requête, veuillez la vérifier) : %s" COM_BFSTOP_WARNING_NOTIFY_ANY_WITHOUT_LIVE_SITE="Des liens de déblocage doivent être envoyés (paramètres), mais l'adresse du site n'est pas définie ($live_site dans configuration.php) : aucun lien de déblocage n'est envoyé." COM_BFSTOP_SETTINGS_IPV6_PREFIX_56="/56 (recommandé)" -COM_BFSTOP_SETTINGS_DELAY_MAX_CONCURRENT_LABEL="Réponses retardées en même temps" -COM_BFSTOP_SETTINGS_DELAY_MAX_CONCURRENT_DESC="Au plus ce nombre de réponses à des échecs de connexion sont retardées en même temps ; les autres reçoivent une réponse immédiate. Une réponse retardée occupe un processus PHP du serveur pendant tout le délai, et un attaquant disposant de nombreuses adresses peut envoyer des échecs de connexion en parallèle jusqu'à ce qu'il ne reste plus de processus pour les autres visiteurs. Gardez cette valeur bien en dessous du nombre de processus PHP (p. ex. pm.max_children de PHP-FPM). Les échecs de connexion qui reçoivent une réponse immédiate sont comptés et bloqués comme d'habitude." COM_BFSTOP_IP_NETWORK_TOO_LARGE="Le réseau %1$s est trop grand : la longueur de son préfixe doit être d'au moins /%2$d pour IPv4 et /%3$d pour IPv6." COM_BFSTOP_IPADDRESS_TRUSTED_PROXY="Il s'agit (ou cela contient) d'un proxy de confiance des paramètres : bloqué dans le fichier .htaccess, toute requête passant par lui serait refusée." COM_BFSTOP_SETTINGS_HTACCESS_NOT_TIDIED="Brute Force Stop n'a pas pu retirer ses blocages de %s, qui ne bloque plus : le serveur web continue de refuser ces adresses, même une fois leurs blocages terminés. Rendez le fichier accessible en écriture et retirez-les à la main - elles se trouvent dans les lignes <If> entre '# BEGIN BFStop Blocks' et '# END BFStop Blocks'." diff --git a/component/admin/language/it-IT/it-IT.com_bfstop.ini b/component/admin/language/it-IT/it-IT.com_bfstop.ini index f04f9d6..1d54295 100644 --- a/component/admin/language/it-IT/it-IT.com_bfstop.ini +++ b/component/admin/language/it-IT/it-IT.com_bfstop.ini @@ -106,15 +106,15 @@ COM_BFSTOP_IP_BLOCKS_USER="L'IP o l'intervallo inserito (%s) bloccherebbe l'indi COM_BFSTOP_HEADING_IPRANGE_INFO="Informazioni sull'intervallo IP" COM_BFSTOP_YOUR_IP_IS="Il tuo indirizzo IP, come lo vede BFStop, è %s." COM_BFSTOP_INSTALL_HINT="Brute Force Stop protegge il sito con le impostazioni predefinite non appena il suo plugin è installato (il pacchetto lo installa e lo attiva). Controlla le impostazioni nella vista Impostazioni del componente." -COM_BFSTOP_SETTINGS_ACCOUNT_FIELDSET_LABEL="Limitazione a livello di account" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_ENABLED_LABEL="Attiva la limitazione a livello di account" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_ENABLED_DESC="Indica se contare gli accessi falliti anche per nome utente, sommando tutti gli indirizzi IP di origine che li hanno tentati, e non solo per indirizzo IP. Così si individua un attacco distribuito che ripartisce i tentativi contro un solo account su molti IP diversi, cosa che la normale soglia di blocco per IP da sola non può rilevare. L'account in sé non viene mai bloccato: vengono solo ritardati progressivamente i tentativi falliti." -COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_LABEL="Tentativi falliti prima della limitazione" -COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_DESC="Quanti accessi falliti per lo stesso nome utente, sommando tutti gli indirizzi IP di origine, entro la finestra di conteggio indicata sotto, servono prima che gli ulteriori tentativi per quel nome utente subiscano un ritardo aggiuntivo." +COM_BFSTOP_SETTINGS_ACCOUNT_FIELDSET_LABEL="Attacchi distribuiti contro un account" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_ENABLED_LABEL="Rileva gli attacchi distribuiti contro un account" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_ENABLED_DESC="Se contare gli accessi falliti anche per nome utente, sommando tutti gli indirizzi IP da cui sono stati tentati, e non solo per indirizzo IP. Quando un nome utente ne ha accumulati troppi (vedi sotto), ogni indirizzo che lo prova ha meno tentativi falliti prima di essere bloccato: il punteggio di rischio dei suoi tentativi aumenta dei punti indicati sotto. Così si rileva un attacco che distribuisce i tentativi contro un account su molti indirizzi, cosa che la soglia di blocco per indirizzo da sola non può rilevare. L'account stesso non viene mai bloccato, e un accesso da un indirizzo da cui l'account è già stato usato resta affidabile (vedi «IP noto» in «Punteggio di rischio adattivo»)." +COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_LABEL="Tentativi falliti per account" +COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_DESC="Quanti accessi falliti per lo stesso nome utente, sommando tutti gli indirizzi IP, entro la finestra di conteggio sotto, fanno considerare l'account sotto attacco." COM_BFSTOP_SETTINGS_ACCOUNT_CHECK_INTERVAL_LABEL="Finestra di conteggio (minuti)" COM_BFSTOP_SETTINGS_ACCOUNT_CHECK_INTERVAL_DESC="La finestra di tempo (in minuti) entro cui vengono contati i tentativi falliti per lo stesso nome utente, indipendentemente dall'indirizzo IP di origine." -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_DELAY_LABEL="Ritardo aggiuntivo (secondi)" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_DELAY_DESC="Quanti secondi di ritardo aggiuntivo aggiungere a ogni ulteriore accesso fallito per un nome utente limitato, oltre a ogni altro ritardo già configurato." +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_POINTS_LABEL="Punti di rischio durante un attacco" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_POINTS_DESC="Di quanti punti aumenta il punteggio di rischio di un accesso fallito finché il suo nome utente è considerato sotto attacco. Ogni punto lascia all'indirizzo meno tentativi falliti prima del blocco, secondo quanto impostato in «Punteggio di rischio adattivo». 0 registra soltanto l'attacco." COM_BFSTOP_SETTINGS_GEOIP_FIELDSET_LABEL="Database GeoIP" COM_BFSTOP_SETTINGS_GEOIP_DB_PATH_LABEL="Percorso del database GeoIP" COM_BFSTOP_SETTINGS_GEOIP_DB_PATH_DESC="Percorso completo, nel file system del server, di un database .mmdb MaxMind GeoLite2 (o GeoIP2), ad esempio GeoLite2-City.mmdb. Scarica la tua copia da MaxMind (serve un account gratuito): BFStop non include né ridistribuisce questi dati. Serve un database di livello City perché la vista «Informazioni sull'indirizzo IP» mostri regione, città e coordinate; per il segnale del punteggio di rischio adattivo indicato sotto basta un database di livello Country. Lascia vuoto per disattivare entrambi. La ricerca è interamente locale; nessun indirizzo IP viene mai inviato a terzi." @@ -151,8 +151,6 @@ COM_BFSTOP_SETTINGS_BLOCK_MODE_OFF="Solo segnalazione" COM_BFSTOP_SETTINGS_BLOCK_MODE_LOGINONLY="Solo accesso" COM_BFSTOP_SETTINGS_BLOCK_MODE_FULL="Intero sito" COM_BFSTOP_SETTINGS_BLOCK_MODE_HTACCESS="Intero sito + .htaccess" -COM_BFSTOP_SETTINGS_RISK_DELAY_PER_POINT_LABEL="Secondi di ritardo per punto di rischio" -COM_BFSTOP_SETTINGS_RISK_DELAY_PER_POINT_DESC="Quanti secondi di ritardo aggiuntivo aggiungere per ogni punto positivo (rischioso) del punteggio di rischio combinato, oltre al ritardo configurato sopra. Un punteggio negativo (di fiducia) non riduce mai il ritardo al di sotto di quello configurato sopra. 0 (il valore predefinito) non aggiunge ritardo: ogni secondo di ritardo tiene occupato un processo PHP del server, vedi \"Risposte ritardate contemporaneamente\"." COM_BFSTOP_SETTINGS_RISK_BLOCK_REDUCTION_PER_POINT_LABEL="Variazione della soglia di blocco per punto di rischio" COM_BFSTOP_SETTINGS_RISK_BLOCK_REDUCTION_PER_POINT_DESC="Di quanto ridurre (con punteggio positivo / rischioso) o aumentare (con punteggio negativo / di fiducia) il numero di tentativi falliti consentiti prima del blocco, per ogni punto del punteggio di rischio combinato." COM_BFSTOP_SETTINGS_RISK_MIN_BLOCK_NUMBER_LABEL="Tentativi minimi consentiti" @@ -230,8 +228,6 @@ COM_BFSTOP_SETTINGS_NGINX_DENY_FILE_FOREIGN="%1$s esiste e non è stato scritto COM_BFSTOP_WARNING_NO_LIVE_SITE="L'indirizzo del sito non è impostato ($live_site in configuration.php). Joomla! costruisce allora i link nelle email di Brute Force Stop dall'host indicato in ogni richiesta, che un visitatore può scegliere liberamente - per questo non vengono inviati link di sblocco e le notifiche agli amministratori non indicano alcun indirizzo. Per impostare l'indirizzo, aggiungi questa riga alla classe nel configuration.php del sito, con l'indirizzo con cui si raggiunge il sito (proposto in base a questa richiesta, verificalo): %s" COM_BFSTOP_WARNING_NOTIFY_ANY_WITHOUT_LIVE_SITE="I link di sblocco devono essere inviati (impostazioni), ma l'indirizzo del sito non è impostato ($live_site in configuration.php): non viene inviato alcun link di sblocco." COM_BFSTOP_SETTINGS_IPV6_PREFIX_56="/56 (consigliato)" -COM_BFSTOP_SETTINGS_DELAY_MAX_CONCURRENT_LABEL="Risposte ritardate contemporaneamente" -COM_BFSTOP_SETTINGS_DELAY_MAX_CONCURRENT_DESC="Al massimo questo numero di risposte ad accessi falliti viene ritardato contemporaneamente; le altre ricevono subito una risposta. Una risposta ritardata tiene occupato un processo PHP del server per tutto il ritardo, e un attaccante con molti indirizzi può inviare accessi falliti in parallelo finché non resta alcun processo libero per gli altri visitatori. Mantieni questo valore ben al di sotto del numero di processi PHP (ad es. pm.max_children di PHP-FPM). Gli accessi falliti a cui si risponde subito vengono contati e bloccati come al solito." COM_BFSTOP_IP_NETWORK_TOO_LARGE="La rete %1$s è troppo grande: la lunghezza del prefisso deve essere almeno /%2$d per IPv4 e /%3$d per IPv6." COM_BFSTOP_IPADDRESS_TRUSTED_PROXY="Questo è (o contiene) un proxy attendibile delle impostazioni: bloccato nel file .htaccess, ogni richiesta che passa da esso verrebbe respinta." COM_BFSTOP_SETTINGS_HTACCESS_NOT_TIDIED="Brute Force Stop non è riuscito a togliere i suoi blocchi da %s, che non blocca più: il server web continua a rifiutare questi indirizzi, anche quando i loro blocchi sono terminati. Rendi il file scrivibile e toglili a mano - si trovano nelle righe <If> tra '# BEGIN BFStop Blocks' e '# END BFStop Blocks'." diff --git a/component/admin/language/nl-NL/nl-NL.com_bfstop.ini b/component/admin/language/nl-NL/nl-NL.com_bfstop.ini index ea1b76f..6d1cc5c 100644 --- a/component/admin/language/nl-NL/nl-NL.com_bfstop.ini +++ b/component/admin/language/nl-NL/nl-NL.com_bfstop.ini @@ -107,15 +107,15 @@ COM_BFSTOP_IP_BLOCKS_USER="Het ingevoerde IP/bereik (%s) zou het IP-adres blokke COM_BFSTOP_HEADING_IPRANGE_INFO="Informatie over IP-bereik" COM_BFSTOP_YOUR_IP_IS="Je IP-adres zoals BFStop het ziet is %s." COM_BFSTOP_INSTALL_HINT="Brute Force Stop beschermt uw site met de standaardinstellingen zodra de plugin is geïnstalleerd (het pakket installeert en activeert deze). Controleer de instellingen in de instellingenweergave van het component." -COM_BFSTOP_SETTINGS_ACCOUNT_FIELDSET_LABEL="Beperking op accountniveau" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_ENABLED_LABEL="Beperking op accountniveau inschakelen" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_ENABLED_DESC="Of mislukte aanmeldingen ook per gebruikersnaam worden geteld, opgeteld over alle bron-IP-adressen die het hebben geprobeerd - en niet alleen per IP-adres. Zo wordt een gedistribueerde aanval opgemerkt die de pogingen tegen één account over veel verschillende IP's verspreidt, wat de gewone blokkadedrempel per IP alleen niet kan detecteren. Het account zelf wordt nooit vergrendeld; alleen mislukte pogingen worden steeds verder vertraagd." -COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_LABEL="Mislukte pogingen vóór beperking" -COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_DESC="Hoeveel mislukte aanmeldingen voor dezelfde gebruikersnaam, opgeteld over alle bron-IP-adressen, binnen het hieronder ingestelde telvenster nodig zijn voordat verdere pogingen voor die gebruikersnaam extra worden vertraagd." +COM_BFSTOP_SETTINGS_ACCOUNT_FIELDSET_LABEL="Verspreide aanvallen op één account" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_ENABLED_LABEL="Verspreide aanvallen op één account herkennen" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_ENABLED_DESC="Of mislukte aanmeldingen ook per gebruikersnaam worden geteld, opgeteld over alle IP-adressen waarvandaan ze kwamen, en niet alleen per IP-adres. Zodra een gebruikersnaam er te veel heeft (zie hieronder), krijgt elk adres dat hem probeert minder mislukte pogingen voordat het wordt geblokkeerd: de risicoscore van zijn pogingen stijgt met de punten hieronder. Zo wordt een aanval herkend die zijn pogingen op één account over veel adressen verspreidt, wat de blokkeerdrempel per adres alleen niet kan zien. Het account zelf wordt nooit vergrendeld, en een aanmelding vanaf een adres waarvandaan het account al eerder is gebruikt, blijft vertrouwd (zie 'bekend IP' onder 'Adaptieve risicoscore')." +COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_LABEL="Mislukte pogingen per account" +COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_DESC="Hoeveel mislukte aanmeldingen voor dezelfde gebruikersnaam, opgeteld over alle IP-adressen, binnen het telvenster hieronder ervoor zorgen dat het account als aangevallen geldt." COM_BFSTOP_SETTINGS_ACCOUNT_CHECK_INTERVAL_LABEL="Telvenster (minuten)" COM_BFSTOP_SETTINGS_ACCOUNT_CHECK_INTERVAL_DESC="Het tijdvenster (in minuten) waarbinnen mislukte pogingen voor dezelfde gebruikersnaam worden geteld, ongeacht het bron-IP-adres." -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_DELAY_LABEL="Extra vertraging (seconden)" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_DELAY_DESC="Hoeveel seconden extra vertraging worden toegevoegd aan elke verdere mislukte aanmelding voor een beperkte gebruikersnaam, bovenop elke andere al ingestelde vertraging." +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_POINTS_LABEL="Risicopunten tijdens een aanval" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_POINTS_DESC="Met hoeveel punten de risicoscore van een mislukte aanmelding stijgt zolang de gebruikersnaam als aangevallen geldt. Elk punt laat het adres minder mislukte pogingen vóór de blokkering, zoals ingesteld onder 'Adaptieve risicoscore'. 0 legt de aanval alleen vast in het logboek." COM_BFSTOP_SETTINGS_GEOIP_FIELDSET_LABEL="GeoIP-database" COM_BFSTOP_SETTINGS_GEOIP_DB_PATH_LABEL="Pad naar de GeoIP-database" COM_BFSTOP_SETTINGS_GEOIP_DB_PATH_DESC="Volledig pad in het bestandssysteem van de server naar een MaxMind GeoLite2- (of GeoIP2-)database in .mmdb-formaat, bijvoorbeeld GeoLite2-City.mmdb. Download je eigen kopie bij MaxMind (hiervoor is een gratis account nodig) - BFStop bundelt of verspreidt deze gegevens niet. Een database van het niveau City is nodig om in de beheerweergave 'Informatie voor IP-adres' regio, plaats en coördinaten te tonen; voor het hieronder genoemde signaal van de adaptieve risicoscore volstaat een database van het niveau Country. Laat leeg om beide uit te schakelen. De opzoeking gebeurt volledig lokaal; er wordt nooit een IP-adres naar een derde partij gestuurd." @@ -152,8 +152,6 @@ COM_BFSTOP_SETTINGS_BLOCK_MODE_OFF="Alleen rapporteren" COM_BFSTOP_SETTINGS_BLOCK_MODE_LOGINONLY="Alleen aanmelden" COM_BFSTOP_SETTINGS_BLOCK_MODE_FULL="Hele site" COM_BFSTOP_SETTINGS_BLOCK_MODE_HTACCESS="Hele site + .htaccess" -COM_BFSTOP_SETTINGS_RISK_DELAY_PER_POINT_LABEL="Seconden vertraging per risicopunt" -COM_BFSTOP_SETTINGS_RISK_DELAY_PER_POINT_DESC="Hoeveel seconden extra vertraging er worden toegevoegd per positief (riskant) punt van de gecombineerde risicoscore, bovenop de hierboven ingestelde vertraging. Een negatieve (vertrouwde) score verlaagt de vertraging nooit onder de hierboven ingestelde waarde. 0 (de standaard) voegt geen vertraging toe: elke seconde vertraging houdt een PHP-proces van de server bezig, zie \"Tegelijk vertraagde antwoorden\"." COM_BFSTOP_SETTINGS_RISK_BLOCK_REDUCTION_PER_POINT_LABEL="Wijziging blokkadedrempel per risicopunt" COM_BFSTOP_SETTINGS_RISK_BLOCK_REDUCTION_PER_POINT_DESC="Hoeveel het aantal toegestane mislukte pogingen vóór blokkade per punt van de gecombineerde risicoscore wordt verlaagd (bij een positieve/riskante score) of verhoogd (bij een negatieve/vertrouwde score)." COM_BFSTOP_SETTINGS_RISK_MIN_BLOCK_NUMBER_LABEL="Minimaal toegestane pogingen" @@ -231,8 +229,6 @@ COM_BFSTOP_SETTINGS_NGINX_DENY_FILE_FOREIGN="%1$s bestaat en is niet door BFStop COM_BFSTOP_WARNING_NO_LIVE_SITE="Het adres van de site is niet ingesteld ($live_site in configuration.php). Joomla! bouwt de links in de e-mails van Brute Force Stop dan op uit de host die elk verzoek noemt, en die kan een bezoeker vrij kiezen - daarom worden geen deblokkeerlinks verstuurd en noemen de meldingen aan de beheerders geen adres. Om het adres in te stellen, voeg deze regel toe aan de klasse in de configuration.php van de site, met het adres waarop de site bereikbaar is (voorgesteld op basis van dit verzoek, controleer het): %s" COM_BFSTOP_WARNING_NOTIFY_ANY_WITHOUT_LIVE_SITE="Er moeten deblokkeerlinks worden verstuurd (instellingen), maar het adres van de site is niet ingesteld ($live_site in configuration.php): er worden geen deblokkeerlinks verstuurd." COM_BFSTOP_SETTINGS_IPV6_PREFIX_56="/56 (aanbevolen)" -COM_BFSTOP_SETTINGS_DELAY_MAX_CONCURRENT_LABEL="Tegelijk vertraagde antwoorden" -COM_BFSTOP_SETTINGS_DELAY_MAX_CONCURRENT_DESC="Hoogstens zoveel antwoorden op mislukte aanmeldingen worden tegelijk vertraagd; verdere worden meteen beantwoord. Een vertraagd antwoord houdt een PHP-proces van de server de hele vertraging bezig, en een aanvaller met veel adressen kan mislukte aanmeldingen parallel sturen tot er voor andere bezoekers geen proces meer vrij is. Houd deze waarde ruim onder het aantal PHP-processen (bijv. pm.max_children van PHP-FPM). Mislukte aanmeldingen die meteen worden beantwoord, worden zoals gewoonlijk geteld en geblokkeerd." COM_BFSTOP_IP_NETWORK_TOO_LARGE="Het netwerk %1$s is te groot: de prefixlengte moet minstens /%2$d zijn voor IPv4 en /%3$d voor IPv6." COM_BFSTOP_IPADDRESS_TRUSTED_PROXY="Dit is (of bevat) een vertrouwde proxy uit de instellingen: geblokkeerd in het .htaccess-bestand zou elk verzoek dat erdoorheen komt worden geweigerd." COM_BFSTOP_SETTINGS_HTACCESS_NOT_TIDIED="Brute Force Stop kon zijn blokkades niet uit %s verwijderen, dat niet meer blokkeert: de webserver blijft deze adressen weigeren, ook als hun blokkades voorbij zijn. Maak het bestand schrijfbaar en verwijder ze met de hand - ze staan in de <If>-regels tussen '# BEGIN BFStop Blocks' en '# END BFStop Blocks'." diff --git a/component/admin/language/pt-BR/pt-BR.com_bfstop.ini b/component/admin/language/pt-BR/pt-BR.com_bfstop.ini index 5830b35..720d29f 100644 --- a/component/admin/language/pt-BR/pt-BR.com_bfstop.ini +++ b/component/admin/language/pt-BR/pt-BR.com_bfstop.ini @@ -106,15 +106,15 @@ COM_BFSTOP_IP_BLOCKS_USER="O IP/intervalo informado (%s) bloquearia o endereço COM_BFSTOP_HEADING_IPRANGE_INFO="Informações do intervalo de IPs" COM_BFSTOP_YOUR_IP_IS="O seu endereço IP, como o BFStop o vê, é %s." COM_BFSTOP_INSTALL_HINT="O Brute Force Stop protege o seu site com as configurações padrão assim que o plugin é instalado (o pacote o instala e ativa). Revise-as na visualização Configurações do componente." -COM_BFSTOP_SETTINGS_ACCOUNT_FIELDSET_LABEL="Limitação no nível da conta" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_ENABLED_LABEL="Ativar a limitação no nível da conta" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_ENABLED_DESC="Se os logins com falha também devem ser contados por nome de usuário, somando todos os endereços IP de origem que os tentaram - e não apenas por endereço IP. Isso detecta um ataque distribuído que espalha as tentativas contra uma única conta por muitos IPs diferentes, o que o limite de bloqueio normal por IP, sozinho, não consegue detectar. A conta em si nunca é bloqueada; apenas as tentativas com falha são atrasadas progressivamente." -COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_LABEL="Tentativas com falha antes da limitação" -COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_DESC="Quantos logins com falha para o mesmo nome de usuário, somados em todos os endereços IP de origem, dentro da janela de contagem abaixo, são necessários antes que as tentativas seguintes para esse nome de usuário recebam um atraso adicional." +COM_BFSTOP_SETTINGS_ACCOUNT_FIELDSET_LABEL="Ataques distribuídos contra uma conta" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_ENABLED_LABEL="Detectar ataques distribuídos contra uma conta" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_ENABLED_DESC="Se os logins com falha também são contados por nome de usuário, somados em todos os endereços IP de onde vieram, e não apenas por endereço IP. Quando um nome de usuário acumula muitos (veja abaixo), cada endereço que o tenta tem menos tentativas com falha antes de ser bloqueado: a pontuação de risco das suas tentativas sobe pelos pontos abaixo. Isso detecta um ataque que distribui suas tentativas contra uma conta por muitos endereços, o que o limite de bloqueio por endereço sozinho não consegue detectar. A própria conta nunca é bloqueada, e um login a partir de um endereço de onde a conta já foi usada continua sendo de confiança (veja 'IP conhecido' em 'Pontuação de risco adaptativa')." +COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_LABEL="Tentativas com falha por conta" +COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_DESC="Quantos logins com falha para o mesmo nome de usuário, somados em todos os endereços IP, dentro da janela de contagem abaixo, fazem a conta ser considerada sob ataque." COM_BFSTOP_SETTINGS_ACCOUNT_CHECK_INTERVAL_LABEL="Janela de contagem (minutos)" COM_BFSTOP_SETTINGS_ACCOUNT_CHECK_INTERVAL_DESC="A janela de tempo (em minutos) dentro da qual as tentativas com falha para o mesmo nome de usuário são contadas, independentemente do endereço IP de origem." -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_DELAY_LABEL="Atraso adicional (segundos)" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_DELAY_DESC="Quantos segundos de atraso adicional somar a cada novo login com falha de um nome de usuário limitado, além de qualquer outro atraso já configurado." +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_POINTS_LABEL="Pontos de risco durante um ataque" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_POINTS_DESC="Quantos pontos a pontuação de risco de um login com falha sobe enquanto o seu nome de usuário é considerado sob ataque. Cada ponto deixa ao endereço menos tentativas com falha antes do bloqueio, conforme configurado em 'Pontuação de risco adaptativa'. 0 apenas registra o ataque." COM_BFSTOP_SETTINGS_GEOIP_FIELDSET_LABEL="Banco de dados GeoIP" COM_BFSTOP_SETTINGS_GEOIP_DB_PATH_LABEL="Caminho do banco de dados GeoIP" COM_BFSTOP_SETTINGS_GEOIP_DB_PATH_DESC="Caminho completo, no sistema de arquivos do servidor, de um banco de dados .mmdb MaxMind GeoLite2 (ou GeoIP2), por exemplo GeoLite2-City.mmdb. Baixe a sua própria cópia na MaxMind (é necessária uma conta gratuita) - o BFStop não inclui nem redistribui esses dados. É preciso um banco de dados do nível City para que a visualização 'Informações do endereço IP' mostre região, cidade e coordenadas; um banco do nível Country basta para o sinal de pontuação de risco adaptativa abaixo. Deixe vazio para desativar ambos. A consulta é totalmente local; nenhum endereço IP é enviado a terceiros." @@ -151,8 +151,6 @@ COM_BFSTOP_SETTINGS_BLOCK_MODE_OFF="Somente relatório" COM_BFSTOP_SETTINGS_BLOCK_MODE_LOGINONLY="Somente login" COM_BFSTOP_SETTINGS_BLOCK_MODE_FULL="Site inteiro" COM_BFSTOP_SETTINGS_BLOCK_MODE_HTACCESS="Site inteiro + .htaccess" -COM_BFSTOP_SETTINGS_RISK_DELAY_PER_POINT_LABEL="Segundos de atraso por ponto de risco" -COM_BFSTOP_SETTINGS_RISK_DELAY_PER_POINT_DESC="Quantos segundos de atraso adicional somar por ponto positivo (arriscado) da pontuação de risco combinada, além do atraso configurado acima. Uma pontuação negativa (de confiança) nunca reduz o atraso abaixo do configurado acima. 0 (o padrão) não adiciona atraso: cada segundo de atraso mantém ocupado um processo PHP do servidor, veja \"Respostas atrasadas ao mesmo tempo\"." COM_BFSTOP_SETTINGS_RISK_BLOCK_REDUCTION_PER_POINT_LABEL="Alteração do limite de bloqueio por ponto de risco" COM_BFSTOP_SETTINGS_RISK_BLOCK_REDUCTION_PER_POINT_DESC="Quanto reduzir (para uma pontuação positiva/arriscada) ou aumentar (para uma pontuação negativa/de confiança) o número de tentativas com falha permitidas antes do bloqueio, por ponto da pontuação de risco combinada." COM_BFSTOP_SETTINGS_RISK_MIN_BLOCK_NUMBER_LABEL="Mínimo de tentativas permitidas" @@ -230,8 +228,6 @@ COM_BFSTOP_SETTINGS_NGINX_DENY_FILE_FOREIGN="%1$s existe e não foi escrito pelo COM_BFSTOP_WARNING_NO_LIVE_SITE="O endereço do site não está definido ($live_site no configuration.php). O Joomla! então monta os links dos e-mails do Brute Force Stop com o host indicado em cada requisição, que um visitante pode escolher livremente - por isso nenhum link de desbloqueio é enviado e as notificações aos administradores não indicam nenhum endereço. Para definir o endereço, adicione esta linha à classe no configuration.php do site, com o endereço pelo qual o site é acessado (proposto a partir desta requisição, verifique-o): %s" COM_BFSTOP_WARNING_NOTIFY_ANY_WITHOUT_LIVE_SITE="Links de desbloqueio devem ser enviados (configurações), mas o endereço do site não está definido ($live_site no configuration.php): nenhum link de desbloqueio é enviado." COM_BFSTOP_SETTINGS_IPV6_PREFIX_56="/56 (recomendado)" -COM_BFSTOP_SETTINGS_DELAY_MAX_CONCURRENT_LABEL="Respostas atrasadas ao mesmo tempo" -COM_BFSTOP_SETTINGS_DELAY_MAX_CONCURRENT_DESC="No máximo este número de respostas a logins com falha é atrasado ao mesmo tempo; as demais são respondidas imediatamente. Uma resposta atrasada mantém ocupado um processo PHP do servidor durante todo o atraso, e um atacante com muitos endereços pode enviar logins com falha em paralelo até não sobrar nenhum processo para outros visitantes. Mantenha este valor bem abaixo do número de processos PHP (p. ex. pm.max_children do PHP-FPM). Logins com falha respondidos imediatamente são contados e bloqueados normalmente." COM_BFSTOP_IP_NETWORK_TOO_LARGE="A rede %1$s é grande demais: o comprimento do prefixo deve ser de pelo menos /%2$d para IPv4 e /%3$d para IPv6." COM_BFSTOP_IPADDRESS_TRUSTED_PROXY="Isto é (ou contém) um proxy confiável das configurações: bloqueado no arquivo .htaccess, toda requisição que passa por ele seria recusada." COM_BFSTOP_SETTINGS_HTACCESS_NOT_TIDIED="O Brute Force Stop não conseguiu retirar seus bloqueios de %s, que não bloqueia mais: o servidor web continua recusando esses endereços, mesmo depois que seus bloqueios terminam. Torne o arquivo gravável e retire-os manualmente - eles estão nas linhas <If> entre '# BEGIN BFStop Blocks' e '# END BFStop Blocks'." diff --git a/component/admin/language/pt-PT/pt-PT.com_bfstop.ini b/component/admin/language/pt-PT/pt-PT.com_bfstop.ini index 23773c2..be20c64 100644 --- a/component/admin/language/pt-PT/pt-PT.com_bfstop.ini +++ b/component/admin/language/pt-PT/pt-PT.com_bfstop.ini @@ -106,15 +106,15 @@ COM_BFSTOP_IP_BLOCKS_USER="O IP/intervalo indicado (%s) bloquearia o endereço I COM_BFSTOP_HEADING_IPRANGE_INFO="Informações do intervalo de IPs" COM_BFSTOP_YOUR_IP_IS="O seu endereço IP, como o BFStop o vê, é %s." COM_BFSTOP_INSTALL_HINT="O Brute Force Stop protege o seu site com as definições padrão assim que o plugin é instalado (o pacote o instala e ativa). Revise-as na vista Definições do componente." -COM_BFSTOP_SETTINGS_ACCOUNT_FIELDSET_LABEL="Limitação no nível da conta" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_ENABLED_LABEL="Ativar a limitação no nível da conta" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_ENABLED_DESC="Se os inícios de sessão falhados também devem ser contados por nome de utilizador, somando todos os endereços IP de origem que os tentaram - e não apenas por endereço IP. Isso detecta um ataque distribuído que espalha as tentativas contra uma única conta por muitos IPs diferentes, o que o limite de bloqueio normal por IP, sozinho, não consegue detectar. A conta em si nunca é bloqueada; apenas as tentativas com falha são atrasadas progressivamente." -COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_LABEL="Tentativas com falha antes da limitação" -COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_DESC="Quantos inícios de sessão falhados para o mesmo nome de utilizador, somados em todos os endereços IP de origem, dentro da janela de contagem abaixo, são necessários antes que as tentativas seguintes para esse nome de utilizador recebam um atraso adicional." +COM_BFSTOP_SETTINGS_ACCOUNT_FIELDSET_LABEL="Ataques distribuídos contra uma conta" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_ENABLED_LABEL="Detetar ataques distribuídos contra uma conta" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_ENABLED_DESC="Se os inícios de sessão falhados também são contados por nome de utilizador, somados em todos os endereços IP de onde vieram, e não apenas por endereço IP. Quando um nome de utilizador acumula demasiados (ver abaixo), cada endereço que o tenta tem menos tentativas falhadas antes de ser bloqueado: a pontuação de risco das suas tentativas sobe pelos pontos abaixo. Isto deteta um ataque que distribui as suas tentativas contra uma conta por muitos endereços, o que o limite de bloqueio por endereço sozinho não consegue detetar. A própria conta nunca é bloqueada, e um início de sessão a partir de um endereço de onde a conta já foi utilizada continua a ser de confiança (ver 'IP conhecido' em 'Pontuação de risco adaptativa')." +COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_LABEL="Tentativas falhadas por conta" +COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_DESC="Quantos inícios de sessão falhados para o mesmo nome de utilizador, somados em todos os endereços IP, dentro da janela de contagem abaixo, fazem com que a conta seja considerada sob ataque." COM_BFSTOP_SETTINGS_ACCOUNT_CHECK_INTERVAL_LABEL="Janela de contagem (minutos)" COM_BFSTOP_SETTINGS_ACCOUNT_CHECK_INTERVAL_DESC="A janela de tempo (em minutos) dentro da qual as tentativas com falha para o mesmo nome de utilizador são contadas, independentemente do endereço IP de origem." -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_DELAY_LABEL="Atraso adicional (segundos)" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_DELAY_DESC="Quantos segundos de atraso adicional somar a cada novo início de sessão falhado de um nome de utilizador limitado, além de qualquer outro atraso já configurado." +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_POINTS_LABEL="Pontos de risco durante um ataque" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_POINTS_DESC="Quantos pontos sobe a pontuação de risco de um início de sessão falhado enquanto o seu nome de utilizador é considerado sob ataque. Cada ponto deixa ao endereço menos tentativas falhadas antes do bloqueio, conforme configurado em 'Pontuação de risco adaptativa'. 0 apenas regista o ataque." COM_BFSTOP_SETTINGS_GEOIP_FIELDSET_LABEL="Base de dados GeoIP" COM_BFSTOP_SETTINGS_GEOIP_DB_PATH_LABEL="Caminho do base de dados GeoIP" COM_BFSTOP_SETTINGS_GEOIP_DB_PATH_DESC="Caminho completo, no sistema de ficheiros do servidor, de um base de dados .mmdb MaxMind GeoLite2 (ou GeoIP2), por exemplo GeoLite2-City.mmdb. Baixe a sua própria cópia na MaxMind (é necessária uma conta gratuita) - o BFStop não inclui nem redistribui esses dados. É preciso um base de dados do nível City para que a vista 'Informações do endereço IP' mostre região, cidade e coordenadas; um banco do nível Country basta para o sinal de pontuação de risco adaptativa abaixo. Deixe vazio para desativar ambos. A consulta é totalmente local; nenhum endereço IP é enviado a terceiros." @@ -151,8 +151,6 @@ COM_BFSTOP_SETTINGS_BLOCK_MODE_OFF="Somente relatório" COM_BFSTOP_SETTINGS_BLOCK_MODE_LOGINONLY="Somente início de sessão" COM_BFSTOP_SETTINGS_BLOCK_MODE_FULL="Site inteiro" COM_BFSTOP_SETTINGS_BLOCK_MODE_HTACCESS="Site inteiro + .htaccess" -COM_BFSTOP_SETTINGS_RISK_DELAY_PER_POINT_LABEL="Segundos de atraso por ponto de risco" -COM_BFSTOP_SETTINGS_RISK_DELAY_PER_POINT_DESC="Quantos segundos de atraso adicional somar por ponto positivo (arriscado) da pontuação de risco combinada, além do atraso configurado acima. Uma pontuação negativa (de confiança) nunca reduz o atraso abaixo do configurado acima. 0 (o predefinido) não acrescenta atraso: cada segundo de atraso mantém ocupado um processo PHP do servidor, veja \"Respostas atrasadas ao mesmo tempo\"." COM_BFSTOP_SETTINGS_RISK_BLOCK_REDUCTION_PER_POINT_LABEL="Alteração do limite de bloqueio por ponto de risco" COM_BFSTOP_SETTINGS_RISK_BLOCK_REDUCTION_PER_POINT_DESC="Quanto reduzir (para uma pontuação positiva/arriscada) ou aumentar (para uma pontuação negativa/de confiança) o número de tentativas com falha permitidas antes do bloqueio, por ponto da pontuação de risco combinada." COM_BFSTOP_SETTINGS_RISK_MIN_BLOCK_NUMBER_LABEL="Mínimo de tentativas permitidas" @@ -230,8 +228,6 @@ COM_BFSTOP_SETTINGS_NGINX_DENY_FILE_FOREIGN="%1$s existe e não foi escrito pelo COM_BFSTOP_WARNING_NO_LIVE_SITE="O endereço do site não está definido ($live_site no configuration.php). O Joomla! constrói então as ligações dos e-mails do Brute Force Stop com o anfitrião indicado em cada pedido, que um visitante pode escolher livremente - por isso não é enviada nenhuma ligação de desbloqueio e as notificações aos administradores não indicam nenhum endereço. Para definir o endereço, adicione esta linha à classe no configuration.php do site, com o endereço pelo qual o site é acedido (proposto a partir deste pedido, verifique-o): %s" COM_BFSTOP_WARNING_NOTIFY_ANY_WITHOUT_LIVE_SITE="Devem ser enviadas ligações de desbloqueio (definições), mas o endereço do site não está definido ($live_site no configuration.php): não é enviada nenhuma ligação de desbloqueio." COM_BFSTOP_SETTINGS_IPV6_PREFIX_56="/56 (recomendado)" -COM_BFSTOP_SETTINGS_DELAY_MAX_CONCURRENT_LABEL="Respostas atrasadas ao mesmo tempo" -COM_BFSTOP_SETTINGS_DELAY_MAX_CONCURRENT_DESC="No máximo este número de respostas a inícios de sessão falhados é atrasado ao mesmo tempo; as restantes são respondidas de imediato. Uma resposta atrasada mantém ocupado um processo PHP do servidor durante todo o atraso, e um atacante com muitos endereços pode enviar inícios de sessão falhados em paralelo até não restar nenhum processo para outros visitantes. Mantenha este valor bem abaixo do número de processos PHP (p. ex. pm.max_children do PHP-FPM). Os inícios de sessão falhados respondidos de imediato são contados e bloqueados normalmente." COM_BFSTOP_IP_NETWORK_TOO_LARGE="A rede %1$s é demasiado grande: o comprimento do prefixo tem de ser de pelo menos /%2$d para IPv4 e /%3$d para IPv6." COM_BFSTOP_IPADDRESS_TRUSTED_PROXY="Isto é (ou contém) um proxy de confiança das definições: bloqueado no ficheiro .htaccess, todos os pedidos que passam por ele seriam recusados." COM_BFSTOP_SETTINGS_HTACCESS_NOT_TIDIED="O Brute Force Stop não conseguiu retirar os seus bloqueios de %s, que já não bloqueia: o servidor web continua a recusar estes endereços, mesmo depois de os bloqueios terminarem. Torne o ficheiro gravável e retire-os manualmente - estão nas linhas <If> entre '# BEGIN BFStop Blocks' e '# END BFStop Blocks'." diff --git a/component/admin/language/ru-RU/ru-RU.com_bfstop.ini b/component/admin/language/ru-RU/ru-RU.com_bfstop.ini index 2670c20..600685a 100644 --- a/component/admin/language/ru-RU/ru-RU.com_bfstop.ini +++ b/component/admin/language/ru-RU/ru-RU.com_bfstop.ini @@ -106,15 +106,15 @@ COM_BFSTOP_IP_BLOCKS_USER="Введённый IP/диапазон (%s) забл COM_BFSTOP_HEADING_IPRANGE_INFO="Информация о диапазоне IP" COM_BFSTOP_YOUR_IP_IS="Ваш IP-адрес, каким его видит BFStop: %s." COM_BFSTOP_INSTALL_HINT="Brute Force Stop защищает сайт с настройками по умолчанию, как только установлен его плагин (пакет устанавливает и включает его). Проверьте настройки в разделе настроек компонента." -COM_BFSTOP_SETTINGS_ACCOUNT_FIELDSET_LABEL="Замедление на уровне учётной записи" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_ENABLED_LABEL="Включить замедление на уровне учётной записи" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_ENABLED_DESC="Считать ли неудачные входы также по имени пользователя, суммируя все исходные IP-адреса, с которых они выполнялись, а не только по IP-адресу. Это позволяет выявить распределённую атаку, которая распределяет попытки против одной учётной записи между множеством разных IP, чего обычный порог блокировки по IP сам по себе обнаружить не может. Сама учётная запись никогда не блокируется; прогрессивно замедляются только неудачные попытки." -COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_LABEL="Неудачных попыток до замедления" -COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_DESC="Сколько неудачных входов с одним и тем же именем пользователя, суммарно со всех исходных IP-адресов, за указанное ниже окно подсчёта должно произойти, прежде чем для следующих попыток с этим именем появится дополнительная задержка." +COM_BFSTOP_SETTINGS_ACCOUNT_FIELDSET_LABEL="Распределённые атаки на одну учётную запись" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_ENABLED_LABEL="Распознавать распределённые атаки на одну учётную запись" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_ENABLED_DESC="Учитывать ли неудачные входы также по имени пользователя, суммируя все IP-адреса, с которых они были, а не только по IP-адресу. Когда у имени пользователя их набирается слишком много (см. ниже), каждому адресу, который его пробует, до блокировки разрешается меньше неудачных попыток: оценка риска его попыток повышается на баллы, заданные ниже. Так распознаётся атака, распределяющая попытки против одной учётной записи по многим адресам, чего порог блокировки по адресу сам по себе не замечает. Сама учётная запись никогда не блокируется, а вход с адреса, с которого в эту учётную запись уже входили, по-прежнему считается доверенным (см. «известный IP» в разделе «Адаптивная оценка риска»)." +COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_LABEL="Неудачных попыток на учётную запись" +COM_BFSTOP_SETTINGS_ACCOUNT_BLOCK_NUMBER_DESC="Сколько неудачных входов с одним и тем же именем пользователя, со всех IP-адресов вместе, в пределах окна подсчёта ниже, нужно, чтобы учётная запись считалась атакуемой." COM_BFSTOP_SETTINGS_ACCOUNT_CHECK_INTERVAL_LABEL="Окно подсчёта (минуты)" COM_BFSTOP_SETTINGS_ACCOUNT_CHECK_INTERVAL_DESC="Интервал времени (в минутах), в течение которого учитываются неудачные попытки с одним и тем же именем пользователя независимо от исходного IP-адреса." -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_DELAY_LABEL="Дополнительная задержка (секунды)" -COM_BFSTOP_SETTINGS_ACCOUNT_THROTTLE_DELAY_DESC="Сколько секунд дополнительной задержки добавлять к каждому следующему неудачному входу для замедляемого имени пользователя поверх любой другой уже настроенной задержки." +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_POINTS_LABEL="Баллы риска во время атаки" +COM_BFSTOP_SETTINGS_ACCOUNT_ATTACK_POINTS_DESC="На сколько баллов повышается оценка риска неудачного входа, пока его имя пользователя считается атакуемым. Каждый балл оставляет адресу меньше неудачных попыток до блокировки, как настроено в разделе «Адаптивная оценка риска». 0 только записывает атаку в журнал." COM_BFSTOP_SETTINGS_GEOIP_FIELDSET_LABEL="База данных GeoIP" COM_BFSTOP_SETTINGS_GEOIP_DB_PATH_LABEL="Путь к базе данных GeoIP" COM_BFSTOP_SETTINGS_GEOIP_DB_PATH_DESC="Полный путь в файловой системе сервера к базе данных MaxMind GeoLite2 (или GeoIP2) в формате .mmdb, например GeoLite2-City.mmdb. Скачайте собственную копию на сайте MaxMind (нужна бесплатная учётная запись) - BFStop не включает и не распространяет эти данные. Для отображения региона, города и координат в разделе «Информация об IP-адресе» нужна база уровня City; для сигнала адаптивной оценки риска, описанного ниже, достаточно базы уровня Country. Оставьте поле пустым, чтобы отключить и то и другое. Поиск выполняется полностью локально; IP-адреса никогда не передаются третьим лицам." @@ -151,8 +151,6 @@ COM_BFSTOP_SETTINGS_BLOCK_MODE_OFF="Только отчёты" COM_BFSTOP_SETTINGS_BLOCK_MODE_LOGINONLY="Только вход" COM_BFSTOP_SETTINGS_BLOCK_MODE_FULL="Весь сайт" COM_BFSTOP_SETTINGS_BLOCK_MODE_HTACCESS="Весь сайт + .htaccess" -COM_BFSTOP_SETTINGS_RISK_DELAY_PER_POINT_LABEL="Секунд задержки на балл риска" -COM_BFSTOP_SETTINGS_RISK_DELAY_PER_POINT_DESC="Сколько секунд дополнительной задержки добавлять за каждый положительный (рискованный) балл суммарной оценки риска поверх задержки, настроенной выше. Отрицательная (доверительная) оценка никогда не уменьшает задержку ниже настроенной выше. 0 (по умолчанию) не добавляет задержки: каждая секунда задержки занимает рабочий процесс PHP сервера, см. \"Одновременно задерживаемые ответы\"." COM_BFSTOP_SETTINGS_RISK_BLOCK_REDUCTION_PER_POINT_LABEL="Изменение порога блокировки на балл риска" COM_BFSTOP_SETTINGS_RISK_BLOCK_REDUCTION_PER_POINT_DESC="На сколько уменьшать (при положительной/рискованной оценке) или увеличивать (при отрицательной/доверительной оценке) число допустимых неудачных попыток до блокировки на каждый балл суммарной оценки риска." COM_BFSTOP_SETTINGS_RISK_MIN_BLOCK_NUMBER_LABEL="Минимум допустимых попыток" @@ -230,8 +228,6 @@ COM_BFSTOP_SETTINGS_NGINX_DENY_FILE_FOREIGN="%1$s существует и зап COM_BFSTOP_WARNING_NO_LIVE_SITE="Адрес сайта не задан ($live_site в configuration.php). Тогда Joomla! строит ссылки в письмах Brute Force Stop с хостом, указанным в каждом запросе, который посетитель может выбрать произвольно, — поэтому ссылки разблокировки не отправляются, а уведомления администраторам не содержат адреса. Чтобы задать адрес, добавьте эту строку в класс в configuration.php сайта, указав адрес, по которому доступен сайт (предложен на основе этого запроса, проверьте его): %s" COM_BFSTOP_WARNING_NOTIFY_ANY_WITHOUT_LIVE_SITE="Ссылки разблокировки должны отправляться (настройки), но адрес сайта не задан ($live_site в configuration.php): ссылки разблокировки не отправляются." COM_BFSTOP_SETTINGS_IPV6_PREFIX_56="/56 (рекомендуется)" -COM_BFSTOP_SETTINGS_DELAY_MAX_CONCURRENT_LABEL="Одновременно задерживаемые ответы" -COM_BFSTOP_SETTINGS_DELAY_MAX_CONCURRENT_DESC="Одновременно задерживается не больше этого числа ответов на неудачные входы; остальные получают ответ сразу. Задержанный ответ занимает рабочий процесс PHP сервера на всё время задержки, и атакующий с множеством адресов может отправлять неудачные входы параллельно, пока для других посетителей не останется свободных процессов. Держите это значение заметно ниже числа процессов PHP (например, pm.max_children в PHP-FPM). Неудачные входы, получившие ответ сразу, учитываются и блокируются как обычно." COM_BFSTOP_IP_NETWORK_TOO_LARGE="Сеть %1$s слишком велика: длина её префикса должна быть не меньше /%2$d для IPv4 и /%3$d для IPv6." COM_BFSTOP_IPADDRESS_TRUSTED_PROXY="Это (или содержит) доверенный прокси из настроек: при блокировке в файле .htaccess отклонялся бы любой запрос, проходящий через него." COM_BFSTOP_SETTINGS_HTACCESS_NOT_TIDIED="Brute Force Stop не удалось убрать свои блокировки из %s, который больше не блокирует: веб-сервер продолжает отклонять эти адреса, даже после окончания их блокировок. Сделайте файл доступным для записи и удалите их вручную - они в строках <If> между '# BEGIN BFStop Blocks' и '# END BFStop Blocks'." diff --git a/library/src/Helper/RiskHelper.php b/library/src/Helper/RiskHelper.php index 01725b4..933a0ae 100644 --- a/library/src/Helper/RiskHelper.php +++ b/library/src/Helper/RiskHelper.php @@ -17,8 +17,9 @@ /** * Computes a signed per-attempt risk score for a failed login (issue #76). - * Positive contributions mean "more suspicious" (allow fewer attempts, - * add more delay); negative contributions mean "more trusted" (allow more). + * Positive contributions mean "more suspicious" (allow fewer attempts); + * negative contributions mean "more trusted" (allow more), see + * BlockPolicy::effectiveBlockNumber(). * Every signal is independently toggleable and fails safe: any internal * error is logged and contributes 0, never blocks or throws. */ @@ -155,13 +156,56 @@ private static function reverseDnsScore(Repositories $repositories, LoggerHelper return 0; } + /** + * A distributed attack on one account: once the username of the failed + * login $failedLogin (as stored, see the plugin's usernameForStorage()) + * has had "accountBlockNumber" failed logins within "accountCheckInterval" + * minutes, from whatever addresses (the failed login itself included), + * every address trying it is allowed fewer attempts. A per-address + * threshold alone never notices an attacker who spreads the attempts on + * one account over many addresses (issue #76). The account itself is never + * locked: the real owner, from an address they logged in from before, is + * still trusted by the known-IP signal. Until 2.0.0, this was a delay of + * the response instead, which held a PHP worker and did not slow down an + * attacker who doesn't wait for the answers. + */ + private static function accountAttackScore(Repositories $repositories, LoggerHelper $logger, Registry $params, $failedLogin) + { + if ($failedLogin === null || !Settings::bool($params, 'accountAttackEnabled')) + { + return 0; + } + try + { + $minutes = Settings::int($params, 'accountCheckInterval'); + $count = (int) $repositories->failedLogins()->countUnhandledForUsername($minutes, + $failedLogin->username, $failedLogin->logtime); + if ($count >= Settings::int($params, 'accountBlockNumber')) + { + $logger->log('Account under attack: '.$count.' failed logins for username \''.$failedLogin->username. + '\' within '.$minutes.' minutes, from any address', Log::INFO); + return Settings::int($params, 'accountAttackPoints'); + } + } + catch (\Throwable $e) + { + $logger->log('RiskHelper: count of failed logins of the account failed: '.$e->getMessage(), Log::WARNING); + } + return 0; + } + /** * @param string|null $trackedAddress the key the client is tracked under * (IpHelper::trackedAddress()), if not * its address + * @param object|null $failedLogin the failed login as recorded (its + * username as stored, and its logtime), + * for the signal of a distributed attack + * on one account; without it, that + * signal is skipped */ public static function computeScore(Repositories $repositories, LoggerHelper $logger, Registry $params, $ipaddress, $username, - $trackedAddress = null) + $trackedAddress = null, $failedLogin = null) { $score = 0; $score += self::knownIpScore($repositories, $logger, $params, $ipaddress, $username); @@ -169,6 +213,7 @@ public static function computeScore(Repositories $repositories, LoggerHelper $lo $score += self::userAgentScore($params); $score += self::geoScore($logger, $params, $ipaddress); $score += self::reverseDnsScore($repositories, $logger, $params, $ipaddress, $trackedAddress ?? $ipaddress); + $score += self::accountAttackScore($repositories, $logger, $params, $failedLogin); return $score; } } diff --git a/library/src/Helper/UsernameHelper.php b/library/src/Helper/UsernameHelper.php index 63c85a5..9e49d53 100644 --- a/library/src/Helper/UsernameHelper.php +++ b/library/src/Helper/UsernameHelper.php @@ -21,8 +21,9 @@ * and the well-known names an admin configured as "common usernames" - are * stored readably; any other value is replaced by a keyed hash. The hash is * still the same for the same input, so attempts against one unknown name - * are still counted together (e.g. for the account throttle and the - * username statistics), but the input cannot be read back from it. + * are still counted together (e.g. for the signal of an attack on one + * account and the username statistics), but the input cannot be read back + * from it. */ class UsernameHelper { diff --git a/library/src/Repository/FailedLoginRepository.php b/library/src/Repository/FailedLoginRepository.php index c3793fc..9ed46b5 100644 --- a/library/src/Repository/FailedLoginRepository.php +++ b/library/src/Repository/FailedLoginRepository.php @@ -96,22 +96,6 @@ public function countInWindow($time, $minutes) }, 0); } - /** - * The failed logins of the last hour. Fail-open: 0. - */ - public function countInLastHour() - { - return $this->failOpen('countInLastHour', function () - { - $query = $this->db->createQuery() - ->select('COUNT(*)') - ->from($this->db->quoteName(self::Table)) - ->where($this->db->quoteName('logtime').' > :from'); - $values = array('from' => self::minutesBefore(self::now(), 60)); - return $this->count($query, $values); - }, 0); - } - // the most failed logins listUnhandledFromAddress() reads: those which // count towards a block are about the block threshold (at most 25) private const ListLimit = 100; diff --git a/library/src/Service/BlockPolicy.php b/library/src/Service/BlockPolicy.php index b0d639a..e2e5437 100644 --- a/library/src/Service/BlockPolicy.php +++ b/library/src/Service/BlockPolicy.php @@ -24,9 +24,8 @@ /** * What the settings make of a failed login: when its client is blocked, for * how long (with the escalation for repeat offenders) and how, whether the - * blocked user may get an unblock link, and by how much the response is - * delayed. Decides only: the block itself is BlockService's, the answer to - * the client the Responder's. + * blocked user may get an unblock link. Decides only: the block itself is + * BlockService's, the answer to the client the Responder's. */ class BlockPolicy { @@ -350,102 +349,4 @@ public static function effectiveNotifyBlockedUser($setting, $hasLiveSite): int $setting = (int) $setting; return $hasLiveSite ? $setting : 0; } - - /** - * By how many seconds the response to the failed login $logEntry is held - * back (before Responder::delay() caps it): the account throttle, the - * delay for the attack volume, and the one for the risk score of the - * attempt. - */ - public function delaySeconds($logEntry, $riskScore) - { - return $this->accountThrottleDelay($logEntry) + $this->determineDelayDuration($riskScore); - } - - /** - * Account-level throttle: once a username has accumulated enough failed - * attempts *from any source IP combined* within the configured window, - * every further failed attempt for that username gets an extra forced - * delay. Unlike the block (which is scoped to a single IP), this catches - * an attacker who distributes attempts against one target account across - * many different IPs - a distributed attack no per-IP threshold can ever - * detect on its own. The account itself is never locked - only wrong - * attempts get progressively expensive, so a correct password still logs - * the real owner in immediately. - * - * @return int the seconds to delay the response by - */ - private function accountThrottleDelay($logEntry): int - { - if (!$this->boolParam('accountThrottleEnabled')) - { - return 0; - } - $checkInterval = $this->intParam('accountCheckInterval'); - $accountBlockNumber = $this->intParam('accountBlockNumber'); - $numberOfFailedLogins = $this->repositories->failedLogins()->countUnhandledForUsername( - $checkInterval, $logEntry->username, $logEntry->logtime); - if ($numberOfFailedLogins < $accountBlockNumber) - { - return 0; - } - $throttleDelay = max(0, $this->intParam('accountThrottleDelay')); - if ($throttleDelay > 0) - { - $this->logger->log('Account-level throttle triggered for username \''. - $logEntry->username.'\' ('.$numberOfFailedLogins. - ' failed attempts across all IPs within '.$checkInterval. - ' minutes), adding '.$throttleDelay.'s delay', Log::INFO); - } - return $throttleDelay; - } - - /** - * The global-attack-volume-based delay, plus an additional delay - * proportional to the per-attempt risk score (issue #76) - the two are - * independent, orthogonal mechanisms; only a positive (suspicious) score - * adds delay, a trust bonus never reduces it below the base. - */ - private function determineDelayDuration($riskScore) - { - $riskDelaySecondsPerPoint = $this->intParam('riskDelaySecondsPerPoint'); - return $this->determineBaseDelayDuration() + max(0, $riskScore) * $riskDelaySecondsPerPoint; - } - - private function determineBaseDelayDuration() - { - $delayDuration = $this->intParam('delayDuration'); - if (!$this->boolParam('adaptiveDelay')) - { - return $delayDuration; - } - $maxDelay = $this->intParam('adaptiveDelayMax'); - $lowThreshold = $this->intParam('adaptiveDelayThresholdMin'); - $highThreshold = $this->intParam('adaptiveDelayThresholdMax'); - if ($lowThreshold > $highThreshold) - { - $tmp = $lowThreshold; - $lowThreshold = $highThreshold; - $highThreshold = $tmp; - $this->logger->log('Lower threshold is configured to a smaller value than higher threshold!'. - ' Please correct! Swapping the values for now!', - Log::WARNING); - } - if ($lowThreshold == $highThreshold) - { - $this->logger->log('Lower and higher threshold cannot be configured to the same value!'. - ' Either disable adaptive delay and use the delay duration instead, or'. - ' set the thresholds to reasonable values! Using delay duration for now', - Log::WARNING); - return $delayDuration; - } - $recentFailed = min($this->repositories->failedLogins()->countInLastHour(), $highThreshold); - if ($recentFailed > $lowThreshold) - { - return $delayDuration + ($recentFailed - $lowThreshold) - * ($maxDelay - $delayDuration) - / ($highThreshold - $lowThreshold); - } - return $delayDuration; - } } diff --git a/library/src/Settings.php b/library/src/Settings.php index b13798c..101f2be 100644 --- a/library/src/Settings.php +++ b/library/src/Settings.php @@ -136,19 +136,12 @@ public static function string(Registry $params, string $name): string // empty: the root of the site 'htaccessPath' => '', 'nginxDenyFile' => '', - // delay - 'delayDuration' => 0, - 'adaptiveDelay' => 0, - 'adaptiveDelayMax' => 0, - 'adaptiveDelayThresholdMin' => 50, - 'adaptiveDelayThresholdMax' => 200, - // at most this many responses are delayed at the same time - 'delayMaxConcurrent' => 5, - // account throttle - 'accountThrottleEnabled' => 1, + // distributed attacks on one account: a signal of the risk score, + // see RiskHelper::accountAttackScore() + 'accountAttackEnabled' => 1, 'accountBlockNumber' => 20, 'accountCheckInterval' => 60, - 'accountThrottleDelay' => 5, + 'accountAttackPoints' => 3, // GeoIP 'geoDbPath' => '', // risk score @@ -164,10 +157,6 @@ public static function string(Registry $params, string $name): string 'riskCommonUsernamePoints' => 2, 'riskUserAgentEnabled' => 1, 'riskUserAgentPoints' => 2, - // a delay ties up a PHP worker for its whole length, see the - // plugin's Responder::delay(): the risk score adds none unless the - // administrator asks for it - 'riskDelaySecondsPerPoint' => 0, 'riskBlockNumberReductionPerPoint' => 1, 'riskMinBlockNumber' => 2, ); diff --git a/plugin/language/ca-ES/ca-ES.plg_system_bfstop.ini b/plugin/language/ca-ES/ca-ES.plg_system_bfstop.ini index 6ea2d96..8ffdf60 100644 --- a/plugin/language/ca-ES/ca-ES.plg_system_bfstop.ini +++ b/plugin/language/ca-ES/ca-ES.plg_system_bfstop.ini @@ -16,6 +16,7 @@ PLG_SYSTEM_BFSTOP_PASSWORD_RESET_RECOMMENDED="S'ha detectat que un o més dels v PLG_SYSTEM_BFSTOP_BLOCKED_CLIENT_IP="La vostra adreça IP és: %s." PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_HINT="Aquesta actualització a la versió 2.0.0 comporta canvis importants de configuració. La configuració ha passat del Gestor de connectors al component BFStop: aneu a la vista de Configuració del component i reviseu els vostres paràmetres, en particular la secció «Proxy / Balancejador de càrrega» si el vostre lloc es troba darrere d'un proxy invers o d'un balancejador de càrrega." PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_API_HINT="Brute Force Stop ara també protegeix els inicis de sessió a través de l'API de serveis web de Joomla! (api/index.php, amb testimonis d'API o autenticació HTTP Basic), i aquesta actualització ho ha activat: els inicis de sessió fallits hi compten per al bloqueig i les adreces bloquejades també són rebutjades per l'API. Si alguna de les teves integracions fa servir l'API des d'una adreça els inicis de sessió de la qual poden fallar, revisa l'opció 'Activa per a' a la vista de configuració del component." +PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_DELAYS_REMOVED="Brute Force Stop ja no retarda la resposta als inicis de sessió fallits. La vostra configuració anterior la retardava ('Retard' o 'Retard adaptatiu'); aquests paràmetres s'han eliminat. Una resposta retardada manté ocupat un procés PHP del servidor durant tot el retard, cosa que els atacants que envien molts inicis de sessió alhora poden aprofitar per deixar el lloc inaccessible, mentre que a ells gairebé no els frena. Els inicis de sessió fallits es continuen comptant i bloquejant com abans. Per frenar els clients, utilitzeu la limitació de velocitat del servidor web o d'un servidor intermediari davant seu (p. ex. limit_req de nginx, mod_evasive d'Apache o fail2ban)." PLG_SYSTEM_BFSTOP_UPDATE_HTACCESS_NOT_REWRITTEN="Brute Force Stop no ha pogut reescriure la seva secció de bloquejos a %s. La secció escrita per versions anteriors permet a qualsevol que no estigui bloquejat saltar-se els altres controls d'accés d'aquest directori (protecció amb contrasenya, restriccions d'IP). Feu que el fitxer es pugui escriure i torneu a executar l'actualització, o elimineu a mà les línies entre '# BEGIN BFStop Blocks' i '# END BFStop Blocks'." PLG_SYSTEM_BFSTOP_UPDATE_MIGRATION_FAILED="Brute Force Stop no ha pogut migrar la seva configuració i les seves dades durant l'actualització (%s). Fins que no es resolgui, el connector funciona amb la configuració per defecte: reviseu la configuració i torneu a executar l'actualització." PLG_SYSTEM_BFSTOP_SITE_ADDRESS_NOT_SET="(adreça del lloc no configurada)" diff --git a/plugin/language/ca-ES/ca-ES.plg_system_bfstop.sys.ini b/plugin/language/ca-ES/ca-ES.plg_system_bfstop.sys.ini index f608812..86e756d 100644 --- a/plugin/language/ca-ES/ca-ES.plg_system_bfstop.sys.ini +++ b/plugin/language/ca-ES/ca-ES.plg_system_bfstop.sys.ini @@ -1,7 +1,7 @@ ; traducció feta per nouespai 29/08/2014 PLG_SYSTEM_BFSTOP="Sistema - Brute Force Stop" -PLG_SYSTEM_BFSTOP_DESC="

Brute Force Stop

La configuració s'ha traslladat: BFStop ara es configura al component, no aquí - vés a Components → Brute Force Stop → Configuració.

Aquest connector proporciona els mitjans per evitar els atacs per força bruta a la teva instal·lació Joomla!. Per això, el connector emmagatzema informació sobre els intents fallits de connexió, de manera que en arribar a un nombre configurable d'intents fallits d'inici de sessió l'adreça IP de l'atacant pot ser bloquejada. A més, pot configurar notificacions sobre intents fallits i les adreces IP bloquejades, així com un retard variable després d'un inici de sessió fallit.

No oblidis de configurar i publicar el connector després de la instal·lació!
Si tens qualsevol pregunta sobre el connector, visita El lloc del projecte a github. Si hi ha algun problema en utilitzar el connector, no dubtis a reportar al Seguiment d'incidències.

En algunes parts, aquest connector s'inspira en els següents plugins Login Failed Log, Redirect Failed Logins and Ban IP Address/Range. Moltes gràcies als autors d'aquests connectors!.
Brute Force Stop és un connector Joomla!, publicat sota la GNU General Public License.
" +PLG_SYSTEM_BFSTOP_DESC="

Brute Force Stop

La configuració s'ha traslladat: BFStop ara es configura al component, no aquí - vés a Components → Brute Force Stop → Configuració.

Aquest connector proporciona els mitjans per evitar els atacs per força bruta a la teva instal·lació Joomla!. Per això, el connector emmagatzema informació sobre els intents fallits de connexió, de manera que en arribar a un nombre configurable d'intents fallits d'inici de sessió l'adreça IP de l'atacant pot ser bloquejada. A més, pot configurar notificacions sobre intents fallits i les adreces IP bloquejades.

No oblidis de configurar i publicar el connector després de la instal·lació!
Si tens qualsevol pregunta sobre el connector, visita El lloc del projecte a github. Si hi ha algun problema en utilitzar el connector, no dubtis a reportar al Seguiment d'incidències.

En algunes parts, aquest connector s'inspira en els següents plugins Login Failed Log, Redirect Failed Logins and Ban IP Address/Range. Moltes gràcies als autors d'aquests connectors!.
Brute Force Stop és un connector Joomla!, publicat sota la GNU General Public License.
" PLG_SYSTEM_BFSTOP_BLOCK_ENABLED_LABEL="Activar bloqueig" PLG_SYSTEM_BFSTOP_BLOCK_ENABLED_DESC="Si aquest connector ha de bloquejar les adreces IP. Quan està desactivat, no s'afegiran noves adreces IP a la llista d'adreces bloquejades, i ni tan sols les adreces IP que ja estan en aquesta llista seran bloquejades més (encara que la llista en si es mantindrà)." PLG_SYSTEM_BFSTOP_USERID_LABEL="Selecciona un usuari" @@ -18,8 +18,6 @@ PLG_SYSTEM_BFSTOP_NOTIFY_FAILED_ONLY_EXISTING_LABEL="Missatges d'error només pe PLG_SYSTEM_BFSTOP_NOTIFY_FAILED_ONLY_EXISTING_DESC="Notifica un inici de sessió fallit només si el nom d'usuari (o l'adreça electrònica) introduït pertany a un compte existent. Els intents amb noms que no estan registrats en aquest lloc (normalment robots que proven noms d'usuari) continuen registrant-se i comptant per al bloqueig, però no generen cap notificació." PLG_SYSTEM_BFSTOP_NOTIFY_BLOCKED_NUMBER_LABEL="Missatges de bloqueig per dia" PLG_SYSTEM_BFSTOP_NOTIFY_BLOCKED_NUMBER_DESC="Amb quina freqüència es notificaran les IP bloquejades en un dia" -PLG_SYSTEM_BFSTOP_DELAY_DURATION_LABEL="Retard" -PLG_SYSTEM_BFSTOP_DELAY_DURATION_DESC="Retard (en segons) en un intent d'accés fallit" PLG_SYSTEM_BFSTOP_LOGLEVEL_LABEL="Iniciant sessió" PLG_SYSTEM_BFSTOP_LOGLEVEL_DESC="Determina si un informe sobre les activitats del connector ha de ser creat (això tan sols serà necessari en cas d'un problema, el fitxer de registre es pot trobar al directori de registres amb el nom plg_system_bfstop.log.php)" PLG_SYSTEM_BFSTOP_BLOCK_NUMBER_LABEL="Límit abans de bloquejar" @@ -66,15 +64,6 @@ PLG_SYSTEM_BFSTOP_INFO="Misstage informatiu" PLG_SYSTEM_BFSTOP_DEBUG="Informació detallada" PLG_SYSTEM_BFSTOP_DELETE_OLD_ENTRIES_LABEL="Suprimeix les entrades antigues" PLG_SYSTEM_BFSTOP_DELETE_OLD_ENTRIES_DESC="Elimina les entrades més antigues que el nombre de setmanes que figuren en aquest camp (estableix a 0 per desactivar la supressió de les entrades antigues)." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_LABEL="Retard adaptatiu" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_DESC="Adapta el retard a la taxa actual de retards que han fallat. Augmentarà el retard cada vegada que hi ha un major nombre d'inicis de sessió com una contramesura per als atacs distribuïts." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_MAX_LABEL="Retard màxim" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_MAX_DESC="El termini màxim per a la resposta als intents de connexió fallits quan el retard adaptatiu s'activa" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MIN_LABEL="Nivell mínim" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MIN_DESC="El nivell en què el retard adaptatiu comença a fer efecte (mesurat en nombre d'inicis de sessió fallits en la darrera hora)" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MAX_LABEL="Nivell màxim" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MAX_DESC="El nivell en què el retard adaptatiu arriba al retard màxim (mesurat en nombre d'inicis de sessió fallits en la darrera hora)" -PLG_SYSTEM_BFSTOP_DELAY_FIELDSET_LABEL="Retard" PLG_SYSTEM_BFSTOP_NOTIFICATION_FIELDSET_LABEL="Notificació" PLG_SYSTEM_BFSTOP_PROXY_FIELDSET_LABEL="Proxy / Balancejador de càrrega" PLG_SYSTEM_BFSTOP_USE_PROXY_LABEL="Darrere d'un proxy / balancejador de càrrega" diff --git a/plugin/language/de-DE/de-DE.plg_system_bfstop.ini b/plugin/language/de-DE/de-DE.plg_system_bfstop.ini index 3e15b80..3cee202 100644 --- a/plugin/language/de-DE/de-DE.plg_system_bfstop.ini +++ b/plugin/language/de-DE/de-DE.plg_system_bfstop.ini @@ -14,6 +14,7 @@ PLG_SYSTEM_BFSTOP_PASSWORD_RESET_RECOMMENDED="Es wurde bemerkt, dass einer oder PLG_SYSTEM_BFSTOP_BLOCKED_CLIENT_IP="Deine IP-Adresse ist: %s." PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_HINT="Dieses Update auf Version 2.0.0 bringt umfangreiche Änderungen an der Konfiguration mit. Die Konfiguration wurde aus der Plugin-Verwaltung in die BFStop-Komponente verlegt - bitte öffne die Ansicht „Einstellungen“ der Komponente und überprüfe deine Einstellungen - insbesondere den Abschnitt „Proxy / Load-Balancer“, falls deine Website hinter einem Reverse-Proxy oder Load-Balancer läuft." PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_API_HINT="Brute Force Stop schützt jetzt auch Logins über die Web-Services-API von Joomla! (api/index.php, mit API-Token oder HTTP-Basic-Authentifizierung), und dieses Update hat das eingeschaltet: fehlgeschlagene Logins dort zählen für die Sperre, und gesperrte Adressen werden auch von der API abgewiesen. Falls eine Ihrer Anbindungen die API von einer Adresse aus nutzt, deren Logins fehlschlagen können, prüfen Sie die Einstellung 'Aktiv für' in der Einstellungsansicht der Komponente." +PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_DELAYS_REMOVED="Brute Force Stop verzögert die Antwort auf fehlgeschlagene Logins nicht mehr. Ihre bisherigen Einstellungen haben sie verzögert („Verzögerung“ oder „Adaptives Delay“); diese Einstellungen wurden entfernt. Eine verzögerte Antwort hält einen PHP-Worker des Servers für die ganze Dauer besetzt, womit Angreifer, die viele Logins gleichzeitig senden, die Website unerreichbar machen können, während es sie kaum bremst. Fehlgeschlagene Logins werden weiterhin gezählt und gesperrt wie bisher. Um Clients zu bremsen, verwenden Sie die Ratenbegrenzung Ihres Webservers oder eines vorgeschalteten Proxys (z. B. limit_req von nginx, mod_evasive von Apache oder fail2ban)." PLG_SYSTEM_BFSTOP_UPDATE_HTACCESS_NOT_REWRITTEN="Brute Force Stop konnte seinen Sperrabschnitt in %s nicht neu schreiben. Der von früheren Versionen geschriebene Abschnitt lässt alle, die nicht gesperrt sind, an den anderen Zugriffsbeschränkungen dieses Verzeichnisses vorbei (Passwortschutz, IP-Beschränkungen). Machen Sie die Datei beschreibbar und führen Sie das Update erneut aus, oder entfernen Sie die Zeilen zwischen '# BEGIN BFStop Blocks' und '# END BFStop Blocks' von Hand." PLG_SYSTEM_BFSTOP_UPDATE_MIGRATION_FAILED="Brute Force Stop konnte seine Einstellungen und Daten beim Update nicht übernehmen (%s). Bis das behoben ist, arbeitet das Plugin mit seinen Standardeinstellungen: Prüfen Sie die Einstellungen und führen Sie das Update erneut aus." PLG_SYSTEM_BFSTOP_SITE_ADDRESS_NOT_SET="(Adresse der Website nicht eingestellt)" diff --git a/plugin/language/de-DE/de-DE.plg_system_bfstop.sys.ini b/plugin/language/de-DE/de-DE.plg_system_bfstop.sys.ini index c6cbb5c..9bb160d 100644 --- a/plugin/language/de-DE/de-DE.plg_system_bfstop.sys.ini +++ b/plugin/language/de-DE/de-DE.plg_system_bfstop.sys.ini @@ -1,5 +1,5 @@ PLG_SYSTEM_BFSTOP="System - Brute Force Stop" -PLG_SYSTEM_BFSTOP_DESC="

Brute Force Stop

Konfiguration ist umgezogen: BFStop wird jetzt in der Komponente konfiguriert, nicht mehr hier - gehe zu Komponenten → Brute Force Stop → Einstellungen.

Dieses Plugin dient der Abwehr von Brute-Force-Attacken auf Ihre Joomla-Installation. Zu diesem Zweck wird ein Log über fehlgeschlagene Login-Versuche in Ihrem Front- und Backend erstellt, und bei Erreichen einer konfigurierbaren Anzahl solcher fehlgeschlagener Versuche wird die IP-Adresse, von der diese Versuche kommen, gesperrt. Weiters lassen sich Benachrichtigungen über fehlgeschlagene Login-Versuche sowie über geblockte IP-Adressen konfigurieren. Weiters kann man vor der Antwort auf fehlgeschlagene Login-Versuche eine einstellbare Verzögerung konfigurieren.

Mehr Informationen gibt es unter folgenden Ressourcen:

Brute Force Stop ist veröffentlicht unter der GNU General Public License.
" +PLG_SYSTEM_BFSTOP_DESC="

Brute Force Stop

Konfiguration ist umgezogen: BFStop wird jetzt in der Komponente konfiguriert, nicht mehr hier - gehe zu Komponenten → Brute Force Stop → Einstellungen.

Dieses Plugin dient der Abwehr von Brute-Force-Attacken auf Ihre Joomla-Installation. Zu diesem Zweck wird ein Log über fehlgeschlagene Login-Versuche in Ihrem Front- und Backend erstellt, und bei Erreichen einer konfigurierbaren Anzahl solcher fehlgeschlagener Versuche wird die IP-Adresse, von der diese Versuche kommen, gesperrt. Weiters lassen sich Benachrichtigungen über fehlgeschlagene Login-Versuche sowie über geblockte IP-Adressen konfigurieren.

Mehr Informationen gibt es unter folgenden Ressourcen:

Brute Force Stop ist veröffentlicht unter der GNU General Public License.
" PLG_SYSTEM_BFSTOP_BLOCK_ENABLED_LABEL="Blockierung" PLG_SYSTEM_BFSTOP_BLOCK_ENABLED_DESC="Bestimmt ob das Plugin IP-Adressen blockieren soll. Wenn deaktiviert, werden keine neuen Sperren mehr angelegt, und auch bereits eingetragene Sperren ignoriert (obgleich diese erhalten bleiben)." PLG_SYSTEM_BFSTOP_USERID_LABEL="Benutzer wählen" @@ -16,8 +16,6 @@ PLG_SYSTEM_BFSTOP_NOTIFY_FAILED_ONLY_EXISTING_LABEL="Fehlgeschlagen-Nachrichten PLG_SYSTEM_BFSTOP_NOTIFY_FAILED_ONLY_EXISTING_DESC="Nur dann über einen fehlgeschlagenen Login-Versuch benachrichtigen, wenn der eingegebene Benutzername (oder die E-Mail-Adresse) zu einem existierenden Konto gehört. Versuche mit Namen, die auf dieser Seite nicht registriert sind (typischerweise Bots, die Benutzernamen raten), werden weiterhin aufgezeichnet und für das Blockieren mitgezählt, lösen aber keine Benachrichtigung aus." PLG_SYSTEM_BFSTOP_NOTIFY_BLOCKED_NUMBER_LABEL="Blockiert-Nachrichten" PLG_SYSTEM_BFSTOP_NOTIFY_BLOCKED_NUMBER_DESC="Wie oft an einem Tag maximal eine Benachrichtigung über blockierte IP-Adressen gesendet werden soll." -PLG_SYSTEM_BFSTOP_DELAY_DURATION_LABEL="Verzögerung" -PLG_SYSTEM_BFSTOP_DELAY_DURATION_DESC="Verzögerung (in Sekunden) bei einem fehlgeschlagenen Login-Versuch" PLG_SYSTEM_BFSTOP_LOGLEVEL_LABEL="Logging" PLG_SYSTEM_BFSTOP_LOGLEVEL_DESC="Bestimmt ob eine Logdatei über die Aktivitäten des Plugins angelegt werden soll (dies sollte nur im Fehlerfall notwendig sein; die Logdatei findet sich im logs-Verzeichnis unter dem Namen plg_system_bfstop.log.php); weiters bestimmt diese Einstellung, wie viel Informationen im Logfile festgehalten werden; je weiter unten in der Liste, desto detailliertere Informationen wird das Logfile enthalten. Ein guter Standard-Wert ist wahrscheinlich 'Warnung' - hier werden alle Warnungen, Fehler und fatalen Fehler im Logfile festgehalten." PLG_SYSTEM_BFSTOP_BLOCK_NUMBER_LABEL="Sperrschwelle" @@ -64,15 +62,6 @@ PLG_SYSTEM_BFSTOP_INFO="Zusätzliche Information" PLG_SYSTEM_BFSTOP_DEBUG="Detailliertes Log" PLG_SYSTEM_BFSTOP_DELETE_OLD_ENTRIES_LABEL="Löschen alter Einträge" PLG_SYSTEM_BFSTOP_DELETE_OLD_ENTRIES_DESC="Lösche Einträge älter als die in diesem Feld eingegebene Anzahl an Wochen (auf 0 setzen um keine alten Einträge zu löschen)." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_LABEL="Adaptives Delay" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_DESC="Aktivieren um die Verzögerung bei fehlgeschlagenen Login-Versuchen automatisch an die derzeitige Anzahl an fehlgeschlagenen Logins anzupassen. Wird die Verzögerung angepasst erhöhen wann immer eine erhöhte Anzahl an fehlgeschlagenen Login-Versuchen festgestellt wird, als Gegenmaßnahme gegen verteilte Attacken." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_MAX_LABEL="Maximal-Verzögerung" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_MAX_DESC="Die maximale Verzögerung der Antwort bei fehlgeschlagenen Nachrichten wenn die adaptive Verzögerung aktiviert ist." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MIN_LABEL="Untere Schwelle" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MIN_DESC="Die untere Schwelle ab der die adaptive Verzögerung aktiv wird (gemessen in fehlgeschlagenen Logins in der letzten Stunde)" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MAX_LABEL="Obere Schwelle" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MAX_DESC="Die Schwelle ab der die adaptive Verzögerung die maximale Verzögerung erreichen soll (gemessen in fehlgeschlagenen Logins in der letzten Stunde)" -PLG_SYSTEM_BFSTOP_DELAY_FIELDSET_LABEL="Verzögerung" PLG_SYSTEM_BFSTOP_NOTIFICATION_FIELDSET_LABEL="Benachrichtigung" PLG_SYSTEM_BFSTOP_PROXY_FIELDSET_LABEL="Proxy / Load-Balancer" PLG_SYSTEM_BFSTOP_USE_PROXY_LABEL="Hinter einem Proxy / Load-Balancer" diff --git a/plugin/language/en-GB/en-GB.plg_system_bfstop.ini b/plugin/language/en-GB/en-GB.plg_system_bfstop.ini index a539ac8..ae7120a 100644 --- a/plugin/language/en-GB/en-GB.plg_system_bfstop.ini +++ b/plugin/language/en-GB/en-GB.plg_system_bfstop.ini @@ -14,6 +14,7 @@ PLG_SYSTEM_BFSTOP_PASSWORD_RESET_RECOMMENDED="It was noticed that one or more of PLG_SYSTEM_BFSTOP_BLOCKED_CLIENT_IP="Your IP address is: %s." PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_HINT="This update to version 2.0.0 comes with major configuration changes. Configuration has moved out of the Plugin Manager into the BFStop component - please go to the component's Settings view and review your settings - in particular the 'Proxy / Load Balancer' section if your site sits behind a reverse proxy or load balancer." PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_API_HINT="Brute Force Stop now also protects logins through Joomla's Web Services API (api/index.php, with API tokens or HTTP Basic authentication), and this update has switched that on: failed logins there count towards blocking, and blocked addresses are rejected by the API too. If an integration of yours uses the API from an address whose logins may fail, check the 'Active for' setting in the component's Settings view." +PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_DELAYS_REMOVED="Brute Force Stop no longer delays the response to failed logins. Your previous settings delayed it ('Delay' or 'Adaptive Delay'); these settings have been removed. A delayed response keeps a PHP worker of the server busy for the whole delay, which attackers sending many logins in parallel can use to make the site unavailable, while it hardly slows them down. Failed logins are still counted and blocked as before. To slow down clients, use the rate limiting of your web server or of a proxy in front of it (e.g. nginx's limit_req, Apache's mod_evasive or fail2ban)." PLG_SYSTEM_BFSTOP_UPDATE_HTACCESS_NOT_REWRITTEN="Brute Force Stop could not rewrite its block section in %s. The section written by earlier versions lets everybody who isn't blocked past the other access controls of that directory (password protection, IP restrictions). Make the file writable and run the update again, or remove the lines between '# BEGIN BFStop Blocks' and '# END BFStop Blocks' by hand." PLG_SYSTEM_BFSTOP_UPDATE_MIGRATION_FAILED="Brute Force Stop could not migrate its settings and data during the update (%s). The plugin works with its default settings until this is fixed: check the settings, and run the update again." PLG_SYSTEM_BFSTOP_SITE_ADDRESS_NOT_SET="(site address not configured)" diff --git a/plugin/language/en-GB/en-GB.plg_system_bfstop.sys.ini b/plugin/language/en-GB/en-GB.plg_system_bfstop.sys.ini index 24118fe..7eaecd1 100644 --- a/plugin/language/en-GB/en-GB.plg_system_bfstop.sys.ini +++ b/plugin/language/en-GB/en-GB.plg_system_bfstop.sys.ini @@ -1,5 +1,5 @@ PLG_SYSTEM_BFSTOP="System - Brute Force Stop" -PLG_SYSTEM_BFSTOP_DESC="

Brute Force Stop

Configuration has moved: BFStop is now configured in the component, not here - go to Components → Brute Force Stop → Settings.

This plugin provides means to avert Brute-Force-Attacks on your Joomla-Installation. For this purpose, the plugin stores information on failed login attempts, so that when reaching a configurable number of such failed login attempts the attacker's IP address can be blocked. Furthermore, you can configure notifications about failed logins and blocked IP addresses, as well as a variable delay for a failed login attempt.

If you need more information on the plugin, please look at the following ressources:

Brute Force Stop is published under the GNU General Public License.
" +PLG_SYSTEM_BFSTOP_DESC="

Brute Force Stop

Configuration has moved: BFStop is now configured in the component, not here - go to Components → Brute Force Stop → Settings.

This plugin provides means to avert Brute-Force-Attacks on your Joomla-Installation. For this purpose, the plugin stores information on failed login attempts, so that when reaching a configurable number of such failed login attempts the attacker's IP address can be blocked. Furthermore, you can configure notifications about failed logins and blocked IP addresses.

If you need more information on the plugin, please look at the following ressources:

Brute Force Stop is published under the GNU General Public License.
" PLG_SYSTEM_BFSTOP_SETTINGS_MOVED_LABEL="Configuration has moved" PLG_SYSTEM_BFSTOP_SETTINGS_MOVED_DESC="All BFStop settings are now configured in the component instead of here. Go to Components → Brute Force Stop → Settings to configure BFStop." PLG_SYSTEM_BFSTOP_BLOCK_ENABLED_LABEL="Enable Blocking" @@ -18,8 +18,6 @@ PLG_SYSTEM_BFSTOP_NOTIFY_FAILED_ONLY_EXISTING_LABEL="Failed msgs only for existi PLG_SYSTEM_BFSTOP_NOTIFY_FAILED_ONLY_EXISTING_DESC="Only notify about a failed login if the username (or email address) which was entered belongs to an existing account. Attempts with names which are not registered on this site (typically bots guessing usernames) are still recorded and counted towards blocking, but do not trigger a notification." PLG_SYSTEM_BFSTOP_NOTIFY_BLOCKED_NUMBER_LABEL="Blocked msgs per day" PLG_SYSTEM_BFSTOP_NOTIFY_BLOCKED_NUMBER_DESC="How often to notify about a blocked IP during one day" -PLG_SYSTEM_BFSTOP_DELAY_DURATION_LABEL="Delay" -PLG_SYSTEM_BFSTOP_DELAY_DURATION_DESC="Delay (in seconds) on a failed login attempt" PLG_SYSTEM_BFSTOP_LOGLEVEL_LABEL="Logging" PLG_SYSTEM_BFSTOP_LOGLEVEL_DESC="Determines whether a Logfile about the activities of the plugin should be created (this should only be necessary in case of a problem; the logfile can be found in the logs directory under the name plg_system_bfstop.log.php). You can also configure how detailed the log should be; e.g. set to ERROR to only get information about every malfunction into the logfile." PLG_SYSTEM_BFSTOP_BLOCK_NUMBER_LABEL="Block threshold" @@ -66,15 +64,6 @@ PLG_SYSTEM_BFSTOP_INFO="Informational message" PLG_SYSTEM_BFSTOP_DEBUG="Detailed information" PLG_SYSTEM_BFSTOP_DELETE_OLD_ENTRIES_LABEL="Prune old attempts" PLG_SYSTEM_BFSTOP_DELETE_OLD_ENTRIES_DESC="Delete failed login attempts older than the number of weeks given in this field (set to 0 to disable deletion of old entries)." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_LABEL="Adaptive Delay" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_DESC="Activate to adapt delay to the current rate of failed login attempts. Will increase the delay whenever there is an increased number of logins as a countermeasure for distributed attacks." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_MAX_LABEL="Maximum delay" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_MAX_DESC="The maximum delay for the response on failed login attempts when adaptive delay is turned on" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MIN_LABEL="Minimum threshold" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MIN_DESC="The threshold at which the adaptive delay starts to kick in (measured in number of failed logins in the last hour)" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MAX_LABEL="Maximum threshold" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MAX_DESC="The threshold at which the adaptive delay reaches the maximum delay (measured in number of failed logins in the last hour)" -PLG_SYSTEM_BFSTOP_DELAY_FIELDSET_LABEL="Delay" PLG_SYSTEM_BFSTOP_NOTIFICATION_FIELDSET_LABEL="Notification" PLG_SYSTEM_BFSTOP_PROXY_FIELDSET_LABEL="Proxy / Load Balancer" PLG_SYSTEM_BFSTOP_USE_PROXY_LABEL="Behind a proxy / load balancer" diff --git a/plugin/language/es-ES/es-ES.plg_system_bfstop.ini b/plugin/language/es-ES/es-ES.plg_system_bfstop.ini index cbf0d14..9c82365 100644 --- a/plugin/language/es-ES/es-ES.plg_system_bfstop.ini +++ b/plugin/language/es-ES/es-ES.plg_system_bfstop.ini @@ -16,6 +16,7 @@ PLG_SYSTEM_BFSTOP_PASSWORD_RESET_RECOMMENDED="Le avisamos de que uno o más de s PLG_SYSTEM_BFSTOP_BLOCKED_CLIENT_IP="Su dirección IP es: %s." PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_HINT="Esta actualización a la versión 2.0.0 incluye cambios importantes en la configuración. La configuración se ha trasladado del Gestor de plugins al componente BFStop: vaya a la vista Ajustes del componente y revise sus ajustes, en particular la sección «Proxy / Balanceador de carga» si su sitio está detrás de un proxy inverso o de un balanceador de carga." PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_API_HINT="Brute Force Stop ahora también protege los inicios de sesión a través de la API de servicios web de Joomla! (api/index.php, con tokens de API o autenticación HTTP Basic), y esta actualización lo ha activado: los inicios de sesión fallidos allí cuentan para el bloqueo y las direcciones bloqueadas también son rechazadas por la API. Si alguna de tus integraciones usa la API desde una dirección cuyos inicios de sesión pueden fallar, revisa el ajuste 'Activo para' en la vista de configuración del componente." +PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_DELAYS_REMOVED="Brute Force Stop ya no retrasa la respuesta a los inicios de sesión fallidos. Su configuración anterior la retrasaba ('Retardo' o 'Retardo adaptativo'); estos ajustes se han eliminado. Una respuesta retrasada mantiene ocupado un proceso PHP del servidor durante todo el retraso, lo que los atacantes que envían muchos inicios de sesión a la vez pueden aprovechar para dejar el sitio inaccesible, mientras que apenas los frena. Los inicios de sesión fallidos se siguen contando y bloqueando como antes. Para frenar a los clientes, use la limitación de velocidad de su servidor web o de un proxy delante de él (p. ej. limit_req de nginx, mod_evasive de Apache o fail2ban)." PLG_SYSTEM_BFSTOP_UPDATE_HTACCESS_NOT_REWRITTEN="Brute Force Stop no pudo reescribir su sección de bloqueos en %s. La sección escrita por versiones anteriores permite a cualquiera que no esté bloqueado saltarse los demás controles de acceso de ese directorio (protección por contraseña, restricciones de IP). Haz que el archivo se pueda escribir y vuelve a ejecutar la actualización, o elimina a mano las líneas entre '# BEGIN BFStop Blocks' y '# END BFStop Blocks'." PLG_SYSTEM_BFSTOP_UPDATE_MIGRATION_FAILED="Brute Force Stop no pudo migrar su configuración y sus datos durante la actualización (%s). Hasta que se resuelva, el plugin funciona con su configuración predeterminada: revisa la configuración y vuelve a ejecutar la actualización." PLG_SYSTEM_BFSTOP_SITE_ADDRESS_NOT_SET="(dirección del sitio no configurada)" diff --git a/plugin/language/es-ES/es-ES.plg_system_bfstop.sys.ini b/plugin/language/es-ES/es-ES.plg_system_bfstop.sys.ini index d325a8e..bce9b9b 100644 --- a/plugin/language/es-ES/es-ES.plg_system_bfstop.sys.ini +++ b/plugin/language/es-ES/es-ES.plg_system_bfstop.sys.ini @@ -1,7 +1,7 @@ ; traducció realizada por nouespai 29/08/2014 PLG_SYSTEM_BFSTOP="System - Brute Force Stop" -PLG_SYSTEM_BFSTOP_DESC="

Brute Force Stop

La configuración se ha trasladado: BFStop ahora se configura en el componente, no aquí - vaya a Componentes → Brute Force Stop → Ajustes.

Este conector proporciona medios para evitar ataques de fuerza bruta contra tu Joomla. Para este fin, el conector almacena la información de las tentativas de entradas fracasadas al sistema, de modo que alcanzando un número configurable de entradas fracasadas la dirección IP del atacante puede ser bloqueada. Además, puedes configurar notificaciones sobre las entradas fracasadas al sistema y bloqueos de direcciones IP, así como un retardo variable para una tentativa de entrada fracasada al sistema.

¡No olvides configurar y publicar el conector después de la instalación!
Si tienes alguna pregunta sobre el conector, por favor visita elproyecto en github. Deberías encontrar allí cualquier solución al problema sobre el conector, no vaciles en exponerlo en el Seguimiento de incidencias

En parte, este conector fue inspirado por los conectores siguientes Login Failed Log, Redirect Failed Logins and Ban IP Address/Range. Muchísimas gracias para los autores.
Brute Force Stop es un conector Joomla! publicado bajo la GNU General Public License.
" +PLG_SYSTEM_BFSTOP_DESC="

Brute Force Stop

La configuración se ha trasladado: BFStop ahora se configura en el componente, no aquí - vaya a Componentes → Brute Force Stop → Ajustes.

Este conector proporciona medios para evitar ataques de fuerza bruta contra tu Joomla. Para este fin, el conector almacena la información de las tentativas de entradas fracasadas al sistema, de modo que alcanzando un número configurable de entradas fracasadas la dirección IP del atacante puede ser bloqueada. Además, puedes configurar notificaciones sobre las entradas fracasadas al sistema y bloqueos de direcciones IP.

¡No olvides configurar y publicar el conector después de la instalación!
Si tienes alguna pregunta sobre el conector, por favor visita elproyecto en github. Deberías encontrar allí cualquier solución al problema sobre el conector, no vaciles en exponerlo en el Seguimiento de incidencias

En parte, este conector fue inspirado por los conectores siguientes Login Failed Log, Redirect Failed Logins and Ban IP Address/Range. Muchísimas gracias para los autores.
Brute Force Stop es un conector Joomla! publicado bajo la GNU General Public License.
" PLG_SYSTEM_BFSTOP_BLOCK_ENABLED_LABEL="Activar bloqueo" PLG_SYSTEM_BFSTOP_BLOCK_ENABLED_DESC="Si este conector debería bloquear direcciones IP. Cuando esté desactivado, ninguna nueva direccion IP será añadida a la lista de direcciones bloqueadas (aunque la lista será conservada)." PLG_SYSTEM_BFSTOP_USERID_LABEL="Selecciona un usuario" @@ -18,8 +18,6 @@ PLG_SYSTEM_BFSTOP_NOTIFY_FAILED_ONLY_EXISTING_LABEL="Mensajes de fallo solo para PLG_SYSTEM_BFSTOP_NOTIFY_FAILED_ONLY_EXISTING_DESC="Notificar un inicio de sesión fallido solo si el nombre de usuario (o la dirección de correo electrónico) introducido pertenece a una cuenta existente. Los intentos con nombres que no están registrados en este sitio (normalmente robots que prueban nombres de usuario) se siguen registrando y cuentan para el bloqueo, pero no generan ninguna notificación." PLG_SYSTEM_BFSTOP_NOTIFY_BLOCKED_NUMBER_LABEL="Mensajes de bloqueo por día" PLG_SYSTEM_BFSTOP_NOTIFY_BLOCKED_NUMBER_DESC="Con qué frecuencia se notificarán las IP bloqueadas en un día" -PLG_SYSTEM_BFSTOP_DELAY_DURATION_LABEL="Retardo" -PLG_SYSTEM_BFSTOP_DELAY_DURATION_DESC="Retardo (en segundos) en una tentativa de entrada fracasada al sistema" PLG_SYSTEM_BFSTOP_LOGLEVEL_LABEL="Registro" PLG_SYSTEM_BFSTOP_LOGLEVEL_DESC="Determina si se debe crear un archivo de registro con las actividades del plugin (solo debería ser necesario en caso de problemas; el archivo se encuentra en el directorio de registros con el nombre plg_system_bfstop.log.php). También puede configurar el nivel de detalle del registro; por ejemplo, con ERROR solo se anotan en el archivo los fallos de funcionamiento." PLG_SYSTEM_BFSTOP_BLOCK_NUMBER_LABEL="Umbral de bloqueo" @@ -66,15 +64,6 @@ PLG_SYSTEM_BFSTOP_INFO="Mensaje informativo" PLG_SYSTEM_BFSTOP_DEBUG="Información detallada" PLG_SYSTEM_BFSTOP_DELETE_OLD_ENTRIES_LABEL="Suprime las entradas antiguas" PLG_SYSTEM_BFSTOP_DELETE_OLD_ENTRIES_DESC="Eliminar las entradas más antiguas que el número de semanas que figuran en este campo (establece en 0 para desactivar la supresión de las entradas antiguas)." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_LABEL="Retardo adaptativo" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_DESC="Adapta el retardo a la tasa actual de retardos que han fallado. Aumentará el retardo cada vez que hay un mayor número de inicios de sesión como una contramedida para los ataques distribuidos." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_MAX_LABEL="Retardo máximo" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_MAX_DESC="El plazo máximo para la respuesta a los intentos de conexión fallidos cuando el retardo adaptativo se activa" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MIN_LABEL="Nivel mínimo" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MIN_DESC="El nivel en el que el retardo adaptativo empieza a hacer efecto (medido en número de inicios de sesión fallidos en la última hora)" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MAX_LABEL="Nivel máximo" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MAX_DESC="El nivel en el que el retardo adaptativo llega al retardo máximo (medido en número de inicios de sesión fallidos en la última hora)" -PLG_SYSTEM_BFSTOP_DELAY_FIELDSET_LABEL="Retardo" PLG_SYSTEM_BFSTOP_NOTIFICATION_FIELDSET_LABEL="Notificación" PLG_SYSTEM_BFSTOP_PROXY_FIELDSET_LABEL="Proxy / Balanceador de carga" PLG_SYSTEM_BFSTOP_USE_PROXY_LABEL="Detrás de un proxy / balanceador de carga" diff --git a/plugin/language/fr-FR/fr-FR.plg_system_bfstop.ini b/plugin/language/fr-FR/fr-FR.plg_system_bfstop.ini index 348ec4f..f11b11d 100644 --- a/plugin/language/fr-FR/fr-FR.plg_system_bfstop.ini +++ b/plugin/language/fr-FR/fr-FR.plg_system_bfstop.ini @@ -18,6 +18,7 @@ PLG_SYSTEM_BFSTOP_PASSWORD_RESET_RECOMMENDED="Au moins une de vos tentatives de PLG_SYSTEM_BFSTOP_BLOCKED_CLIENT_IP="Votre address IP est: %s." PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_HINT="Cette mise à jour vers la version 2.0.0 apporte des changements importants de configuration. La configuration a quitté le Gestionnaire de plugins pour le composant BFStop : veuillez ouvrir la vue Configuration du composant et vérifier vos paramètres, en particulier la section « Proxy / Répartiteur de charge » si votre site se trouve derrière un proxy inverse ou un répartiteur de charge." PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_API_HINT="Brute Force Stop protège désormais aussi les connexions via l'API des services web de Joomla! (api/index.php, avec des jetons d'API ou l'authentification HTTP Basic), et cette mise à jour l'a activé : les échecs de connexion y comptent pour le blocage, et les adresses bloquées sont aussi refusées par l'API. Si l'une de vos intégrations utilise l'API depuis une adresse dont les connexions peuvent échouer, vérifiez le paramètre 'Activé pour' dans la vue Paramètres du composant." +PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_DELAYS_REMOVED="Brute Force Stop ne retarde plus la réponse aux échecs de connexion. Vos réglages précédents la retardaient (« Délai de reconnexion » ou « Délai adaptatif ») ; ces réglages ont été supprimés. Une réponse retardée occupe un processus PHP du serveur pendant toute la durée du délai, ce que des attaquants envoyant de nombreuses connexions en parallèle peuvent exploiter pour rendre le site indisponible, alors que cela les ralentit à peine. Les échecs de connexion sont toujours comptés et bloqués comme avant. Pour ralentir les clients, utilisez la limitation de débit de votre serveur web ou d'un proxy placé devant lui (par ex. limit_req de nginx, mod_evasive d'Apache ou fail2ban)." PLG_SYSTEM_BFSTOP_UPDATE_HTACCESS_NOT_REWRITTEN="Brute Force Stop n'a pas pu réécrire sa section de blocage dans %s. La section écrite par les versions précédentes laisse passer toute personne non bloquée au-delà des autres contrôles d'accès de ce répertoire (protection par mot de passe, restrictions IP). Rendez le fichier accessible en écriture et relancez la mise à jour, ou supprimez à la main les lignes entre '# BEGIN BFStop Blocks' et '# END BFStop Blocks'." PLG_SYSTEM_BFSTOP_UPDATE_MIGRATION_FAILED="Brute Force Stop n'a pas pu migrer ses paramètres et ses données lors de la mise à jour (%s). Tant que ce n'est pas corrigé, le plugin fonctionne avec ses paramètres par défaut : vérifiez les paramètres et relancez la mise à jour." PLG_SYSTEM_BFSTOP_SITE_ADDRESS_NOT_SET="(adresse du site non configurée)" diff --git a/plugin/language/fr-FR/fr-FR.plg_system_bfstop.sys.ini b/plugin/language/fr-FR/fr-FR.plg_system_bfstop.sys.ini index 8ecf242..1878b7a 100644 --- a/plugin/language/fr-FR/fr-FR.plg_system_bfstop.sys.ini +++ b/plugin/language/fr-FR/fr-FR.plg_system_bfstop.sys.ini @@ -3,7 +3,7 @@ ; Fichier de traduction pour ./plugins/system/bfstop/language/fr-FR/ PLG_SYSTEM_BFSTOP="System - Brute Force Stop" -PLG_SYSTEM_BFSTOP_DESC="

Brute Force Stop

La configuration a été déplacée : BFStop se configure désormais dans le composant, plus ici - allez dans Composants → Brute Force Stop → Réglages.

Ce plug-in fournit des moyens pour prévenir des attaques de votre site Joomla. À cette fin, le plug-in stocke des informations sur les échecs de connexion, de sorte qu'au terme d'un certain nombre (configurable) de tentatives l'adresse IP de l'attaquant peut être bloquée. En outre, vous pouvez configurer la notification des connexions échouées et des adresses bloquées, aussi bien qu'un délai variable entre chaque tentative de connexion autorisée.

N'oubliez pas de configurer et de publier ce plugin après installation!
Si vous avez des questions, merci de visiter le site du projet sur github. En cas de difficultés d'utilisation, n'hésitez pas à les rapporter ici !

Ce plugin s'inspire pour partie des plugins suivants: Login Failed Log, Redirect Failed Logins and Ban IP Address/Range. Merci beaucoup aux auteurs de ces plugins!
Brute Force Stop est un plugin Joomla!, publié sous la GNU General Public License.
" +PLG_SYSTEM_BFSTOP_DESC="

Brute Force Stop

La configuration a été déplacée : BFStop se configure désormais dans le composant, plus ici - allez dans Composants → Brute Force Stop → Réglages.

Ce plug-in fournit des moyens pour prévenir des attaques de votre site Joomla. À cette fin, le plug-in stocke des informations sur les échecs de connexion, de sorte qu'au terme d'un certain nombre (configurable) de tentatives l'adresse IP de l'attaquant peut être bloquée. En outre, vous pouvez configurer la notification des connexions échouées et des adresses bloquées.

N'oubliez pas de configurer et de publier ce plugin après installation!
Si vous avez des questions, merci de visiter le site du projet sur github. En cas de difficultés d'utilisation, n'hésitez pas à les rapporter ici !

Ce plugin s'inspire pour partie des plugins suivants: Login Failed Log, Redirect Failed Logins and Ban IP Address/Range. Merci beaucoup aux auteurs de ces plugins!
Brute Force Stop est un plugin Joomla!, publié sous la GNU General Public License.
" PLG_SYSTEM_BFSTOP_BLOCK_ENABLED_LABEL="Activation du blocage" PLG_SYSTEM_BFSTOP_BLOCK_ENABLED_DESC="Active le blocage des adresses IP. En cas de désactivation, aucune nouvelle adresse IP ne sera ajoutée à la liste des adresses bloquées. Même les adresses IP déjà listées ne seront pas bloquées, mais la liste elle-même sera conservée." PLG_SYSTEM_BFSTOP_USERID_LABEL="Sélection de l'utilisateur" @@ -20,8 +20,6 @@ PLG_SYSTEM_BFSTOP_NOTIFY_FAILED_ONLY_EXISTING_LABEL="Messages d'échec uniquemen PLG_SYSTEM_BFSTOP_NOTIFY_FAILED_ONLY_EXISTING_DESC="Ne notifier un échec de connexion que si le nom d'utilisateur (ou l'adresse électronique) saisi appartient à un compte existant. Les tentatives avec des noms qui ne sont pas enregistrés sur ce site (typiquement des robots qui devinent des noms d'utilisateur) sont toujours enregistrées et comptabilisées pour le blocage, mais ne déclenchent pas de notification." PLG_SYSTEM_BFSTOP_NOTIFY_BLOCKED_NUMBER_LABEL="Notification des blocages d'adresses IP (msg/j)" PLG_SYSTEM_BFSTOP_NOTIFY_BLOCKED_NUMBER_DESC="Combien de blocages d'addresses IP au maximum notifier par jour ?" -PLG_SYSTEM_BFSTOP_DELAY_DURATION_LABEL="Délai de reconnexion" -PLG_SYSTEM_BFSTOP_DELAY_DURATION_DESC="Délai (en secondes) avant nouvelle tentative de connexion autorisée" PLG_SYSTEM_BFSTOP_LOGLEVEL_LABEL="Journal d'activité" PLG_SYSTEM_BFSTOP_LOGLEVEL_DESC="Détermine si un fichier journal des activités du plugin doit être créé (cela ne devrait être nécessaire qu'en cas de problème ; le fichier journal se trouve dans le répertoire des journaux sous le nom plg_system_bfstop.log.php). Vous pouvez aussi choisir le niveau de détail du journal ; par exemple, avec ERROR, seuls les dysfonctionnements sont consignés dans le fichier." PLG_SYSTEM_BFSTOP_BLOCK_NUMBER_LABEL="Seuil de blocage" @@ -69,15 +67,6 @@ PLG_SYSTEM_BFSTOP_USE_HTTP_ERROR_DESC="Si cette option est activée (recommandé ; Ajouté à compter de la version 1.1.0 PLG_SYSTEM_BFSTOP_DELETE_OLD_ENTRIES_LABEL="Effacement des anciennes entrées" PLG_SYSTEM_BFSTOP_DELETE_OLD_ENTRIES_DESC="Efface les entrées dont l'ancienneté excède le nombre de semaines indiqué dans ce champ de saisie (indiquer 0 pour désactiver cette fonction d'effacement automatique)." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_LABEL="Délai adaptatif" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_DESC="Adaptation du délai avant reconnexion au nombre de connexions échouées. Augmente le délai en cas d'accroissement du nombre de connexions comme contre-mesure aux attaques distribuées." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_MAX_LABEL="Délai maximum" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_MAX_DESC="Le délai maximum de reconnexion lorsque le délai adaptatif est actif" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MIN_LABEL="Seuil minimal" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MIN_DESC="Le seuil à partir duquel le délai adaptatif entre en fonction (mesuré à travers le nombre de connexions échouées dans la dernière heure)" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MAX_LABEL="Seuil maximal" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MAX_DESC="Le seuil à partir duquel le délai adaptatif est maximal (mesuré à travers le nombre de connexions échouées dans la dernière heure)" -PLG_SYSTEM_BFSTOP_DELAY_FIELDSET_LABEL="Délai" ; Ajouté à compter de la version 1.2.0 Beta1 PLG_SYSTEM_BFSTOP_BLOCK_1WEEK="1 semaine" PLG_SYSTEM_BFSTOP_BLOCK_30DAYS="30 jours" diff --git a/plugin/language/it-IT/it-IT.plg_system_bfstop.ini b/plugin/language/it-IT/it-IT.plg_system_bfstop.ini index eaed15c..99a763e 100644 --- a/plugin/language/it-IT/it-IT.plg_system_bfstop.ini +++ b/plugin/language/it-IT/it-IT.plg_system_bfstop.ini @@ -14,6 +14,7 @@ PLG_SYSTEM_BFSTOP_PASSWORD_RESET_RECOMMENDED="È stato rilevato che uno o più d PLG_SYSTEM_BFSTOP_BLOCKED_CLIENT_IP="Il tuo indirizzo IP è: %s." PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_HINT="Questo aggiornamento alla versione 2.0.0 comporta importanti modifiche alla configurazione. La configurazione è stata spostata dal Gestore dei plugin al componente BFStop: apri la vista Configurazione del componente e controlla le tue impostazioni, in particolare la sezione «Proxy / Bilanciatore di carico» se il tuo sito si trova dietro un reverse proxy o un bilanciatore di carico." PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_API_HINT="Brute Force Stop ora protegge anche gli accessi tramite la API dei servizi web di Joomla! (api/index.php, con token API o autenticazione HTTP Basic), e questo aggiornamento lo ha attivato: gli accessi falliti lì contano per il blocco e gli indirizzi bloccati vengono respinti anche dalla API. Se una tua integrazione usa la API da un indirizzo i cui accessi possono fallire, controlla l'impostazione 'Attivo per' nella vista Impostazioni del componente." +PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_DELAYS_REMOVED="Brute Force Stop non ritarda più la risposta agli accessi falliti. Le impostazioni precedenti la ritardavano («Ritardo» o «Ritardo adattivo»); queste impostazioni sono state rimosse. Una risposta ritardata tiene occupato un processo PHP del server per tutto il ritardo, cosa che gli aggressori che inviano molti accessi in parallelo possono sfruttare per rendere il sito irraggiungibile, mentre li rallenta appena. Gli accessi falliti vengono ancora contati e bloccati come prima. Per rallentare i client, usa la limitazione di frequenza del server web o di un proxy davanti a esso (ad es. limit_req di nginx, mod_evasive di Apache o fail2ban)." PLG_SYSTEM_BFSTOP_UPDATE_HTACCESS_NOT_REWRITTEN="Brute Force Stop non è riuscito a riscrivere la sua sezione di blocco in %s. La sezione scritta dalle versioni precedenti permette a chiunque non sia bloccato di superare gli altri controlli di accesso di quella directory (protezione con password, restrizioni IP). Rendi il file scrivibile ed esegui di nuovo l'aggiornamento, oppure rimuovi a mano le righe tra '# BEGIN BFStop Blocks' e '# END BFStop Blocks'." PLG_SYSTEM_BFSTOP_UPDATE_MIGRATION_FAILED="Brute Force Stop non è riuscito a migrare le sue impostazioni e i suoi dati durante l'aggiornamento (%s). Finché non viene risolto, il plugin funziona con le impostazioni predefinite: controlla le impostazioni ed esegui di nuovo l'aggiornamento." PLG_SYSTEM_BFSTOP_SITE_ADDRESS_NOT_SET="(indirizzo del sito non configurato)" diff --git a/plugin/language/it-IT/it-IT.plg_system_bfstop.sys.ini b/plugin/language/it-IT/it-IT.plg_system_bfstop.sys.ini index 8e91179..ea4213d 100644 --- a/plugin/language/it-IT/it-IT.plg_system_bfstop.sys.ini +++ b/plugin/language/it-IT/it-IT.plg_system_bfstop.sys.ini @@ -1,5 +1,5 @@ PLG_SYSTEM_BFSTOP="System - Brute Force Stop" -PLG_SYSTEM_BFSTOP_DESC="

Brute Force Stop

La configurazione si è spostata: BFStop ora si configura nel componente, non più qui - vai su Componenti → Brute Force Stop → Impostazioni.

Questo plugin offre gli strumenti per prevenire i Brute-Force-Attacks sulla vostra installazione Joomla!. A questo scopo, il plugin memorizza le informazioni sui tentativi di accesso non riusciti, in modo che quando si raggiunge un numero configurabile di tentativi di accesso non riusciti l'indirizzo IP dell'aggressore possa essere bloccato. Inoltre, è possibile configurare degli avvisi per i tentativi di accesso non riusciti e gli indirizzi IP bloccati, così come un ritardo di tempo variabile per i tentativi di accesso non riuscito.

Non dimenticare di configurare e pubblicare il plugin dopo l'installazione!
Se avete domande sul plugin, visitate il sito del progetto su GitHub. In caso di problemi quando si utilizza il plugin, non esitate a segnalarli in issue tracker!

Alcune parti di questo plugin sono state ispirate dai seguenti plugin: Login Failed Log, Redirect Failed Logins e Ban IP Address/Range. Grazie e mille per i plugin di questi autori!
Brute Force Stop è un PluginJoomla!, pubblicato con licenza GNU General Public License.
" +PLG_SYSTEM_BFSTOP_DESC="

Brute Force Stop

La configurazione si è spostata: BFStop ora si configura nel componente, non più qui - vai su Componenti → Brute Force Stop → Impostazioni.

Questo plugin offre gli strumenti per prevenire i Brute-Force-Attacks sulla vostra installazione Joomla!. A questo scopo, il plugin memorizza le informazioni sui tentativi di accesso non riusciti, in modo che quando si raggiunge un numero configurabile di tentativi di accesso non riusciti l'indirizzo IP dell'aggressore possa essere bloccato. Inoltre, è possibile configurare degli avvisi per i tentativi di accesso non riusciti e gli indirizzi IP bloccati.

Non dimenticare di configurare e pubblicare il plugin dopo l'installazione!
Se avete domande sul plugin, visitate il sito del progetto su GitHub. In caso di problemi quando si utilizza il plugin, non esitate a segnalarli in issue tracker!

Alcune parti di questo plugin sono state ispirate dai seguenti plugin: Login Failed Log, Redirect Failed Logins e Ban IP Address/Range. Grazie e mille per i plugin di questi autori!
Brute Force Stop è un PluginJoomla!, pubblicato con licenza GNU General Public License.
" PLG_SYSTEM_BFSTOP_BLOCK_ENABLED_LABEL="Attiva il Blocco" PLG_SYSTEM_BFSTOP_BLOCK_ENABLED_DESC="Questo plugin dovrebbe bloccare gli indirizzi IP. Quando disattivato, non verranno aggiunti nuovi indirizzi IP alla lista degli indirizzi bloccati, e nemmeno gli indirizzi IP già presenti in tale lista verranno ancora bloccati (la lista sarà però preservata)." PLG_SYSTEM_BFSTOP_USERID_LABEL="Seleziona un utente" @@ -16,8 +16,6 @@ PLG_SYSTEM_BFSTOP_NOTIFY_FAILED_ONLY_EXISTING_LABEL="Messaggi di errore solo per PLG_SYSTEM_BFSTOP_NOTIFY_FAILED_ONLY_EXISTING_DESC="Notifica un accesso fallito solo se il nome utente (o l'indirizzo email) inserito appartiene a un account esistente. I tentativi con nomi non registrati su questo sito (di solito bot che indovinano i nomi utente) vengono comunque registrati e contati ai fini del blocco, ma non generano alcuna notifica." PLG_SYSTEM_BFSTOP_NOTIFY_BLOCKED_NUMBER_LABEL="Messaggi Bloccati per giorno" PLG_SYSTEM_BFSTOP_NOTIFY_BLOCKED_NUMBER_DESC="Quante volte al giorno vuoi che vengano notificati gli IP bloccati." -PLG_SYSTEM_BFSTOP_DELAY_DURATION_LABEL="Ritardo" -PLG_SYSTEM_BFSTOP_DELAY_DURATION_DESC="Ritardo (in secondi) nel caso di tentativo fallito di accesso." PLG_SYSTEM_BFSTOP_LOGLEVEL_LABEL="Registrazione" PLG_SYSTEM_BFSTOP_LOGLEVEL_DESC="Determina se deve essere creato un file di log sulle attività del plugin (dovrebbe essere necessario solo in caso di problemi; il file di log si trova nella directory logs con nome plg_system_bfstop.log.php). È inoltre possibile configurare il livello di dettaglio del log: ad esempio, se impostato su ERRORE scriverè nel file di log solo le informazioni sul malfunzionamento." PLG_SYSTEM_BFSTOP_BLOCK_NUMBER_LABEL="Soglia del Blocco" @@ -64,15 +62,6 @@ PLG_SYSTEM_BFSTOP_INFO="Messaggio infomrativo" PLG_SYSTEM_BFSTOP_DEBUG="Informazioni dettagliate" PLG_SYSTEM_BFSTOP_DELETE_OLD_ENTRIES_LABEL="Rimuovere i vecchi tentativi" PLG_SYSTEM_BFSTOP_DELETE_OLD_ENTRIES_DESC="Elimina i tentativi di Login falliti più vecchi del numero di settimane fornite in questo campo (impostato a 0 disabilita l'eliminazione delle vecchie voci)." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_LABEL="Ritardo adattivo" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_DESC="Attiva per adattare il ritardo all'attuale tasso di accessi falliti. Aumenterà il ritardo ogni volta che c'è un aumento del numero di accessi come contromisura per gli attacchi distribuiti." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_MAX_LABEL="Ritardo massimo" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_MAX_DESC="Il ritardo massimo per la risposta ai tentativi di accesso non riusciti, quando il ritardo adattivo è attivato" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MIN_LABEL="Soglia minima" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MIN_DESC="La soglia alla quale il ritardo adattivo inizia a entrare in azione (misurata in numero di accessi non riusciti nelle ultime ore)" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MAX_LABEL="Soglia massima" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MAX_DESC="La soglia alla quale il ritardo adattativo raggiunge il massimo ritardo (misurata in numero di accessi non riusciti nelle ultime ore)" -PLG_SYSTEM_BFSTOP_DELAY_FIELDSET_LABEL="Ritardo" PLG_SYSTEM_BFSTOP_NOTIFICATION_FIELDSET_LABEL="Notifica" PLG_SYSTEM_BFSTOP_PROXY_FIELDSET_LABEL="Proxy / Bilanciatore di carico" PLG_SYSTEM_BFSTOP_USE_PROXY_LABEL="Dietro un proxy / bilanciatore di carico" diff --git a/plugin/language/nl-NL/nl-NL.plg_system_bfstop.ini b/plugin/language/nl-NL/nl-NL.plg_system_bfstop.ini index 739cd74..27c9fec 100644 --- a/plugin/language/nl-NL/nl-NL.plg_system_bfstop.ini +++ b/plugin/language/nl-NL/nl-NL.plg_system_bfstop.ini @@ -14,6 +14,7 @@ PLG_SYSTEM_BFSTOP_PASSWORD_RESET_RECOMMENDED="Een of meer van je inlogpogingen z PLG_SYSTEM_BFSTOP_BLOCKED_CLIENT_IP="Uw IP-adres is: %s." PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_HINT="Deze update naar versie 2.0.0 brengt ingrijpende wijzigingen in de configuratie met zich mee. De configuratie is verhuisd van de Pluginbeheerder naar de BFStop-component - ga naar de weergave Instellingen van de component en controleer je instellingen, met name het onderdeel 'Proxy / Load balancer' als je site achter een reverse proxy of load balancer staat." PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_API_HINT="Brute Force Stop beschermt nu ook aanmeldingen via de webservices-API van Joomla! (api/index.php, met API-tokens of HTTP Basic-authenticatie), en deze update heeft dat ingeschakeld: mislukte aanmeldingen daar tellen mee voor blokkering en geblokkeerde adressen worden ook door de API geweigerd. Als een van uw koppelingen de API gebruikt vanaf een adres waarvan aanmeldingen kunnen mislukken, controleer dan de instelling 'Activeer detectie voor' in de instellingenweergave van de component." +PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_DELAYS_REMOVED="Brute Force Stop vertraagt het antwoord op mislukte aanmeldingen niet meer. Uw vorige instellingen vertraagden het ('Vertraging' of 'Zelflerende vertraging'); deze instellingen zijn verwijderd. Een vertraagd antwoord houdt een PHP-worker van de server bezig zolang de vertraging duurt, waarmee aanvallers die veel aanmeldingen tegelijk sturen de site onbereikbaar kunnen maken, terwijl het hen nauwelijks afremt. Mislukte aanmeldingen worden nog steeds geteld en geblokkeerd zoals voorheen. Gebruik om clients af te remmen de snelheidsbeperking van uw webserver of van een proxy ervoor (bijv. limit_req van nginx, mod_evasive van Apache of fail2ban)." PLG_SYSTEM_BFSTOP_UPDATE_HTACCESS_NOT_REWRITTEN="Brute Force Stop kon zijn blokkeersectie in %s niet herschrijven. De sectie die eerdere versies schreven laat iedereen die niet geblokkeerd is langs de andere toegangscontroles van die map (wachtwoordbeveiliging, IP-beperkingen). Maak het bestand schrijfbaar en voer de update opnieuw uit, of verwijder de regels tussen '# BEGIN BFStop Blocks' en '# END BFStop Blocks' met de hand." PLG_SYSTEM_BFSTOP_UPDATE_MIGRATION_FAILED="Brute Force Stop kon zijn instellingen en gegevens bij de update niet overzetten (%s). Tot dit is opgelost werkt de plugin met zijn standaardinstellingen: controleer de instellingen en voer de update opnieuw uit." PLG_SYSTEM_BFSTOP_SITE_ADDRESS_NOT_SET="(adres van de site niet ingesteld)" diff --git a/plugin/language/nl-NL/nl-NL.plg_system_bfstop.sys.ini b/plugin/language/nl-NL/nl-NL.plg_system_bfstop.sys.ini index 8cd6f0d..1e4bd52 100644 --- a/plugin/language/nl-NL/nl-NL.plg_system_bfstop.sys.ini +++ b/plugin/language/nl-NL/nl-NL.plg_system_bfstop.sys.ini @@ -1,5 +1,5 @@ PLG_SYSTEM_BFSTOP="Systeem - Brute Force Stop" -PLG_SYSTEM_BFSTOP_DESC="

Brute Force Stop

Configuratie is verplaatst: BFStop wordt nu geconfigureerd in het component, niet meer hier - ga naar Componenten → Brute Force Stop → Instellingen.

Dit plugin verstrekt middelen om Brute-Force-aanvallen af te wenden op uw Joomla-installatie. Voor dit doel slaat de plugin informatie over mislukte inlogpogingen op, zodat wanneer het bereiken van een configureerbare aantal dergelijke login pogingen is mislukt de aanvallers IP-adres kan worden geblokkeerd. Bovendien kunt u berichten over mislukte aanmeldingen en geblokkeerde IP-adressen configureren, naast een variabele vertraging voor een mislukte login poging.

Vergeet niet de plugin te configureren en te publiceren na de installatie!
Als u meer wilt over de plugin weten, ga dan naar de project site op github. Bij eventuele problemen bij het gebruik van de plugin, aarzel niet om dit te melden in de issue tracker!

In sommige delen is deze plugin geïnspireerd door de volgende plugins: Login Failed Log, Redirect Failed Logins en Ban IP Address/Range. Een bedankje voor de auteurs van deze plugins!
Brute Force Stop is een Joomla! Plugin, gepubliceerd onder de GNU General Public License.
" +PLG_SYSTEM_BFSTOP_DESC="

Brute Force Stop

Configuratie is verplaatst: BFStop wordt nu geconfigureerd in het component, niet meer hier - ga naar Componenten → Brute Force Stop → Instellingen.

Dit plugin verstrekt middelen om Brute-Force-aanvallen af te wenden op uw Joomla-installatie. Voor dit doel slaat de plugin informatie over mislukte inlogpogingen op, zodat wanneer het bereiken van een configureerbare aantal dergelijke login pogingen is mislukt de aanvallers IP-adres kan worden geblokkeerd. Bovendien kunt u berichten over mislukte aanmeldingen en geblokkeerde IP-adressen configureren.

Vergeet niet de plugin te configureren en te publiceren na de installatie!
Als u meer wilt over de plugin weten, ga dan naar de project site op github. Bij eventuele problemen bij het gebruik van de plugin, aarzel niet om dit te melden in de issue tracker!

In sommige delen is deze plugin geïnspireerd door de volgende plugins: Login Failed Log, Redirect Failed Logins en Ban IP Address/Range. Een bedankje voor de auteurs van deze plugins!
Brute Force Stop is een Joomla! Plugin, gepubliceerd onder de GNU General Public License.
" PLG_SYSTEM_BFSTOP_BLOCK_ENABLED_LABEL="IP adres blokkering" PLG_SYSTEM_BFSTOP_BLOCK_ENABLED_DESC="Of deze plugin blokkeren van IP-adressen moet toepassen. Wanneer uitgeschakeld, zullen geen nieuwe IP-adressen aan de lijst met geblokkeerde adressen worden toegevoegd, en zelfs IP-adressen al op die lijst zullen niet meer worden geblokkeerd (de lijst zelf zal worden bewaard)." PLG_SYSTEM_BFSTOP_USERID_LABEL="Selecteer een gebruiker" @@ -16,8 +16,6 @@ PLG_SYSTEM_BFSTOP_NOTIFY_FAILED_ONLY_EXISTING_LABEL="Foutberichten alleen voor b PLG_SYSTEM_BFSTOP_NOTIFY_FAILED_ONLY_EXISTING_DESC="Meld een mislukte aanmelding alleen als de ingevoerde gebruikersnaam (of het e-mailadres) bij een bestaand account hoort. Pogingen met namen die niet op deze site zijn geregistreerd (meestal bots die gebruikersnamen raden) worden nog steeds vastgelegd en tellen mee voor het blokkeren, maar leiden niet tot een melding." PLG_SYSTEM_BFSTOP_NOTIFY_BLOCKED_NUMBER_LABEL="Aantal berichten over geblokkeerde IP adressen per dag" PLG_SYSTEM_BFSTOP_NOTIFY_BLOCKED_NUMBER_DESC="Hoe vaak informeren over geblokkeerde IP adressen gedurende 1 dag." -PLG_SYSTEM_BFSTOP_DELAY_DURATION_LABEL="Vertraging" -PLG_SYSTEM_BFSTOP_DELAY_DURATION_DESC="Vertraging (in seconden) na een mislukte aanlogpoging." PLG_SYSTEM_BFSTOP_LOGLEVEL_LABEL="Logging" PLG_SYSTEM_BFSTOP_LOGLEVEL_DESC="Hiermee bepaalt u of een Logfile over de activiteiten van de plugin moet worden gemaakt (Dit is alleen nodig in geval van een probleem; het logbestand kan worden gevonden in de logs directory onder de naam plg_system_bfstop.log.php)." PLG_SYSTEM_BFSTOP_BLOCK_NUMBER_LABEL="Max aantal foutieve pogingen" @@ -64,15 +62,6 @@ PLG_SYSTEM_BFSTOP_INFO="Informatieve meldingen" PLG_SYSTEM_BFSTOP_DEBUG="Gedetailleerde meldingen" PLG_SYSTEM_BFSTOP_DELETE_OLD_ENTRIES_LABEL="Verwijder oude foutieve aanlogpogingen na (weken)" PLG_SYSTEM_BFSTOP_DELETE_OLD_ENTRIES_DESC="Verwijder foutieve aanlogpogingen ouder dan het aantal weken dat wordt ingegeven in dit veld (gebruik waarde 0 om nooit op te schonen)." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_LABEL="Zelflerende vertraging" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_DESC="Activeer de zelflerende vertraging zodat deze zich aanpast aan het actuele aantal foutieve aanlogpogingen. De vertraging tussen de logins wordt dan dynamisch in tijd verhoogd als tegenmaatregel tegen bijvoorbeeld een gedistribueerde aanval op uw website." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_MAX_LABEL="Maximale vertragingsduur (seconden)" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_MAX_DESC="De maximale vertraging (in seconden) die u wilt toestaan. De vertraging wordt dynamisch naar dit maximum opgebouwd afhankelijk van het aantal mislukte aanlogpoging." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MIN_LABEL="Start extra vertraging bij" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MIN_DESC="De ondergrens (in aantal foutieve aanlogpogingen over laatste uur) voordat de extra vertraging wordt geactiveerd." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MAX_LABEL="Stop extra vertraging bij" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MAX_DESC="De bovengrens (in aantal foutieve aanlogpogingen over laatste uur) waarboven geen extra vertraging meer wordt toegepast." -PLG_SYSTEM_BFSTOP_DELAY_FIELDSET_LABEL="Vertraging" PLG_SYSTEM_BFSTOP_NOTIFICATION_FIELDSET_LABEL="Informeren" PLG_SYSTEM_BFSTOP_PROXY_FIELDSET_LABEL="Proxy / Load balancer" PLG_SYSTEM_BFSTOP_USE_PROXY_LABEL="Achter een proxy / load balancer" diff --git a/plugin/language/pt-BR/pt-BR.plg_system_bfstop.ini b/plugin/language/pt-BR/pt-BR.plg_system_bfstop.ini index e122138..55deb27 100644 --- a/plugin/language/pt-BR/pt-BR.plg_system_bfstop.ini +++ b/plugin/language/pt-BR/pt-BR.plg_system_bfstop.ini @@ -18,6 +18,7 @@ PLG_SYSTEM_BFSTOP_PASSWORD_RESET_RECOMMENDED="Notamos que uma ou mais de suas te PLG_SYSTEM_BFSTOP_BLOCKED_CLIENT_IP="Seu endereço IP é: %s." PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_HINT="Esta atualização para a versão 2.0.0 traz grandes mudanças na configuração. A configuração saiu do Gerenciador de plugins e foi para o componente BFStop - acesse a visualização Configurações do componente e revise suas configurações, em especial a seção 'Proxy / Balanceador de carga' se o seu site estiver atrás de um proxy reverso ou de um balanceador de carga." PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_API_HINT="O Brute Force Stop agora também protege os logins pela API de serviços web do Joomla! (api/index.php, com tokens de API ou autenticação HTTP Basic), e esta atualização ativou isso: logins com falha ali contam para o bloqueio, e endereços bloqueados também são recusados pela API. Se alguma integração sua usa a API a partir de um endereço cujos logins podem falhar, verifique a configuração 'Ativo para' na tela de configurações do componente." +PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_DELAYS_REMOVED="O Brute Force Stop não atrasa mais a resposta a logins com falha. As suas configurações anteriores a atrasavam ('Adiamento' ou 'Atraso adaptativo'); essas configurações foram removidas. Uma resposta atrasada mantém um processo PHP do servidor ocupado durante todo o atraso, o que atacantes que enviam muitos logins em paralelo podem usar para deixar o site indisponível, enquanto isso quase não os atrasa. Os logins com falha continuam sendo contados e bloqueados como antes. Para frear clientes, use a limitação de taxa do seu servidor web ou de um proxy à frente dele (por ex. limit_req do nginx, mod_evasive do Apache ou fail2ban)." PLG_SYSTEM_BFSTOP_UPDATE_HTACCESS_NOT_REWRITTEN="O Brute Force Stop não conseguiu reescrever sua seção de bloqueios em %s. A seção escrita por versões anteriores deixa qualquer pessoa que não esteja bloqueada passar pelos outros controles de acesso desse diretório (proteção por senha, restrições de IP). Torne o arquivo gravável e execute a atualização novamente, ou remova manualmente as linhas entre '# BEGIN BFStop Blocks' e '# END BFStop Blocks'." PLG_SYSTEM_BFSTOP_UPDATE_MIGRATION_FAILED="O Brute Force Stop não conseguiu migrar suas configurações e dados durante a atualização (%s). Até que isso seja corrigido, o plugin funciona com as configurações padrão: verifique as configurações e execute a atualização novamente." PLG_SYSTEM_BFSTOP_SITE_ADDRESS_NOT_SET="(endereço do site não configurado)" diff --git a/plugin/language/pt-BR/pt-BR.plg_system_bfstop.sys.ini b/plugin/language/pt-BR/pt-BR.plg_system_bfstop.sys.ini index f452d87..3c1d7c8 100644 --- a/plugin/language/pt-BR/pt-BR.plg_system_bfstop.sys.ini +++ b/plugin/language/pt-BR/pt-BR.plg_system_bfstop.sys.ini @@ -2,7 +2,7 @@ ; www.com-property.site11.com ; Saved as UTF-8 - No BOM PLG_SYSTEM_BFSTOP="Sistema - Brute Force Stop" -PLG_SYSTEM_BFSTOP_DESC="

Brute Force Stop

A configuração foi movida: o BFStop agora é configurado no componente, não mais aqui - acesse Componentes → Brute Force Stop → Configurações.

Este plugin fornece meios para evitar o Brute-force login na sua instalação do Joomla. Para este efeito, o plugin armazena informações sobre tentativas de login, de modo que quando se atinge um número configurável de tais tentativas de login falhado, o endereço IP do intruso pode ser bloqueado. Além disso, você pode configurar notificações sobre logins que falharam e endereços IP bloqueados, bem como um adiamento variável para uma tentativa de login falhada.

Não se esqueça de configurar e publicar o plugin após a instalação!
Se você tiver alguma dúvida sobre o plugin, visite o site do projeto no github. Caso haja algum problema ao usar o plugin, não hesite em relatá-los no rastreador de problemas!

Em algumas partes, este plugin foi inspirado pelos seguintes plugins:Login Failed Log, Redirect Failed Logins e Ban IP Address/Range. Muito obrigado aos autores destes plugins!
Brute Force Stop é um Joomla! Plugin, publicado sobre licença GNU General Public License.

Tradução para portugues realizada por solrac comproperty247(at)gmail.com
" +PLG_SYSTEM_BFSTOP_DESC="

Brute Force Stop

A configuração foi movida: o BFStop agora é configurado no componente, não mais aqui - acesse Componentes → Brute Force Stop → Configurações.

Este plugin fornece meios para evitar o Brute-force login na sua instalação do Joomla. Para este efeito, o plugin armazena informações sobre tentativas de login, de modo que quando se atinge um número configurável de tais tentativas de login falhado, o endereço IP do intruso pode ser bloqueado. Além disso, você pode configurar notificações sobre logins que falharam e endereços IP bloqueados.

Não se esqueça de configurar e publicar o plugin após a instalação!
Se você tiver alguma dúvida sobre o plugin, visite o site do projeto no github. Caso haja algum problema ao usar o plugin, não hesite em relatá-los no rastreador de problemas!

Em algumas partes, este plugin foi inspirado pelos seguintes plugins:Login Failed Log, Redirect Failed Logins e Ban IP Address/Range. Muito obrigado aos autores destes plugins!
Brute Force Stop é um Joomla! Plugin, publicado sobre licença GNU General Public License.

Tradução para portugues realizada por solrac comproperty247(at)gmail.com
" PLG_SYSTEM_BFSTOP_BLOCK_ENABLED_LABEL="Ativar bloqueio" PLG_SYSTEM_BFSTOP_BLOCK_ENABLED_DESC="Se este plugin deve bloquear endereços IP ou não. Quando desativado, não há novos endereços IP serem adicionados à lista de endereços bloqueados, e nem mesmo os endereços IP já nessa lista será mais bloqueado (a própria lista será preservada)." PLG_SYSTEM_BFSTOP_USERID_LABEL="Selecione um Usuário" @@ -19,8 +19,6 @@ PLG_SYSTEM_BFSTOP_NOTIFY_FAILED_ONLY_EXISTING_LABEL="Msgs de falha só para cont PLG_SYSTEM_BFSTOP_NOTIFY_FAILED_ONLY_EXISTING_DESC="Notificar sobre um login com falha somente se o nome de usuário (ou endereço de e-mail) informado pertencer a uma conta existente. Tentativas com nomes que não estão cadastrados neste site (normalmente robôs que adivinham nomes de usuário) continuam sendo registradas e contadas para o bloqueio, mas não geram notificação." PLG_SYSTEM_BFSTOP_NOTIFY_BLOCKED_NUMBER_LABEL="Msgs de bloqueio por dia" PLG_SYSTEM_BFSTOP_NOTIFY_BLOCKED_NUMBER_DESC="Quantas vezes para avisar sobre um IP bloqueado durante um dia" -PLG_SYSTEM_BFSTOP_DELAY_DURATION_LABEL="Adiamento" -PLG_SYSTEM_BFSTOP_DELAY_DURATION_DESC="Adiamento (em segundos) após um login falhado" PLG_SYSTEM_BFSTOP_LOGLEVEL_LABEL="Registro de log" PLG_SYSTEM_BFSTOP_LOGLEVEL_DESC="Determina se deve ser criado um arquivo de log com as atividades do plugin (isso só deve ser necessário em caso de problema; o arquivo está no diretório de logs com o nome plg_system_bfstop.log.php). Você também pode configurar o nível de detalhe do log; por exemplo, defina como ERROR para registrar no arquivo apenas cada falha de funcionamento." PLG_SYSTEM_BFSTOP_BLOCK_NUMBER_LABEL="Limite de bloqueio" @@ -67,15 +65,6 @@ PLG_SYSTEM_BFSTOP_INFO="Mensagem informativa" PLG_SYSTEM_BFSTOP_DEBUG="Informações detalhadas" PLG_SYSTEM_BFSTOP_DELETE_OLD_ENTRIES_LABEL="Limpar tentativas antigas" PLG_SYSTEM_BFSTOP_DELETE_OLD_ENTRIES_DESC="Exclui as tentativas de login com falha mais antigas do que o número de semanas informado neste campo (defina como 0 para não excluir entradas antigas)." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_LABEL="Atraso adaptativo" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_DESC="Ative para adaptar o atraso à taxa atual de tentativas de login com falha. Aumenta o atraso sempre que houver um número maior de logins, como contramedida a ataques distribuídos." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_MAX_LABEL="Atraso máximo" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_MAX_DESC="O atraso máximo da resposta a tentativas de login com falha quando o atraso adaptativo está ativado" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MIN_LABEL="Limite mínimo" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MIN_DESC="O limite a partir do qual o atraso adaptativo começa a ter efeito (medido em número de logins com falha na última hora)" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MAX_LABEL="Limite máximo" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MAX_DESC="O limite no qual o atraso adaptativo atinge o atraso máximo (medido em número de logins com falha na última hora)" -PLG_SYSTEM_BFSTOP_DELAY_FIELDSET_LABEL="Atraso" PLG_SYSTEM_BFSTOP_NOTIFICATION_FIELDSET_LABEL="Notificação" PLG_SYSTEM_BFSTOP_PROXY_FIELDSET_LABEL="Proxy / Balanceador de carga" PLG_SYSTEM_BFSTOP_USE_PROXY_LABEL="Atrás de um proxy / balanceador de carga" diff --git a/plugin/language/pt-PT/pt-PT.plg_system_bfstop.ini b/plugin/language/pt-PT/pt-PT.plg_system_bfstop.ini index b09d7a9..f5deb4d 100644 --- a/plugin/language/pt-PT/pt-PT.plg_system_bfstop.ini +++ b/plugin/language/pt-PT/pt-PT.plg_system_bfstop.ini @@ -18,6 +18,7 @@ PLG_SYSTEM_BFSTOP_PASSWORD_RESET_RECOMMENDED="Foi detetado que uma ou mais das s PLG_SYSTEM_BFSTOP_BLOCKED_CLIENT_IP="O seu endereço IP é: %s." PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_HINT="Esta atualização para a versão 2.0.0 traz grandes alterações à configuração. A configuração saiu do Gestor de plugins e foi para o componente BFStop - aceda à vista Definições do componente e reveja as suas definições, em especial a secção 'Proxy / Balanceador de carga' se o seu site estiver atrás de um proxy inverso ou de um balanceador de carga." PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_API_HINT="O Brute Force Stop agora também protege os inícios de sessão através da API de serviços web do Joomla! (api/index.php, com tokens de API ou autenticação HTTP Basic), e esta atualização ativou-o: os inícios de sessão falhados aí contam para o bloqueio e os endereços bloqueados também são recusados pela API. Se alguma integração sua usa a API a partir de um endereço cujos inícios de sessão podem falhar, verifique a definição 'Ativo para' na vista de definições do componente." +PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_DELAYS_REMOVED="O Brute Force Stop já não atrasa a resposta a inícios de sessão falhados. As suas definições anteriores atrasavam-na ('Adiamento' ou 'Atraso adaptativo'); essas definições foram removidas. Uma resposta atrasada mantém um processo PHP do servidor ocupado durante todo o atraso, o que atacantes que enviam muitos inícios de sessão em paralelo podem usar para tornar o site indisponível, enquanto quase não os trava. Os inícios de sessão falhados continuam a ser contados e bloqueados como antes. Para travar clientes, utilize a limitação de taxa do seu servidor web ou de um proxy à frente dele (p. ex. limit_req do nginx, mod_evasive do Apache ou fail2ban)." PLG_SYSTEM_BFSTOP_UPDATE_HTACCESS_NOT_REWRITTEN="O Brute Force Stop não conseguiu reescrever a sua secção de bloqueios em %s. A secção escrita por versões anteriores deixa qualquer pessoa que não esteja bloqueada passar pelos outros controlos de acesso desse diretório (proteção por palavra-passe, restrições de IP). Torne o ficheiro gravável e execute a atualização novamente, ou remova manualmente as linhas entre '# BEGIN BFStop Blocks' e '# END BFStop Blocks'." PLG_SYSTEM_BFSTOP_UPDATE_MIGRATION_FAILED="O Brute Force Stop não conseguiu migrar as suas definições e dados durante a atualização (%s). Até que isso seja corrigido, o plugin funciona com as definições predefinidas: verifique as definições e execute a atualização novamente." PLG_SYSTEM_BFSTOP_SITE_ADDRESS_NOT_SET="(endereço do site não configurado)" diff --git a/plugin/language/pt-PT/pt-PT.plg_system_bfstop.sys.ini b/plugin/language/pt-PT/pt-PT.plg_system_bfstop.sys.ini index 8ae31b1..ed89aef 100644 --- a/plugin/language/pt-PT/pt-PT.plg_system_bfstop.sys.ini +++ b/plugin/language/pt-PT/pt-PT.plg_system_bfstop.sys.ini @@ -3,7 +3,7 @@ ; Saved as UTF-8 - No BOM PLG_SYSTEM_BFSTOP="Sistema - Brute Force Stop" -PLG_SYSTEM_BFSTOP_DESC="

Brute Force Stop

A configuração foi movida: o BFStop é agora configurado no componente, e já não aqui - aceda a Componentes → Brute Force Stop → Definições.

Este plugin fornece meios para evitar o Brute-force início de sessão na sua instalação do Joomla. Para este efeito, o plugin armazena informações sobre tentativas de início de sessão, de modo que quando se atinge um número configurável de tais tentativas de início de sessão falhadas, o endereço IP do intruso pode ser bloqueado. Além disso, o utilizador pode configurar notificações sobre inícios de sessão que falharam e endereços IP bloqueados, bem como um adiamento variável para uma tentativa de início de sessão falhada.

Não se esqueça de configurar e publicar o plugin após a instalação!
Se tiver alguma dúvida sobre o plugin, visite o site do projeto no github. Caso haja algum problema ao usar o plugin, não hesite em relatá-los no rastreador de problemas!

Em algumas partes, este plugin foi inspirado pelos seguintes plugins:Início de sessão Failed Log, Redirect Failed Inícios de sessão e Ban IP Address/Range. Muito obrigado aos autores destes plugins!
Brute Force Stop é um Joomla! Plugin, publicado sobre licença GNU General Public License.

Tradução para portugues realizada por solrac comproperty247(at)gmail.com
" +PLG_SYSTEM_BFSTOP_DESC="

Brute Force Stop

A configuração foi movida: o BFStop é agora configurado no componente, e já não aqui - aceda a Componentes → Brute Force Stop → Definições.

Este plugin fornece meios para evitar o Brute-force início de sessão na sua instalação do Joomla. Para este efeito, o plugin armazena informações sobre tentativas de início de sessão, de modo que quando se atinge um número configurável de tais tentativas de início de sessão falhadas, o endereço IP do intruso pode ser bloqueado. Além disso, o utilizador pode configurar notificações sobre inícios de sessão que falharam e endereços IP bloqueados.

Não se esqueça de configurar e publicar o plugin após a instalação!
Se tiver alguma dúvida sobre o plugin, visite o site do projeto no github. Caso haja algum problema ao usar o plugin, não hesite em relatá-los no rastreador de problemas!

Em algumas partes, este plugin foi inspirado pelos seguintes plugins:Início de sessão Failed Log, Redirect Failed Inícios de sessão e Ban IP Address/Range. Muito obrigado aos autores destes plugins!
Brute Force Stop é um Joomla! Plugin, publicado sobre licença GNU General Public License.

Tradução para portugues realizada por solrac comproperty247(at)gmail.com
" PLG_SYSTEM_BFSTOP_BLOCK_ENABLED_LABEL="Ativar bloqueio" PLG_SYSTEM_BFSTOP_BLOCK_ENABLED_DESC="Se este plugin deve bloquear endereços IP ou não. Quando desativado, não há novos endereços IP serem adicionados à lista de endereços bloqueados, e nem mesmo os endereços IP já nessa lista será mais bloqueado (a própria lista será preservada)." PLG_SYSTEM_BFSTOP_USERID_LABEL="Selecione um Utilizador" @@ -20,8 +20,6 @@ PLG_SYSTEM_BFSTOP_NOTIFY_FAILED_ONLY_EXISTING_LABEL="Msgs de falha só para cont PLG_SYSTEM_BFSTOP_NOTIFY_FAILED_ONLY_EXISTING_DESC="Notificar sobre um início de sessão falhado somente se o nome de utilizador (ou endereço de e-mail) indicado pertencer a uma conta existente. Tentativas com nomes que não estão registados neste site (normalmente robôs que adivinham nomes de utilizador) continuam a ser registadas e contadas para o bloqueio, mas não geram notificação." PLG_SYSTEM_BFSTOP_NOTIFY_BLOCKED_NUMBER_LABEL="Msgs de bloqueio por dia" PLG_SYSTEM_BFSTOP_NOTIFY_BLOCKED_NUMBER_DESC="Quantas vezes para avisar sobre um IP bloqueado durante um dia" -PLG_SYSTEM_BFSTOP_DELAY_DURATION_LABEL="Adiamento" -PLG_SYSTEM_BFSTOP_DELAY_DURATION_DESC="Atraso (em segundos) após um início de sessão falhado" PLG_SYSTEM_BFSTOP_LOGLEVEL_LABEL="Registo" PLG_SYSTEM_BFSTOP_LOGLEVEL_DESC="Determina se deve ser criado um ficheiro de registo com as atividades do plugin (isso só deve ser necessário em caso de problema; o ficheiro está no diretório de registos com o nome plg_system_bfstop.log.php). O utilizador também pode configurar o nível de detalhe do registo; por exemplo, defina como ERROR para registar no ficheiro apenas cada falha de funcionamento." PLG_SYSTEM_BFSTOP_BLOCK_NUMBER_LABEL="Limite de bloqueio" @@ -68,15 +66,6 @@ PLG_SYSTEM_BFSTOP_INFO="Mensagem informativa" PLG_SYSTEM_BFSTOP_DEBUG="Informações detalhadas" PLG_SYSTEM_BFSTOP_DELETE_OLD_ENTRIES_LABEL="Limpar tentativas antigas" PLG_SYSTEM_BFSTOP_DELETE_OLD_ENTRIES_DESC="Elimina as tentativas de início de sessão falhadas mais antigas do que o número de semanas indicado neste campo (defina como 0 para não eliminar entradas antigas)." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_LABEL="Atraso adaptativo" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_DESC="Ative para adaptar o atraso à taxa atual de tentativas de início de sessão falhadas. Aumenta o atraso sempre que houver um número maior de inícios de sessão, como contramedida a ataques distribuídos." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_MAX_LABEL="Atraso máximo" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_MAX_DESC="O atraso máximo da resposta a tentativas de início de sessão falhadas quando o atraso adaptativo está ativado" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MIN_LABEL="Limite mínimo" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MIN_DESC="O limite a partir do qual o atraso adaptativo começa a ter efeito (medido em número de inícios de sessão falhados na última hora)" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MAX_LABEL="Limite máximo" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MAX_DESC="O limite no qual o atraso adaptativo atinge o atraso máximo (medido em número de inícios de sessão falhados na última hora)" -PLG_SYSTEM_BFSTOP_DELAY_FIELDSET_LABEL="Atraso" PLG_SYSTEM_BFSTOP_NOTIFICATION_FIELDSET_LABEL="Notificação" PLG_SYSTEM_BFSTOP_PROXY_FIELDSET_LABEL="Proxy / Balanceador de carga" PLG_SYSTEM_BFSTOP_USE_PROXY_LABEL="Atrás de um proxy / balanceador de carga" diff --git a/plugin/language/ru-RU/ru-RU.plg_system_bfstop.ini b/plugin/language/ru-RU/ru-RU.plg_system_bfstop.ini index 1c3a625..7a5a388 100644 --- a/plugin/language/ru-RU/ru-RU.plg_system_bfstop.ini +++ b/plugin/language/ru-RU/ru-RU.plg_system_bfstop.ini @@ -14,6 +14,7 @@ PLG_SYSTEM_BFSTOP_PASSWORD_RESET_RECOMMENDED="Было замечено, что PLG_SYSTEM_BFSTOP_BLOCKED_CLIENT_IP="Ваш IP-адрес: %s." PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_HINT="Это обновление до версии 2.0.0 содержит серьёзные изменения в настройках. Настройки перенесены из менеджера плагинов в компонент BFStop - откройте раздел «Настройки» компонента и проверьте свои параметры, особенно секцию «Прокси / Балансировщик нагрузки», если ваш сайт работает за обратным прокси или балансировщиком нагрузки." PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_API_HINT="Brute Force Stop теперь защищает и входы через API веб-сервисов Joomla! (api/index.php, с API-токенами или HTTP Basic-аутентификацией), и это обновление включило эту защиту: неудачные входы там учитываются для блокировки, а заблокированные адреса отклоняются и API. Если какая-либо ваша интеграция использует API с адреса, входы с которого могут быть неудачными, проверьте настройку 'Активно для' в настройках компонента." +PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_DELAYS_REMOVED="Brute Force Stop больше не задерживает ответ на неудачные входы. Ваши прежние настройки задерживали его («Задержка» или «Адаптивная задержка»); эти настройки удалены. Задержанный ответ занимает PHP-процесс сервера на всё время задержки, и злоумышленники, отправляющие много входов параллельно, могут этим сделать сайт недоступным, почти не замедляясь сами. Неудачные входы по-прежнему подсчитываются и блокируются, как и раньше. Чтобы замедлять клиентов, используйте ограничение частоты запросов веб-сервера или стоящего перед ним прокси (например, limit_req в nginx, mod_evasive в Apache или fail2ban)." PLG_SYSTEM_BFSTOP_UPDATE_HTACCESS_NOT_REWRITTEN="Brute Force Stop не смог переписать свой раздел блокировок в %s. Раздел, записанный предыдущими версиями, позволяет всем, кто не заблокирован, обходить другие ограничения доступа этого каталога (защиту паролем, ограничения по IP). Сделайте файл доступным для записи и запустите обновление снова или удалите вручную строки между '# BEGIN BFStop Blocks' и '# END BFStop Blocks'." PLG_SYSTEM_BFSTOP_UPDATE_MIGRATION_FAILED="Brute Force Stop не смог перенести свои настройки и данные при обновлении (%s). Пока это не исправлено, плагин работает с настройками по умолчанию: проверьте настройки и запустите обновление снова." PLG_SYSTEM_BFSTOP_SITE_ADDRESS_NOT_SET="(адрес сайта не настроен)" diff --git a/plugin/language/ru-RU/ru-RU.plg_system_bfstop.sys.ini b/plugin/language/ru-RU/ru-RU.plg_system_bfstop.sys.ini index cb5fd1c..1796ca6 100644 --- a/plugin/language/ru-RU/ru-RU.plg_system_bfstop.sys.ini +++ b/plugin/language/ru-RU/ru-RU.plg_system_bfstop.sys.ini @@ -1,5 +1,5 @@ PLG_SYSTEM_BFSTOP="Безопасность - Brute Force Stop" -PLG_SYSTEM_BFSTOP_DESC="

Brute Force Stop

Настройки перенесены: BFStop теперь настраивается в компоненте, а не здесь - перейдите в Компоненты → Brute Force Stop → Настройки.

Этот плагин предоставляет средства для предотвращения Brute Force атак на Joomla. Плагин учитывает количество неудачных попыток входа, так что при достижении установленного количества таких неудачных попыток входа IP-адрес атакующего может быть заблокирован. Кроме того, вы можете настроить уведомления о неудачных попытках входа и о блокировке IP-адреса, а также временной задержки между неудачными входами на сервер.

Не забудьте настроить и опубликовать плагин после установки!
Если у вас возникли вопросы о плагине, пожалуйста, посетите сайт проекта GitHub. В случае возникновения проблем при использовании плагина, не стесняйтесь сообщить о них на форуме!

В некоторой степени, авторы этого плагина были вдохновлены следующими плагинами: Login Failed Log, Redirect Failed Logins и Ban IP Address/Range. Большое спасибо авторам этих плагинов!
Brute Force Stop - Joomla! плагин, опубликован в соответствии с лицензией GNU General Public License.
Перевод на русский язык - Raven.
" +PLG_SYSTEM_BFSTOP_DESC="

Brute Force Stop

Настройки перенесены: BFStop теперь настраивается в компоненте, а не здесь - перейдите в Компоненты → Brute Force Stop → Настройки.

Этот плагин предоставляет средства для предотвращения Brute Force атак на Joomla. Плагин учитывает количество неудачных попыток входа, так что при достижении установленного количества таких неудачных попыток входа IP-адрес атакующего может быть заблокирован. Кроме того, вы можете настроить уведомления о неудачных попытках входа и о блокировке IP-адреса.

Не забудьте настроить и опубликовать плагин после установки!
Если у вас возникли вопросы о плагине, пожалуйста, посетите сайт проекта GitHub. В случае возникновения проблем при использовании плагина, не стесняйтесь сообщить о них на форуме!

В некоторой степени, авторы этого плагина были вдохновлены следующими плагинами: Login Failed Log, Redirect Failed Logins и Ban IP Address/Range. Большое спасибо авторам этих плагинов!
Brute Force Stop - Joomla! плагин, опубликован в соответствии с лицензией GNU General Public License.
Перевод на русский язык - Raven.
" PLG_SYSTEM_BFSTOP_BLOCK_ENABLED_LABEL="Включить блокировку" PLG_SYSTEM_BFSTOP_BLOCK_ENABLED_DESC="Если этот плагин должен блокировать IP-адреса. Если отключено, новые IP адреса будут добавлены в бан лист, но блокироваться не будут (однако сам список будет сохранен)." PLG_SYSTEM_BFSTOP_USERID_LABEL="Выберите пользователя" @@ -16,8 +16,6 @@ PLG_SYSTEM_BFSTOP_NOTIFY_FAILED_ONLY_EXISTING_LABEL="Сообщения о не PLG_SYSTEM_BFSTOP_NOTIFY_FAILED_ONLY_EXISTING_DESC="Уведомлять о неудачной попытке входа, только если введённое имя пользователя (или адрес электронной почты) принадлежит существующей учётной записи. Попытки с именами, не зарегистрированными на этом сайте (обычно боты, подбирающие имена пользователей), по-прежнему записываются и учитываются при блокировке, но уведомление не отправляется." PLG_SYSTEM_BFSTOP_NOTIFY_BLOCKED_NUMBER_LABEL="Сообщений в день о блокированных IP" PLG_SYSTEM_BFSTOP_NOTIFY_BLOCKED_NUMBER_DESC="Сколько раз уведомлять о блокированных IP в течение одного дня" -PLG_SYSTEM_BFSTOP_DELAY_DURATION_LABEL="Задержка" -PLG_SYSTEM_BFSTOP_DELAY_DURATION_DESC="Задержка (в секундах) между неудачными попыткам входа" PLG_SYSTEM_BFSTOP_LOGLEVEL_LABEL="Запись в журнал ошибок" PLG_SYSTEM_BFSTOP_LOGLEVEL_DESC="Устанавливает какой тип ошибок будет записываться в лог (это необходимо только в случае возникновения проблем; лог-файл можно найти в папке с логами под названием plg_system_bfstop.log.php). Вы также можете настроить, что записывать в лог-файл, например: выберите 'Ошибка', чтобы в лог записывались только сообщения об ошибке плагина или выберите 'Детальная информация' для вывода всех ошибок и предупреждений плагина." PLG_SYSTEM_BFSTOP_BLOCK_NUMBER_LABEL="Порог блокировки" @@ -64,15 +62,6 @@ PLG_SYSTEM_BFSTOP_INFO="Информационное сообщение" PLG_SYSTEM_BFSTOP_DEBUG="Детальная информация" PLG_SYSTEM_BFSTOP_DELETE_OLD_ENTRIES_LABEL="Сокращение числа старых попыток" PLG_SYSTEM_BFSTOP_DELETE_OLD_ENTRIES_DESC="Удаление неудачных попыток входа старше, чем количество недель, установленное в этом поле (установите 0, чтобы отключить удаление старых записей)." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_LABEL="Адаптивная задержка" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_DESC="Активация адаптивной задержки текущему темпу неудачных попыток входа в систему. Задержка увеличится, когда будет наблюдаться повышенное количество попыток входа, в качестве контрмеры для распределенных атак." -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_MAX_LABEL="Максимальная задержка" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_MAX_DESC="Максимальная задержка ответа на неудачные попытки входа в систему, когда адаптивная задержка включена" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MIN_LABEL="Минимальный предел" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MIN_DESC="Порог, при котором адаптивная задержка начинает увеличиваться (измеряется в количестве неудачных попыток входа за последний час)" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MAX_LABEL="Максимальный предел" -PLG_SYSTEM_BFSTOP_ADAPTIVE_DELAY_THRSH_MAX_DESC="Порог, при котором адаптивная задержка достигает максимальную задержку (измеряется в количестве неудачных попыток входа за последний час)" -PLG_SYSTEM_BFSTOP_DELAY_FIELDSET_LABEL="Задержка" PLG_SYSTEM_BFSTOP_NOTIFICATION_FIELDSET_LABEL="Уведомления" PLG_SYSTEM_BFSTOP_PROXY_FIELDSET_LABEL="Прокси / Балансировщик нагрузки" PLG_SYSTEM_BFSTOP_USE_PROXY_LABEL="За прокси / балансировщиком нагрузки" diff --git a/plugin/sql/install.mysql.utf8.sql b/plugin/sql/install.mysql.utf8.sql index 066ba93..ebb93a5 100644 --- a/plugin/sql/install.mysql.utf8.sql +++ b/plugin/sql/install.mysql.utf8.sql @@ -12,7 +12,7 @@ CREATE TABLE IF NOT EXISTS #__bfstop_failedlogin ( -- the failed logins of an address within a time span: counted for every -- failed login, listed when it gets blocked KEY ipaddress_logtime (ipaddress, logtime), --- those of the last hour (adaptive delay), the purge of old ones +-- all of them within a time span (the limit of notifications), the purge of old ones KEY logtime (logtime) ) DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; diff --git a/plugin/sql/updates/2.0.0.sql b/plugin/sql/updates/2.0.0.sql index c3614f1..98f3e28 100755 --- a/plugin/sql/updates/2.0.0.sql +++ b/plugin/sql/updates/2.0.0.sql @@ -81,7 +81,7 @@ INSERT INTO `#__bfstop_username_stats` (username, attempts, first_attempt, last_ FROM `#__bfstop_failedlogin` GROUP BY username ON DUPLICATE KEY UPDATE attempts=attempts; --- speeds up the per-username (account-level) throttle query +-- speeds up the per-username count (attacks on one account) ALTER TABLE `#__bfstop_failedlogin` ADD INDEX username_logtime (username, logtime) /** CAN FAIL **/; -- the failed logins of an address within a time span (counted for every -- failed login), and those of the last hour / older than the purge age diff --git a/plugin/src/Extension/Bfstop.php b/plugin/src/Extension/Bfstop.php index 8448b6f..2444c67 100644 --- a/plugin/src/Extension/Bfstop.php +++ b/plugin/src/Extension/Bfstop.php @@ -212,19 +212,17 @@ public function onUserLoginFailure(LoginFailureEvent $event) $this->logger->log('Failed login attempt from IP address '. $logEntry->ipaddress, Log::DEBUG); - // Everything is recorded and evaluated *before* the delay below. The - // password has been checked by now, so the delay only holds back the - // response; if the attempt was only counted after the sleep, a burst - // of parallel requests would all run before the first of them - // reached the block threshold, and each of them would tie up a - // worker for the whole delay. + // Recorded first, then evaluated: a burst of parallel requests has to + // be counted as it comes in, so that the one which reaches the block + // threshold blocks the address (see LoginTurn). $this->logins->recordFailedLogin($logEntry); // after recording it: a signal of the score may take time (the // reverse DNS lookup), and parallel requests waiting for it must - // already count + // already count; the count of the account's failed logins includes + // this one $riskScore = RiskHelper::computeScore($this->repositories, $this->logger, $this->params, $ipAddress, $username, - $logEntry->ipaddress); + $logEntry->ipaddress, $logEntry); // counted once (a query) for the message of the remaining attempts and // the decision to block; neither is made without blocking @@ -241,8 +239,8 @@ public function onUserLoginFailure(LoginFailureEvent $event) } } // counted, and blocked if that was one too many: the next login of - // this address may be handled (see LoginTurn). The mail below and the - // delay take time it needn't wait for + // this address may be handled (see LoginTurn). The mail below takes + // time it needn't wait for $this->loginTurn->end(); // $username is what was typed; the entry only holds a hash of it if @@ -256,23 +254,6 @@ public function onUserLoginFailure(LoginFailureEvent $event) { $this->notifier()->failedLogin($logEntry, $this->intParam('notifyFailedNumber')); } - - $delay = $this->policy->delaySeconds($logEntry, $riskScore); - if ($delay > 0) - { - // a blocked address gets nothing more out of a slow response; - // don't let it hold on to a worker (attackers could otherwise use - // the delay to exhaust the server's workers) - if ($this->repositories->blocks()->isBlocked($ipAddress)) - { - $this->logger->log('Not delaying the response, IP address '. - $ipAddress.' is blocked', Log::DEBUG); - } - else - { - $this->responder->delay($delay); - } - } } /** diff --git a/plugin/src/Service/Responder.php b/plugin/src/Service/Responder.php index 5d47d9f..ee38476 100644 --- a/plugin/src/Service/Responder.php +++ b/plugin/src/Service/Responder.php @@ -10,7 +10,6 @@ defined('_JEXEC') or die; -use Codeling\Library\Bfstop\Helper\LockHelper; use Codeling\Library\Bfstop\Helper\LoggerHelper; use Codeling\Library\Bfstop\Settings; use Joomla\CMS\Application\CMSApplicationInterface; @@ -20,19 +19,14 @@ use Joomla\Registry\Registry; /** - * What the client is told, and when: the page which refuses a blocked - * client, the messages about the attempts left, and the delay of the - * response to a failed login. + * What the client is told: the page which refuses a blocked client, and the + * messages about the attempts left. A failed login is answered at once: a + * response held back on purpose would hold a PHP worker for as long, which + * an attacker with many addresses could use to run the server out of them + * (see the README, "Rate limiting"). */ class Responder { - /** - * Every second of delay occupies a PHP worker, which is what an attacker - * with many addresses would like to run out of - so however the delays of - * the settings add up, one response is never held back longer than this. - */ - public const MaxDelaySeconds = 60; - private CMSApplicationInterface $app; private Registry $params; private LoggerHelper $logger; @@ -186,94 +180,4 @@ public static function blockedApiResponse($message, $status) } return json_encode(array('errors' => array($error)), JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); } - - public static function cappedDelay($seconds) - { - return max(0, min((int) round($seconds), self::MaxDelaySeconds)); - } - - /** - * The files of the slots for delayed responses (see delay()), one set per - * site (database), as the temporary directory may be shared. - * - * @return string[] - */ - public static function delaySlotFiles($count) - { - $files = array(); - for ($i = 0; $i < max(1, (int) $count); ++$i) - { - $files[] = LockHelper::file('delay', $i); - } - return $files; - } - - /** - * Holds back the response by $seconds (at most MaxDelaySeconds) - if fewer - * than "delayMaxConcurrent" responses are being held back right now. - * - * A delay only slows down whoever waits for one answer before sending the - * next request; for the whole time, it occupies a PHP worker, of which a - * server has only so many. An attacker with many addresses (an IPv6 - * network gives plenty) sends failed logins in parallel instead, each of - * them sleeping in a worker of its own, until there are none left for - * anybody else. So a delayed response takes one of a fixed number of - * slots - an exclusive lock on one of delaySlotFiles(), which the - * operating system releases however the request ends - and if none is - * free, the response goes out at once. The failed login has been counted - * by then (see Bfstop::onUserLoginFailure()), so blocking is not affected. - * - * Not answering at all wouldn't help: PHP can't keep a connection open - * without a worker, and a connection which is closed at once tells the - * client just as quickly that the login failed. Holding connections open - * cheaply is something only the web server or a proxy in front of it can - * do (e.g. nginx's limit_req). - * - * @return bool whether the response was delayed - */ - public function delay($seconds) - { - $capped = self::cappedDelay($seconds); - if ($capped < (int) round($seconds)) - { - $this->logger->log('Delay of '.round($seconds).'s cut to '.$capped.'s', Log::WARNING); - } - if ($capped <= 0) - { - return false; - } - $maxConcurrent = max(1, Settings::int($this->params, 'delayMaxConcurrent')); - $opened = false; - foreach (self::delaySlotFiles($maxConcurrent) as $file) - { - $handle = @fopen($file, 'c'); - if ($handle === false) - { - continue; - } - $opened = true; - if (!flock($handle, LOCK_EX | LOCK_NB)) - { - fclose($handle); - continue; - } - try - { - sleep($capped); - } - finally - { - flock($handle, LOCK_UN); - fclose($handle); - } - return true; - } - // without a way to count the delayed responses, there is no limit: - // not delaying is what keeps the server available - $this->logger->log($opened - ? 'Not delaying the response: '.$maxConcurrent.' response(s) are being delayed already' - : 'Not delaying the response: could not create the lock files in '.LockHelper::directory(), - $opened ? Log::INFO : Log::WARNING); - return false; - } } diff --git a/plugin/updatescript.php b/plugin/updatescript.php index 1c22868..5e1cd0d 100644 --- a/plugin/updatescript.php +++ b/plugin/updatescript.php @@ -39,6 +39,20 @@ class PlgsystembfstopInstallerScript extends InstallerScript implements Installe // why update() could not migrate the settings and data, if it couldn't private $updateFailure = null; + // whether the settings of the version this update replaces delayed the + // response to failed logins, see removeDelaySettings() + private $delaysRemoved = false; + + /** + * The settings of 1.x which delayed the response to a failed login. 2.0.0 + * delays no response any more: a response held back holds a PHP worker, + * which an attacker with many addresses could use to run the server out + * of them, and it slows down nobody who doesn't wait for the answers + * (see the README, "Rate limiting"). + */ + public const RemovedDelaySettings = array('delayDuration', 'adaptiveDelay', 'adaptiveDelayMax', + 'adaptiveDelayThresholdMin', 'adaptiveDelayThresholdMax'); + // the bit of the "enabledForOrigin" setting for the Web Services API // (Origin::Api - the class of the version being replaced may be the // one loaded while this runs) @@ -301,6 +315,12 @@ public function postflight(string $type, InstallerAdapter $adapter): bool 'warning' ); } + // the settings of the version replaced delayed responses, see update() + if ($this->delaysRemoved) + { + Factory::getApplication()->getLanguage()->load('plg_system_bfstop', JPATH_ADMINISTRATOR); + Factory::getApplication()->enqueueMessage(Text::_('PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_DELAYS_REMOVED'), 'warning'); + } return true; } @@ -414,6 +434,17 @@ public function update(InstallerAdapter $adapter): bool $params['enabledForOrigin'] = ((int) $params['enabledForOrigin']) | self::OriginApi; $changed = true; } + // the delays are gone (see RemovedDelaySettings); postflight() + // tells the administrator if they were in use + if (is_array($params)) + { + $removed = self::removeDelaySettings($params); + if ($removed !== null) + { + $this->delaysRemoved = $removed['delayed']; + $changed = true; + } + } // whatever the blocking mode is now: the file may still hold the // section of the time .htaccess blocking was used $htaccessFile = self::htaccessFile($params); @@ -439,6 +470,29 @@ public function update(InstallerAdapter $adapter): bool return true; } + /** + * Removes the settings of the delays (RemovedDelaySettings) from the + * settings $params. + * + * @return array|null null if there were none, else whether they delayed + * the response at all: ['delayed' => bool] + */ + public static function removeDelaySettings(array &$params): ?array + { + $found = false; + $delayed = (int) ($params['delayDuration'] ?? 0) > 0 || + ((int) ($params['adaptiveDelay'] ?? 0) === 1 && (int) ($params['adaptiveDelayMax'] ?? 0) > 0); + foreach (self::RemovedDelaySettings as $name) + { + if (array_key_exists($name, $params)) + { + unset($params[$name]); + $found = true; + } + } + return $found ? array('delayed' => $delayed) : null; + } + /** * Stores when the maintenance last ran in #__bfstop_state, unless it * says already. diff --git a/tests/Integration/BlockPolicyTest.php b/tests/Integration/BlockPolicyTest.php index 3f30c36..9dbf122 100644 --- a/tests/Integration/BlockPolicyTest.php +++ b/tests/Integration/BlockPolicyTest.php @@ -9,6 +9,7 @@ namespace Codeling\Bfstop\Tests\Integration; use Codeling\Library\Bfstop\Helper\NotifierHelper; +use Codeling\Library\Bfstop\Helper\RiskHelper; use Codeling\Library\Bfstop\Repository\BlockRepository; use Codeling\Library\Bfstop\Repository\Repositories; use Codeling\Library\Bfstop\Service\BlockPolicy; @@ -21,9 +22,9 @@ /** * What the settings make of a failed login, on its own: FailedLoginTest runs - * the whole plugin, which shows that something is blocked, delayed or mailed, + * the whole plugin, which shows that something is blocked or mailed, * but not where each of the rules has its edges (the threshold, the cap of the - * progressive durations, the thresholds of the adaptive delay, ...). + * progressive durations, the threshold of an attacked account, ...). */ class BlockPolicyTest extends IntegrationTestCase { @@ -456,69 +457,35 @@ public function testTheSettingOnlyTakesEffectWithTheAddressOfTheSite() $this->assertFalse($this->withLiveSite(' ', function () { return BlockPolicy::hasLiveSite(); })); } - public function testTheDelayIsTheBaseDelayPlusOneSecondPerPointOfPositiveRisk() + public function testAnAccountUnderAttackLowersTheThresholdOfEveryAddressTryingIt() { - $policy = $this->policy(array('delayDuration' => 3, 'riskDelaySecondsPerPoint' => 2, 'accountThrottleEnabled' => 0)); - $entry = $this->entry(); - $this->assertEquals(3, $policy->delaySeconds($entry, 0)); - $this->assertEquals(7, $policy->delaySeconds($entry, 2)); - $this->assertEquals(3, $policy->delaySeconds($entry, -5), 'trust never reduces the delay'); - $this->assertEquals(0, $this->policy(array('accountThrottleEnabled' => 0))->delaySeconds($entry, 10), 'no delay by default'); - } - - public function testTheAccountThrottleAddsDelayOnceEnoughFailedLoginsAimedAtTheUsername() - { - $params = array('accountThrottleEnabled' => 1, 'accountCheckInterval' => 60, - 'accountBlockNumber' => 3, 'accountThrottleDelay' => 5, 'riskDelaySecondsPerPoint' => 0); - $entry = $this->entry('bob'); + // the signal of the risk score which took the place of the account + // throttle's delay (see RiskHelper::accountAttackScore()) + $params = array('accountAttackEnabled' => 1, 'accountCheckInterval' => 60, 'accountBlockNumber' => 3, + 'accountAttackPoints' => 4, 'riskKnownIpEnabled' => 0, 'riskCommonUsernameEnabled' => 0, + 'riskUserAgentEnabled' => 0, 'riskGeoEnabled' => 0, 'riskReverseDnsEnabled' => 0, + 'blockNumber' => 10, 'riskBlockNumberReductionPerPoint' => 1, 'riskMinBlockNumber' => 2); + $score = function (array $overrides = array(), $username = 'bob') use ($params) + { + return RiskHelper::computeScore($this->repos, $this->logger, new Registry($overrides + $params), self::Ip, + $username, null, $this->entry($username)); + }; // from any address; not the ones of another account, nor too old, nor handled already $this->failedLogins(1, 5, 'bob', '203.0.113.1'); $this->failedLogins(1, 5, 'bob', '203.0.113.2'); $this->failedLogins(5, 5, 'carol', '203.0.113.3'); $this->failedLogins(5, 120, 'bob', '203.0.113.4'); $this->failedLogins(5, 5, 'bob', '203.0.113.5', 1); - $this->assertEquals(0, $this->policy($params)->delaySeconds($entry, 0), '2 of 3'); + $this->assertSame(0, $score(), '2 of 3'); $this->failedLogins(1, 5, 'bob', '203.0.113.6'); - $this->assertEquals(5, $this->policy($params)->delaySeconds($entry, 0), '3 of 3'); - $this->assertEquals(0, $this->policy($params)->delaySeconds($this->entry('dave'), 0), 'another account'); - $this->assertEquals(0, $this->policy(array('accountThrottleEnabled' => 0) + $params)->delaySeconds($entry, 0), 'switched off'); - $this->assertEquals(0, $this->policy(array('accountThrottleDelay' => 0) + $params)->delaySeconds($entry, 0)); - $this->assertEquals(0, $this->policy(array('accountThrottleDelay' => -3) + $params)->delaySeconds($entry, 0), 'never negative'); - $this->assertEquals(5 + 4, $this->policy(array('delayDuration' => 4) + $params)->delaySeconds($entry, 0), 'adds to the base delay'); - } - - public function testTheAdaptiveDelayGrowsWithTheFailedLoginsOfTheLastHour() - { - $params = array('accountThrottleEnabled' => 0, 'adaptiveDelay' => 1, 'delayDuration' => 1, - 'adaptiveDelayMax' => 11, 'adaptiveDelayThresholdMin' => 10, 'adaptiveDelayThresholdMax' => 20); - $entry = $this->entry(); - $this->failedLogins(5, 10, 'x'); - $this->assertEquals(1, $this->policy($params)->delaySeconds($entry, 0), 'below the lower threshold'); - $this->failedLogins(10, 10, 'x'); // 15 - $this->assertEquals(6, $this->policy($params)->delaySeconds($entry, 0), 'halfway between the thresholds'); - $this->failedLogins(15, 10, 'x'); // 30 - $this->assertEquals(11, $this->policy($params)->delaySeconds($entry, 0), 'capped at the maximum'); - $this->assertEquals(1, $this->policy(array('adaptiveDelay' => 0) + $params)->delaySeconds($entry, 0), 'switched off'); - $this->assertEquals(11 + 6, $this->policy(array('riskDelaySecondsPerPoint' => 2) + $params)->delaySeconds($entry, 3), - 'plus the delay for the risk'); - } - - public function testThresholdsOfTheAdaptiveDelayInTheWrongOrderAreSwapped() - { - $params = array('accountThrottleEnabled' => 0, 'adaptiveDelay' => 1, 'delayDuration' => 1, - 'adaptiveDelayMax' => 11, 'adaptiveDelayThresholdMin' => 20, 'adaptiveDelayThresholdMax' => 10); - $this->failedLogins(15, 10, 'x'); - $this->assertEquals(6, $this->policy($params)->delaySeconds($this->entry(), 0)); - $this->assertTrue($this->logger->hasMessage(Log::WARNING, 'Swapping')); - } - - public function testEqualThresholdsOfTheAdaptiveDelayFallBackToTheBaseDelay() - { - $params = array('accountThrottleEnabled' => 0, 'adaptiveDelay' => 1, 'delayDuration' => 2, - 'adaptiveDelayMax' => 11, 'adaptiveDelayThresholdMin' => 10, 'adaptiveDelayThresholdMax' => 10); - $this->failedLogins(30, 10, 'x'); - $this->assertEquals(2, $this->policy($params)->delaySeconds($this->entry(), 0)); - $this->assertTrue($this->logger->hasMessage(Log::WARNING, 'cannot be configured to the same value')); + $this->assertSame(4, $score(), '3 of 3'); + $this->assertTrue($this->logger->hasMessage(Log::INFO, 'Account under attack')); + $this->assertSame(10 - 4, $this->policy($params)->effectiveBlockNumber($score())); + $this->assertSame(0, $score(array(), 'dave'), 'another account'); + $this->assertSame(0, $score(array('accountAttackEnabled' => 0)), 'switched off'); + $this->assertSame(0, $score(array('accountAttackPoints' => 0)), 'no points: only logged'); + $this->assertSame(0, RiskHelper::computeScore($this->repos, $this->logger, new Registry($params), self::Ip, 'bob'), + 'without the failed login as recorded'); } } diff --git a/tests/Integration/ComponentTest.php b/tests/Integration/ComponentTest.php index 0d6964f..fe76940 100644 --- a/tests/Integration/ComponentTest.php +++ b/tests/Integration/ComponentTest.php @@ -301,8 +301,8 @@ public function testSettingsOnlyTakeTheValuesTheyOffer() $valid = array('enabledForOrigin' => array('1', '4')); $form = $this->settingsForm(); $this->assertTrue($form->validate(array('params' => $valid + array('blockMode' => 'htaccess', 'blockNumber' => '10', - 'delayDuration' => '20', 'emailaddress' => 'a@example.org; b@example.org')))); - foreach (array(array('blockMode', 'everything'), array('delayDuration', '100000'), array('blockNumber', '-3'), + 'accountAttackPoints' => '3', 'emailaddress' => 'a@example.org; b@example.org')))); + foreach (array(array('blockMode', 'everything'), array('accountAttackPoints', '100000'), array('blockNumber', '-3'), array('ipv6PrefixLength', '0'), array('unknownUsernameMode', 'x'), array('maxBlocksBefore', '7'), array('enabledForOrigin', array('3')), array('enabledForOrigin', '')) as list($name, $value)) { diff --git a/tests/Integration/FailedLoginTest.php b/tests/Integration/FailedLoginTest.php index f09514e..4c11ac4 100644 --- a/tests/Integration/FailedLoginTest.php +++ b/tests/Integration/FailedLoginTest.php @@ -10,8 +10,6 @@ use Codeling\Library\Bfstop\Origin; use Codeling\Library\Bfstop\Repository\Repositories; use Codeling\Library\Bfstop\Service\BlockPolicy; -use Codeling\Library\Bfstop\Settings; -use Codeling\Plugin\System\Bfstop\Service\Responder; use Joomla\CMS\Factory; /** @@ -70,11 +68,9 @@ private function configure(array $params = array()) 'blockNumber' => 15, 'riskMinBlockNumber' => 1, 'riskBlockNumberReductionPerPoint' => 0, - 'riskDelaySecondsPerPoint' => 0, 'checkInterval' => 60, 'blockDuration' => 60, - 'delayDuration' => 0, - 'accountThrottleEnabled' => 0, + 'accountAttackEnabled' => 0, 'notifyBlockedNumber' => 0, 'riskCommonUsernames' => "root\nadministrator", 'logLevel' => 8, // errors only @@ -110,263 +106,39 @@ private function storedUsernames() return $this->db->loadColumn(); } - public function testFailedLoginIsRecordedBeforeTheDelay() + public function testAnAccountUnderAttackGetsItsAttackersBlockedSooner() { - // the delay only holds back the response; the attempt has to count - // right away, or a burst of parallel requests all start before the - // first one reaches the block threshold - $this->configure(array('delayDuration' => 5)); - $process = proc_open($this->command('Admin'), - array(1 => array('pipe', 'w'), 2 => array('pipe', 'w')), $pipes); - $this->assertIsResource($process); - try - { - $recorded = false; - for ($i = 0; $i < 40 && !$recorded; ++$i) - { - usleep(100000); - $recorded = ((int) $this->queryValue('SELECT COUNT(*) FROM #__bfstop_failedlogin')) === 1; - } - $this->assertTrue($recorded, 'failed login was not recorded within 4s (the delay is 5s)'); - $this->assertTrue(proc_get_status($process)['running'], - 'the request should still be delayed at this point'); - } - finally - { - proc_terminate($process); - proc_close($process); - } - } - - /** - * A failed login to the Web Services API: Joomla reports it with an empty - * username whatever the request carried. $headers as in $_SERVER - */ - private function failedApiLogin(array $headers = array(), $ip = self::Ip) - { - $options = array('--api'); - foreach ($headers as $name => $value) - { - $options[] = '--server='.$name.'='.$value; - } - $this->failedLogin('', $ip, $options); - } - - public function testApiLoginsWithoutCredentialsAreNotCounted() - { - // Joomla tries to log in every request to an endpoint which isn't - // public, also those which carry no credentials at all - $this->configure(array('blockNumber' => 2)); - $this->failedApiLogin(); - $this->failedApiLogin(); - $this->assertSame(0, (int) $this->queryValue('SELECT COUNT(*) FROM #__bfstop_failedlogin')); - $this->assertFalse((new Repositories($this->logger))->blocks()->isBlocked(self::Ip)); - } - - public function testApiLoginsWithCredentialsAreCountedAndBlocked() - { - $this->configure(array('blockNumber' => 3, 'unknownUsernameMode' => 'plain')); - $this->failedApiLogin(array('PHP_AUTH_USER' => 'bob', 'PHP_AUTH_PW' => 'guess')); - $this->failedApiLogin(array('HTTP_AUTHORIZATION' => 'Basic '.base64_encode('carol:guess'))); - $this->failedApiLogin(array('HTTP_AUTHORIZATION' => 'Bearer c2hhMjU2OjQyOmFiYw==')); - // HTTP Basic gives the username; a token names its user by id only - $this->assertSame(array('bob', 'carol', ''), $this->storedUsernames()); - $this->assertSame(array('3', '3', '3'), array_map('strval', - $this->db->setQuery('SELECT origin FROM #__bfstop_failedlogin ORDER BY id')->loadColumn())); - $this->assertTrue((new Repositories($this->logger))->blocks()->isBlocked(self::Ip)); - } - - public function testApiLoginsAreOnlyCountedIfSwitchedOn() - { - $this->configure(array('enabledForOrigin' => Origin::Frontend | Origin::Backend)); - $this->failedApiLogin(array('HTTP_X_JOOMLA_TOKEN' => 'c2hhMjU2OjQyOmFiYw==')); - $this->assertSame(0, (int) $this->queryValue('SELECT COUNT(*) FROM #__bfstop_failedlogin')); - $this->failedLogin('bob'); - $this->assertSame(1, (int) $this->queryValue('SELECT COUNT(*) FROM #__bfstop_failedlogin')); - } - - public function testTrustedProxyIsNotBlockedThroughHtaccess() - { - // a failed login through a trusted proxy without the header naming - // the client is counted against the proxy (not counting it would let - // such requests fail logins without limit) - but in .htaccess, the - // proxy's address would turn away every visitor coming through it - $dir = sys_get_temp_dir().'/bfstop-proxy-htaccess-'.getmypid(); - mkdir($dir); - try - { - $this->configure(array('blockNumber' => 2, 'blockMode' => 'htaccess', 'htaccessPath' => $dir, - 'useProxy' => 1, 'proxyIpAddress' => self::Ip)); - $this->failedLogin('Admin'); - $this->failedLogin('Admin'); - $this->assertSame(self::Ip, $this->queryValue('SELECT ipaddress FROM #__bfstop_bannedip'), 'blocked in the database'); - $this->assertStringNotContainsString(self::Ip, (string) @file_get_contents($dir.'/.htaccess')); - - // a client the proxy names in the header is blocked through .htaccess - $header = array('--server=HTTP_X_FORWARDED_FOR=203.0.113.99'); - $this->failedLogin('Admin', self::Ip, $header); - $this->failedLogin('Admin', self::Ip, $header); - $this->assertStringContainsString("-R '203.0.113.99'", (string) file_get_contents($dir.'/.htaccess')); - } - finally - { - @unlink($dir.'/.htaccess'); - @rmdir($dir); - } - } - - /** - * An IPv6 client is counted and blocked by its /56 (a client controls - * all of it), but the web server only turns away its /64: other - * customers of a provider may have the other /64s of the /56, and the - * web server knows nothing of the allow list. Within the /64, an - * allowed address keeps it out of the file. - */ - public function testIpv6ClientIsBlockedThroughHtaccessByItsOwnNetwork() - { - $dir = sys_get_temp_dir().'/bfstop-allow-htaccess-'.getmypid(); - mkdir($dir); - try - { - // an allowed host in another /64 of the same /56 - $this->insert('#__bfstop_allowlist', array('ipaddress' => '2001:db8:1:7f::9', 'notes' => '')); - $this->configure(array('blockNumber' => 2, 'blockMode' => 'htaccess', 'htaccessPath' => $dir)); - $this->failedLogin('Admin', '2001:db8:1:2a::5'); - $this->failedLogin('Admin', '2001:db8:1:2a::5'); - $this->assertSame('2001:db8:1::/56', $this->queryValue('SELECT ipaddress FROM #__bfstop_bannedip'), - 'blocked in the database by the /56'); - $file = (string) file_get_contents($dir.'/.htaccess'); - $this->assertStringContainsString("-R '2001:db8:1:2a::/64'", $file, 'the web server turns away the /64'); - $this->assertStringNotContainsString('/56', $file); - - // an allowed address within the client's /64: only the database blocks - $this->insert('#__bfstop_allowlist', array('ipaddress' => '2001:db8:2:2a::9', 'notes' => '')); - $this->failedLogin('Admin', '2001:db8:2:2a::5'); - $this->failedLogin('Admin', '2001:db8:2:2a::5'); - $this->assertSame(1, (int) $this->queryValue("SELECT COUNT(*) FROM #__bfstop_bannedip WHERE ipaddress='2001:db8:2::/56'")); - $this->assertStringNotContainsString('2001:db8:2:', (string) file_get_contents($dir.'/.htaccess')); - - // IPv4 addresses are what they are tracked as - $this->failedLogin('Admin', '203.0.113.88'); - $this->failedLogin('Admin', '203.0.113.88'); - $this->assertStringContainsString("-R '203.0.113.88'", (string) file_get_contents($dir.'/.htaccess')); - } - finally - { - @unlink($dir.'/.htaccess'); - @rmdir($dir); - } - } - - /** - * Parallel failed logins of one client which all reach the threshold - * must block it once: each extra block would count as an earlier offence - * (a single burst making the block permanent with maxBlocksBefore) and - * send mails of its own. - */ - public function testParallelFailedLoginsBlockOnce() - { - $this->configure(array('blockNumber' => 1, 'maxBlocksBefore' => 2)); - $count = 8; - $processes = array(); - $pipes = array(); - for ($i = 0; $i < $count; ++$i) - { - $processes[$i] = proc_open($this->command('Admin', self::Ip, array('--live-site='.$this->liveSite)), - array(1 => array('pipe', 'w'), 2 => array('pipe', 'w')), $pipes[$i]); - } - foreach ($processes as $i => $process) - { - $output = stream_get_contents($pipes[$i][1]).stream_get_contents($pipes[$i][2]); - $this->assertSame(0, proc_close($process), $output); - $this->assertStringContainsString('DONE', $output); - } - $this->assertSame(1, (int) $this->queryValue('SELECT COUNT(*) FROM #__bfstop_bannedip')); - $this->assertNotSame(0, (int) $this->queryValue('SELECT duration FROM #__bfstop_bannedip'), 'not permanent'); - } - - public function testBlockedAddressIsNotDelayed() - { - $this->configure(array('delayDuration' => 5, 'blockNumber' => 1)); - $start = microtime(true); + // the failed logins of other addresses on the account count for every + // address which tries it: blocked after 5 - 3 points = 2 attempts + $this->configure(array('blockNumber' => 5, 'riskBlockNumberReductionPerPoint' => 1, + 'riskUserAgentEnabled' => 0, 'riskCommonUsernameEnabled' => 0, 'riskKnownIpEnabled' => 0, + 'accountAttackEnabled' => 1, 'accountBlockNumber' => 3, 'accountAttackPoints' => 3)); + $this->failedLogin('Admin', '203.0.113.60'); + // as stored: readable, or the hash of a username which is no account + $stored = $this->storedUsernames()[0]; + $this->insert('#__bfstop_failedlogin', array('username' => $stored, 'ipaddress' => '203.0.113.61', + 'logtime' => self::minutesAgo(1), 'origin' => 0, 'handled' => 0)); $this->failedLogin('Admin'); - $this->assertLessThan(4.0, microtime(true) - $start, 'a request that got its address blocked must not wait for the delay'); - $this->assertSame(self::Ip, $this->queryValue('SELECT ipaddress FROM #__bfstop_bannedip')); - } - - public function testAccountThrottleDoesNotDelayABlockedAddress() - { - // the account has been attacked from elsewhere: every further failed - // login for it would be delayed, but this one got its address blocked - $this->configure(array('blockNumber' => 1, 'accountThrottleEnabled' => 1, 'accountBlockNumber' => 2, - 'accountThrottleDelay' => 5)); - foreach (array('203.0.113.60', '203.0.113.61', '203.0.113.62') as $ip) - { - $this->insert('#__bfstop_failedlogin', array('username' => 'Admin', 'ipaddress' => $ip, - 'logtime' => self::minutesAgo(1), 'origin' => 0, 'handled' => 0)); - } - $start = microtime(true); + $this->assertSame(0, (int) $this->queryValue('SELECT COUNT(*) FROM #__bfstop_bannedip'), '3 of 3, 2 allowed'); $this->failedLogin('Admin'); - $this->assertLessThan(4.0, microtime(true) - $start); $this->assertSame(self::Ip, $this->queryValue('SELECT ipaddress FROM #__bfstop_bannedip')); - } - public function testOnlySoManyResponsesAreDelayedAtTheSameTime() - { - // every delayed response holds a PHP worker: with all slots taken - // (here by this test), the response goes out at once - and the - // failed login counts all the same - $this->configure(array('blockNumber' => 2, 'delayDuration' => 5, 'delayMaxConcurrent' => 2)); - $handles = array(); - try - { - foreach (Responder::delaySlotFiles(2) as $file) - { - $handle = fopen($file, 'c'); - // waits for a delayed response of an earlier test which still - // runs (proc_terminate() only ends the shell around it) - $this->assertTrue(flock($handle, LOCK_EX), $file); - $handles[] = $handle; - } - $start = microtime(true); - $this->failedLogin('Admin'); - $this->assertLessThan(3.0, microtime(true) - $start, 'not delayed'); - $this->assertSame(1, (int) $this->queryValue('SELECT COUNT(*) FROM #__bfstop_failedlogin')); - $this->failedLogin('Admin'); - $this->assertSame(self::Ip, $this->queryValue('SELECT ipaddress FROM #__bfstop_bannedip'), 'blocked as usual'); - - // one slot free again: delayed - flock(array_pop($handles), LOCK_UN); - $start = microtime(true); - $this->failedLogin('Admin', '203.0.113.52'); - $this->assertGreaterThanOrEqual(4.5, microtime(true) - $start, 'delayed'); - } - finally - { - foreach ($handles as $handle) - { - flock($handle, LOCK_UN); - fclose($handle); - } - } + // another account, not attacked: the usual 5 attempts + $this->failedLogin('Bob', '203.0.113.70'); + $this->failedLogin('Bob', '203.0.113.70'); + $this->assertSame(1, (int) $this->queryValue('SELECT COUNT(*) FROM #__bfstop_bannedip')); } - public function testRiskScoreAddsNoDelayByDefault() + public function testAFailedLoginIsAnsweredAtOnce() { - $this->assertSame(0, Settings::Defaults['riskDelaySecondsPerPoint']); - // "admin" is a common username, and there is no User-Agent: 4 points - $this->setSettings(json_encode(array('blockMode' => 'full', 'accountThrottleEnabled' => 0))); + // nothing holds the response back (and a PHP worker with it), not + // even with the account under attack and a risky request + $this->configure(array('blockNumber' => 100, 'riskBlockNumberReductionPerPoint' => 1, + 'accountAttackEnabled' => 1, 'accountBlockNumber' => 1)); $start = microtime(true); $this->failedLogin('admin', self::Ip, array('--server=HTTP_USER_AGENT=')); $this->assertLessThan(3.0, microtime(true) - $start); - } - - public function testDelaysAreCapped() - { - $this->assertSame(0, Responder::cappedDelay(0)); - $this->assertSame(0, Responder::cappedDelay(-5)); - $this->assertSame(7, Responder::cappedDelay(6.6)); - $this->assertSame(Responder::MaxDelaySeconds, Responder::cappedDelay(100000)); + $this->assertSame(1, (int) $this->queryValue('SELECT COUNT(*) FROM #__bfstop_failedlogin')); } public function testExistingAndCommonUsernamesAreStoredReadably() diff --git a/tests/Integration/InstallTest.php b/tests/Integration/InstallTest.php index 85d412b..8de424e 100644 --- a/tests/Integration/InstallTest.php +++ b/tests/Integration/InstallTest.php @@ -55,8 +55,8 @@ public static function indexedColumns($db, $table) public function testLookupsOfFailedLoginsAreIndexed() { - // per address (every failed login), per username (account throttle), - // by time (adaptive delay, purge): with up to 200000 rows, a scan + // per address (every failed login), per username (attacks on one account), + // by time (notifications, purge): with up to 200000 rows, a scan // takes 10-200 ms $indexes = self::indexedColumns($this->db, 'bfstop_failedlogin'); foreach (array('ipaddress,logtime', 'username,logtime', 'logtime') as $columns) diff --git a/tests/Integration/InstallerScriptTest.php b/tests/Integration/InstallerScriptTest.php index 6727bf9..db69600 100644 --- a/tests/Integration/InstallerScriptTest.php +++ b/tests/Integration/InstallerScriptTest.php @@ -223,6 +223,57 @@ public function testUpdateFromBefore200ProtectsTheApi() } } + public function testTheUpdateRemovesTheDelaysAndTellsWhoUsedThem() + { + // 2.0.0 delays no response (a held response holds a PHP worker) + Factory::getApplication()->getLanguage()->load('plg_system_bfstop', JPATH_ADMINISTRATOR); + $notice = strip_tags(\Joomla\CMS\Language\Text::_('PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_DELAYS_REMOVED')); + $noticeShown = function () use ($notice) + { + return in_array($notice, array_map('strip_tags', $this->messages()), true); + }; + $original = $this->getSettings(); + try + { + $params = $this->update('1.5.2', array('blockEnabled' => '1', 'blockNumber' => '7', 'delayDuration' => '20', + 'adaptiveDelay' => '0', 'adaptiveDelayMax' => '60', 'adaptiveDelayThresholdMin' => '50', + 'adaptiveDelayThresholdMax' => '200')); + foreach (\PlgsystembfstopInstallerScript::RemovedDelaySettings as $name) + { + $this->assertArrayNotHasKey($name, $params, $name); + } + $this->assertSame('7', $params['blockNumber'], 'the other settings stay'); + $this->assertTrue($noticeShown(), 'responses were delayed'); + + // the adaptive delay alone delayed them as well + $this->update('1.5.2', array('blockEnabled' => '1', 'delayDuration' => '0', 'adaptiveDelay' => '1', + 'adaptiveDelayMax' => '30')); + $this->assertTrue($noticeShown()); + + // saved, but delaying nothing: removed without a notice + $params = $this->update('1.5.2', array('blockEnabled' => '1', 'delayDuration' => '0', 'adaptiveDelay' => '0')); + $this->assertArrayNotHasKey('delayDuration', $params); + $this->assertFalse($noticeShown()); + $this->update('2.0.0', array('blockMode' => 'full')); + $this->assertFalse($noticeShown()); + } + finally + { + $this->setSettings($original); + } + } + + public function testRemovingTheDelaySettings() + { + $params = array('delayDuration' => '5', 'blockNumber' => '3'); + $this->assertSame(array('delayed' => true), \PlgsystembfstopInstallerScript::removeDelaySettings($params)); + $this->assertSame(array('blockNumber' => '3'), $params); + $this->assertNull(\PlgsystembfstopInstallerScript::removeDelaySettings($params), 'none left'); + $params = array('adaptiveDelay' => '1', 'adaptiveDelayMax' => '0'); + $this->assertSame(array('delayed' => false), \PlgsystembfstopInstallerScript::removeDelaySettings($params), + 'adaptive, but up to 0 seconds'); + } + public function testStoredAddressesAreConvertedByTheUpdateFromBefore200() { // entries of earlier versions, or typed by hand, are not in the canonical form diff --git a/tests/Integration/LoginTurnTest.php b/tests/Integration/LoginTurnTest.php index ec957f5..5e95158 100644 --- a/tests/Integration/LoginTurnTest.php +++ b/tests/Integration/LoginTurnTest.php @@ -63,8 +63,7 @@ private function configure(array $params = array()) 'blockMode' => 'full', 'blockNumber' => 3, 'blockedMessage' => self::BlockedMessage, - 'delayDuration' => 0, - 'accountThrottleEnabled' => 0, + 'accountAttackEnabled' => 0, 'riskBlockNumberReductionPerPoint' => 0, 'notifyBlockedNumber' => 0, 'logLevel' => 8, // errors only @@ -248,7 +247,7 @@ public function testLockFilesOfOneSiteAreNamedInOnePlace() $tmp = rtrim(Factory::getApplication()->get('tmp_path'), '/'); $this->assertSame($tmp.'/bfstop-maintenance-'.$site.'.lock', LockHelper::file('maintenance')); $this->assertSame($tmp.'/bfstop-maintenance-'.$site.'.stamp', LockHelper::file('maintenance', null, 'stamp')); - $this->assertSame($tmp.'/bfstop-delay-'.$site.'-3.lock', LockHelper::file('delay', 3)); + $this->assertSame($tmp.'/bfstop-block-'.$site.'-3.lock', LockHelper::file('block', 3)); $this->assertSame(LockHelper::file('login', LockHelper::slot(self::Ip, LoginTurn::Slots)), LoginTurn::file(self::Ip)); $slot = LockHelper::slot('2001:db8::/56', 64); $this->assertSame($slot, LockHelper::slot('2001:db8::/56', 64), 'always the same'); diff --git a/tests/Integration/ParallelLoginHttpTest.php b/tests/Integration/ParallelLoginHttpTest.php index 6ba68e7..6fd3d90 100644 --- a/tests/Integration/ParallelLoginHttpTest.php +++ b/tests/Integration/ParallelLoginHttpTest.php @@ -58,10 +58,8 @@ protected function setUp(): void 'blockNumber' => self::Allowed, 'checkInterval' => 60, 'blockDuration' => 60, - 'delayDuration' => 0, - 'accountThrottleEnabled' => 0, + 'accountAttackEnabled' => 0, 'riskBlockNumberReductionPerPoint' => 0, - 'riskDelaySecondsPerPoint' => 0, 'notifyBlockedNumber' => 0, 'logLevel' => 8, // errors only ))); diff --git a/tests/Integration/PluginEventsTest.php b/tests/Integration/PluginEventsTest.php index b0b9327..43b9dd6 100644 --- a/tests/Integration/PluginEventsTest.php +++ b/tests/Integration/PluginEventsTest.php @@ -27,10 +27,8 @@ class PluginEventsTest extends IntegrationTestCase 'blockNumber' => 3, 'checkInterval' => 60, 'blockDuration' => 60, - 'delayDuration' => 0, - 'riskDelaySecondsPerPoint' => 0, 'riskBlockNumberReductionPerPoint' => 0, - 'accountThrottleEnabled' => 0, + 'accountAttackEnabled' => 0, 'notifyBlockedNumber' => 0, 'logLevel' => 8, // errors only ); diff --git a/tests/Integration/QueryCountTest.php b/tests/Integration/QueryCountTest.php index 1f06e28..f5190e8 100644 --- a/tests/Integration/QueryCountTest.php +++ b/tests/Integration/QueryCountTest.php @@ -78,11 +78,9 @@ private function configure(array $params = array()) 'blockNumber' => 15, 'riskMinBlockNumber' => 1, 'riskBlockNumberReductionPerPoint' => 0, - 'riskDelaySecondsPerPoint' => 0, 'checkInterval' => 60, 'blockDuration' => 60, - 'delayDuration' => 0, - 'accountThrottleEnabled' => 0, + 'accountAttackEnabled' => 0, 'notifyBlockedNumber' => 0, 'logLevel' => 8, // errors only ))); diff --git a/tests/Integration/RepositoriesTest.php b/tests/Integration/RepositoriesTest.php index 97fe069..628e95f 100644 --- a/tests/Integration/RepositoriesTest.php +++ b/tests/Integration/RepositoriesTest.php @@ -71,7 +71,6 @@ public function testFailedLoginCounting() $this->assertSame(3, $this->repos->failedLogins()->countUnhandledFromAddress(60, '203.0.113.5', $now)); $this->assertSame(4, $this->repos->failedLogins()->countUnhandledFromAddress(180, '203.0.113.5', $now)); $this->assertSame(4, $this->repos->failedLogins()->countUnhandledForUsername(60, 'bob', $now)); - $this->assertSame(4, (int) $this->repos->failedLogins()->countInLastHour()); $entries = $this->repos->failedLogins()->listUnhandledFromAddress(60, '203.0.113.5', $now); $this->assertCount(3, $entries); $this->assertSame(array('bob', 'bob', 'bob'), array_column($entries, 'username')); diff --git a/tests/Integration/RiskHelperTest.php b/tests/Integration/RiskHelperTest.php index 90403a4..c7ff9bf 100644 --- a/tests/Integration/RiskHelperTest.php +++ b/tests/Integration/RiskHelperTest.php @@ -9,6 +9,7 @@ namespace Codeling\Bfstop\Tests\Integration; use Codeling\Library\Bfstop\Repository\DnsCacheRepository; +use Codeling\Library\Bfstop\Repository\FailedLoginRepository; use Codeling\Library\Bfstop\Repository\KnownIpRepository; use Codeling\Library\Bfstop\Repository\Repositories; use Codeling\Library\Bfstop\Service\LoginService; @@ -44,6 +45,7 @@ private static function allOff(array $overrides = array()) 'riskUserAgentEnabled' => 0, 'riskGeoEnabled' => 0, 'riskReverseDnsEnabled' => 0, + 'accountAttackEnabled' => 0, ), $overrides)); } @@ -225,4 +227,30 @@ public function testKnownIpScoreHonoursTheConfiguredNetworkSize() $this->assertSame(-5, RiskHelper::computeScore($db, $this->logger, $params, '2001:db8:1:2::5', 'bob')); $this->assertSame(0, RiskHelper::computeScore($db, $this->logger, $params, '2001:db8:1:2::6', 'bob')); } + + public function testTheAccountAttackSignalCountsTheUsernameAsStored() + { + // the hash of a username which is no account, not what was typed + $failed = $this->createMock(FailedLoginRepository::class); + $failed->expects($this->once())->method('countUnhandledForUsername') + ->with(30, 'h:0123abcd', '2026-01-02 03:04:05')->willReturn(7); + $repos = $this->repos(); + $repos->method('failedLogins')->willReturn($failed); + $params = self::allOff(array('accountAttackEnabled' => 1, 'accountCheckInterval' => 30, + 'accountBlockNumber' => 7, 'accountAttackPoints' => 3)); + $entry = (object) array('username' => 'h:0123abcd', 'logtime' => '2026-01-02 03:04:05'); + $this->assertSame(3, RiskHelper::computeScore($repos, $this->logger, $params, '203.0.113.5', 'jdoe', null, $entry)); + } + + public function testTheAccountAttackSignalFailsSafe() + { + $failed = $this->createMock(FailedLoginRepository::class); + $failed->method('countUnhandledForUsername')->willThrowException(new \RuntimeException('table gone')); + $repos = $this->repos(); + $repos->method('failedLogins')->willReturn($failed); + $params = self::allOff(array('accountAttackEnabled' => 1, 'accountBlockNumber' => 1)); + $entry = (object) array('username' => 'jdoe', 'logtime' => '2026-01-02 03:04:05'); + $this->assertSame(0, RiskHelper::computeScore($repos, $this->logger, $params, '203.0.113.5', 'jdoe', null, $entry)); + $this->assertTrue($this->logger->hasMessage(Log::WARNING, 'table gone')); + } } diff --git a/tests/Integration/fixtures/failed_login.php b/tests/Integration/fixtures/failed_login.php index dd142a8..d6f7994 100644 --- a/tests/Integration/fixtures/failed_login.php +++ b/tests/Integration/fixtures/failed_login.php @@ -8,7 +8,7 @@ // Simulates a failed login with the username given as second argument from // the IP address given as first argument, as far as the plugin is concerned: // dispatches onUserLoginFailure to the plugin, which reads its settings from -// the database as it does in a real request (and may delay or block). With +// the database as it does in a real request (and may block). With // --api it is a failed login to the Web Services API (whose response holds // no username), --server=NAME=VALUE sets $_SERVER[NAME] (e.g. a header), // --live-site=URL the site's $live_site. --count-queries prints the queries diff --git a/tests/Unit/SettingsDefaultsTest.php b/tests/Unit/SettingsDefaultsTest.php index ebaa394..92caa93 100644 --- a/tests/Unit/SettingsDefaultsTest.php +++ b/tests/Unit/SettingsDefaultsTest.php @@ -33,7 +33,8 @@ private static function formDefaults(): array public function testEverySettingHasItsDefaultAndOnlyThose() { $form = self::formDefaults(); - $this->assertGreaterThan(50, count($form)); + // the page was found and read: it has 50 settings (2.0.0) + $this->assertGreaterThan(40, count($form)); $this->assertSame(array(), array_values(array_diff(array_keys($form), array_keys(Settings::Defaults))), 'settings without a default in Settings::Defaults'); $this->assertSame(array(), array_values(array_diff(array_keys(Settings::Defaults), array_keys($form))), diff --git a/tests/Upgrade/UpgradeTest.php b/tests/Upgrade/UpgradeTest.php index 47162f7..f91f5ae 100644 --- a/tests/Upgrade/UpgradeTest.php +++ b/tests/Upgrade/UpgradeTest.php @@ -111,6 +111,9 @@ public function testUpdateMessages() 'the hint that the API is protected now, only when updating from before 2.0.0'); $this->assertSame(0, substr_count($log, 'protects your site with its default settings'), 'the hint of a new installation'); + // the seed delays failed logins by 90 seconds, which 2.0.0 doesn't any more + $this->assertSame(1, substr_count($log, 'no longer delays the response to failed logins'), + 'the notice that the delays are gone'); } public function testSettingsAreKeptAndMigrated() @@ -124,7 +127,11 @@ public function testSettingsAreKeptAndMigrated() $params = json_decode($this->getSettings(), true); $this->assertSame('full', $params['blockMode'] ?? null, 'blockEnabled/useHtaccess became blockMode'); $this->assertSame('15', (string) $params['blockNumber']); - $this->assertSame('90', (string) $params['delayDuration']); + foreach (array('delayDuration', 'adaptiveDelay', 'adaptiveDelayMax', 'adaptiveDelayThresholdMin', + 'adaptiveDelayThresholdMax') as $removed) + { + $this->assertArrayNotHasKey($removed, $params, 'the delays are gone in 2.0.0'); + } $this->assertSame(version_compare(getenv('UPGRADE_FROM'), '2.0.0-dev', '<') ? 7 : 3, (int) $params['enabledForOrigin'], 'frontend and backend became frontend, backend and API (the seed is in 1.x form)'); } diff --git a/tests/performance/README.md b/tests/performance/README.md index e5eb1e7..33581e8 100644 --- a/tests/performance/README.md +++ b/tests/performance/README.md @@ -98,11 +98,11 @@ The report is written to `$BENCH_DIR/results/