Self-hosted OSINT exposure checker — is your email, username, phone or password leaked? Keyless sources: breaches, infostealer logs, COMB credentials, HIBP k-anonymity, 200-platform username grid. Docker one-command install, no API keys, no AI, Apache-2.0.
PHP breach-checkcredential-exposuredata-breachdigital-footprintemail-osintfree-osinthaveibeenpwnedip-reputationleaked-credentialsleaked-dataosintosint-apiosint-toolsphone-lookupprivacy-toolspublic-datapwned-passwordsself-hostedusername-checkusername-osint
fix: address review findings (cache, TLS verify, version/count drift, docs)
Rana Khan0f865ae0573d
diff --git a/.env.example b/.env.exampleindex 7490ae7..b8d600a 100644--- a/.env.example+++ b/.env.example@@ -20,7 +20,7 @@ ADMIN_PASSWORD=# Community license (free key: https://2mny.com/community-license)LICENSE_SERVER_URL=https://2mny.com-LICENSE_TRIAL_DAYS=14+# LICENSE_TRIAL_DAYS=14 (legacy - unused since the v2 no-license-wall policy)CACHE_STORE=fileSESSION_DRIVER=filediff --git a/README.md b/README.mdindex f9afae1..c600389 100644--- a/README.md+++ b/README.md@@ -30,8 +30,8 @@ from your own server, with your own eyes.<img src="assets/dashboard-preview.png" width="880" alt="Exposure Check dashboard — one input, 6 identifier types, 26 keyless source lanes, live corpus stats"/>**The dashboard.** Paste any identifier — the type is auto-detected, the corpus stats-(1,047+ breaches, 17.8B+ leaked records, 37M stealer infections) are computed from the-actual local indexes, not marketing numbers.+(1,047+ breaches, 17.8B+ leaked records, 37M stealer infections) come from the live+HIBP corpus when reachable, with honest fallback estimates otherwise.<img src="assets/results-preview.png" width="880" alt="Live results view — exposure score gauge, CRITICAL EXPOSURE verdict, parallel source cards with severity badges"/>@@ -66,7 +66,7 @@ That is the whole install: one Docker container (Apache + PHP + SQLite — no MyRedis, no API keys), a generated admin password, and `http://localhost:8080` ready.Details and non-Docker paths: [docs/SELF-HOSTING.md](docs/SELF-HOSTING.md).-Self-test the whole stack any time (25-source reachability, storage, database,+Self-test the whole stack any time (26-source reachability, storage, database,site database — seconds, no real check performed):```bashdiff --git a/app/Console/Commands/SiteHealthCommand.php b/app/Console/Commands/SiteHealthCommand.phpindex 2735552..71dfe11 100644--- a/app/Console/Commands/SiteHealthCommand.php+++ b/app/Console/Commands/SiteHealthCommand.php@@ -98,7 +98,6 @@ class SiteHealthCommand extends Commandtry {$r = Http::timeout(10)->withHeaders(['User-Agent' => self::UA, 'Accept-Language' => 'en-US,en;q=0.9'])- ->withoutVerifying()->get($url);return [$r->status(), (string) $r->body()];} catch (\Throwable $e) {diff --git a/app/Modules/Osint/Sources/CrtShSource.php b/app/Modules/Osint/Sources/CrtShSource.phpindex fd32a9b..082f865 100644--- a/app/Modules/Osint/Sources/CrtShSource.php+++ b/app/Modules/Osint/Sources/CrtShSource.php@@ -62,7 +62,7 @@ class CrtShSource implements OsintSource'headers' => ['Accept' => 'application/json',// crt.sh intermittently 502s generic bot UAs; identify honestly.- 'User-Agent' => '2mny-trace/1.0 (+https://2mny.com)',+ 'User-Agent' => 'Exposure-Check-OSINT/1.8 (+https://github.com/RanaKhan77/Exposure-Check-OSINT)',],],[@@ -71,7 +71,7 @@ class CrtShSource implements OsintSource'url' => self::CERTSPOTTER_URL . '?domain=' . urlencode($domain) . '&include_subdomains=true&expand=dns_names','headers' => ['Accept' => 'application/json',- 'User-Agent' => '2mny-trace/1.0 (+https://2mny.com)',+ 'User-Agent' => 'Exposure-Check-OSINT/1.8 (+https://github.com/RanaKhan77/Exposure-Check-OSINT)',],],];diff --git a/app/Modules/Osint/Sources/DisposableEmailSource.php b/app/Modules/Osint/Sources/DisposableEmailSource.phpindex 499f2ac..007ec9e 100644--- a/app/Modules/Osint/Sources/DisposableEmailSource.php+++ b/app/Modules/Osint/Sources/DisposableEmailSource.php@@ -53,17 +53,23 @@ class DisposableEmailSource implements OsintSourcereturn ['status' => 'unavailable', 'summary' => 'Invalid email address.', 'data' => []];}- $list = Cache::remember(self::CACHE_KEY, 86400, function (): array {+ // Never cache a failure: a transient fetch error cached for 24h would+ // report the source as unavailable for a whole day.+ $list = Cache::get(self::CACHE_KEY);+ if (!is_array($list) || $list === []) {try {$body = (string) \Illuminate\Support\Facades\Http::timeout(10)->get(self::LIST_URL)->body();$list = array_filter(array_map('trim', explode("\n", $body)));sort($list);- return array_flip($list);+ $list = array_flip($list);+ if ($list !== []) {+ Cache::put(self::CACHE_KEY, $list, 86400);+ }} catch (\Throwable $e) {- return [];+ $list = [];}- });+ }if ($list === []) {return ['status' => 'unavailable', 'summary' => 'Disposable-domain list unavailable right now.', 'data' => []];diff --git a/composer.json b/composer.jsonindex f4f79a1..66ac5e3 100644--- a/composer.json+++ b/composer.json@@ -2,7 +2,7 @@"$schema": "https://getcomposer.org/schema.json","name": "2mny/exposure-check-osint","type": "project",- "description": "Self-hosted personal exposure checker: email / username / phone / password / IP against 23 keyless OSINT sources. Non-AI, Laravel + Docker, k-anonymity password checks.",+ "description": "Self-hosted personal exposure checker: email / username / phone / password / IP against 26 keyless OSINT sources. Non-AI, Laravel + Docker, k-anonymity password checks.","keywords": ["osint","email-osint",@@ -57,7 +57,7 @@],"post-create-project-cmd": ["@php artisan key:generate --ansi",- "@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"",+ "@php -r \"file_exists('storage/app/database.sqlite') || touch('storage/app/database.sqlite');\"","@php artisan migrate --graceful --ansi"]},diff --git a/config/app.php b/config/app.phpindex 72153b7..d6bb0cd 100644--- a/config/app.php+++ b/config/app.php@@ -2,7 +2,7 @@return ['name' => env('APP_NAME', 'Exposure-Check-OSINT'),- 'version' => '1.6.0',+ 'version' => '1.8.4','env' => env('APP_ENV', 'production'),'debug' => (bool) env('APP_DEBUG', false),'url' => env('APP_URL', 'http://localhost'),diff --git a/docker/Dockerfile b/docker/Dockerfileindex d9c38c6..417ab63 100644--- a/docker/Dockerfile+++ b/docker/Dockerfile@@ -6,15 +6,14 @@# expose it remotely (see docs/SELF-HOSTING.md).## Build: docker build -t exposure-check-osint -f docker/Dockerfile .-# Run: docker run -p 8080:80 -v ec-data:/var/www/html/database \-# -v ec-storage:/var/www/html/storage exposure-check-osint+# Run: docker run -p 8080:80 -v ec-storage:/var/www/html/storage exposure-check-osint# =============================================================================FROM php:8.5-apacheLABEL org.opencontainers.image.title="Exposure-Check-OSINT"-LABEL org.opencontainers.image.description="Self-hosted personal exposure checker (email/username/phone/password/IP) — 19 keyless OSINT sources, no AI"-LABEL org.opencontainers.image.version="1.1.0"+LABEL org.opencontainers.image.description="Self-hosted personal exposure checker (email/username/phone/password/IP) — 26 keyless OSINT sources, no AI"+LABEL org.opencontainers.image.version="1.8.4"LABEL org.opencontainers.image.licenses="Apache-2.0"LABEL org.opencontainers.image.source="https://github.com/RanaKhan77/Exposure-Check-OSINT"diff --git a/docker/entrypoint.sh b/docker/entrypoint.shindex 5b6902e..62ff4d7 100755--- a/docker/entrypoint.sh+++ b/docker/entrypoint.sh@@ -8,7 +8,7 @@# - ADMIN_PASSWORD replaces its placeholder line (never appends - phpdotenv# is first-wins, appending after an empty placeholder bricks login).# - The generated password is printed ONCE (first boot only).-# - Laravel scheduler runs in the background (license heartbeat/re-validation).+# - Laravel scheduler runs in the background (weekly site:health probes).# - No config:cache (own-use app; keeps env()/storage fallbacks simple and# honest - see AuthController reading config('app.admin_password')).# =============================================================================@@ -55,7 +55,7 @@ chown -R www-data:www-data storage bootstrap/cache 2>/dev/null || true# 6. Migrations (idempotent)php artisan migrate --force || echo "(migration warning - check storage perms)"-# 7. Laravel scheduler in the background (license validate/heartbeat)+# 7. Laravel scheduler in the background (weekly site:health probes)nohup php artisan schedule:work >/dev/null 2>&1 &# 8. Apache in the foregrounddiff --git a/docs/SELF-HOSTING.md b/docs/SELF-HOSTING.mdindex 4b421f4..816ed15 100644--- a/docs/SELF-HOSTING.md+++ b/docs/SELF-HOSTING.md@@ -10,7 +10,7 @@ cd Exposure-Check-OSINTOpen `http://localhost:8080/login` and sign in with the printed password.That is the whole install. Data (history, settings, license) lives in the-`ec-db` and `ec-storage` Docker volumes and survives upgrades.+`ec-storage` Docker volume and survives upgrades.Custom port: `./install.sh --port 9090`Custom password: `./install.sh --password 'your-strong-password'`@@ -63,7 +63,7 @@ composer install --no-dev --optimize-autoloadercp .env.example .envphp artisan key:generatesed -i "s|^ADMIN_PASSWORD=.*|ADMIN_PASSWORD=$(openssl rand -hex 12)|" .env-touch database/database.sqlite+touch storage/app/database.sqlitephp artisan migrate --forcephp artisan serve --host 127.0.0.1 --port 8080```diff --git a/install.sh b/install.shindex 52ab41e..2321a54 100755--- a/install.sh+++ b/install.sh@@ -82,7 +82,7 @@ if [[ -f .env ]] && grep -q '^ADMIN_PASSWORD=' .env; thenecho " Password : $(grep '^ADMIN_PASSWORD=' .env | cut -d= -f2-)"fiecho ""-echo " Data lives in docker volumes ec-db + ec-storage."+echo " Data lives in the ec-storage Docker volume (SQLite DB, .env copy, logs)."echo " Stop: $COMPOSE down"echo " Logs: $COMPOSE logs -f"echo "=============================================================="diff --git a/routes/web.php b/routes/web.phpindex 1406fad..7bbcda0 100644--- a/routes/web.php+++ b/routes/web.php@@ -17,7 +17,7 @@ use Illuminate\Support\Facades\Route;|--------------------------------------------------------------------------| Public: login + display-image proxy (cached favicons/avatars).| Admin session: dashboard check page, history, reports, settings, license.-| New checks additionally pass the community-license gate (trial -> free key).+| New checks show a non-blocking optional-key reminder (no gate since v2).*/Route::get('/login', [AuthController::class, 'showLogin'])->name('login');