Bağımsız sızma testi öncesi iç incelemeInternal review before the independent penetration test
SonuçResult
İncelemede bulunan ve ürünü etkileyen bulguların tamamı düzeltildi. Her düzeltme otomatik bir testle birlikte geldi ve ayrı bir test kurulumunda uçtan uca doğrulandı. Bulguların hiçbirinin canlı bir kurulumda kötüye kullanıldığına dair bir iz yok; Gateway henüz genel kullanıma açılmadı.Every finding of the review that affects the product is fixed. Each fix came with an automated test and was verified end to end on a separate test installation. There is no sign that any finding was exploited on a live installation; the Gateway is not yet generally available.
Kapsam ve yöntemScope and method
- Gateway APIGateway API — kayıt, donanım doğrulaması, cihaz kimlik doğrulaması, sayı eşleştirme, kurum ayrımı, hız sınırları, hata yanıtlarıenrolment, hardware attestation, device authentication, number matching, tenant isolation, rate limits, error responses
- RADIUS — istemci bağlama, alan (realm) seçimi, ret mesajlarıclient binding, realm selection, reject messages
- Kurulum ve işletim araçlarıInstallation and operations — paket imzası doğrulama, yedekleme, geri yükleme, güncellemepackage signature verification, backup, restore, upgrade
- Derleme hattıBuild pipeline — CI ve sürüm iş akışları, imzalamaCI and release workflows, signing
- Enterprise uygulamasıEnterprise app — Gateway cihaz anahtarı, QR tarama ekranı, gizli veri saklamaGateway device key, QR scanning screen, secret storage
Yöntem: kaynak kodu incelemesi, hedefli testler ve yalnızca yerel bir test kurulumuna karşı aktif deneme. İnternete açık adresler yalnızca pasif olarak incelendi.Method: source review, targeted tests, and active testing against a local test installation only. Public endpoints were examined passively.
Bulgular ve düzeltmelerFindings and fixes
YüksekHigh
| ID | BulguFinding | DüzeltmeFix |
|---|---|---|
| H1 | Kayıt sırasında QR koddaki token, telefon anahtarının güvenli donanımda olduğunu kanıtlamadan da geçerli kod üretebiliyordu.During enrolment, the token in the QR code could produce valid codes before the phone proved its key lives in secure hardware. | Donanım seviyesi gereken token'lar, doğrulanmış onay gelene kadar kapalı kalıyor.Tokens that require hardware stay disabled until an attested confirmation succeeds. |
| H2 | Özel hazırlanmış bir yedek dosyası, geri yükleme sırasında kurulum dizini dışına dosya yazabiliyordu.A crafted backup archive could write files outside the installation directory during restore. | Arşiv içeriği sıkı bir izin listesiyle denetleniyor; yollar yalnızca doğrulanmış adlardan oluşturuluyor.Archive contents are checked against a strict allow-list; paths are built only from validated names. |
| H3 | Servis parolaları başlangıçta komut satırı argümanı olarak geçiyor ve sunucudaki diğer kullanıcılara görünüyordu.Service passwords were passed as command-line arguments at start-up and visible to other users on the server. | Gizli bilgiler süreç içinde dosyadan okunuyor; hiçbir komut satırında yer almıyor.Secrets are read from files inside the process; none appears on a command line. |
| H4 | Kurulum betiği sürüm imzasını doğrulamıyordu.The installer did not verify the release signature. | Betik Veilo sürüm anahtarını içeriyor; imzası doğrulanmayan paketi kurmayı reddediyor.The installer carries the Veilo release key and refuses any package whose signature does not verify. |
OrtaMedium
| ID | BulguFinding | DüzeltmeFix |
|---|---|---|
| M1 | Çok kurumlu kurulumda bir RADIUS istemcisi yalnızca kendi kurumuna bağlı değildi; ret mesajları kullanıcının var olup olmadığını ele veriyordu.On a multi-organisation install, a RADIUS client was not bound to its own organisation, and reject messages revealed whether a user existed. | Her RADIUS istemcisi kendi kurumuna bağlanabiliyor; her ret aynı nötr mesajı taşıyor.Each RADIUS client can be bound to its organisation; every reject carries the same neutral message. |
| M2 | Kullanılmış bir kayıt bileti yeniden gönderildiğinde kayıtlı token kapanıyordu.Replaying a used enrolment ticket disabled the enrolled token. | Kullanılmış bilet yan etkisiz reddediliyor.A used ticket is refused with no side effects. |
| M3 | Kimliği doğrulanmamış istekler bir cihazın istek kotasını tüketip onu kilitleyebiliyordu.Unauthenticated requests could use up a device's request budget and lock it out. | Cihaz kotasına yalnızca doğrulanmış istekler sayılıyor; hatalı denemelerin ayrı sınırı var.Only authenticated requests count against a device; failed attempts have their own limit. |
| M4 | Sunucudaki yerel bir süreç, sahte yönlendirme başlığıyla hız sınırının saydığı adresi değiştirebiliyordu.A local process on the server could change the address used for rate limits with a forged forwarding header. | Yönlendirme başlıklarına yalnızca tanımlı vekil sunuculardan güveniliyor.Forwarding headers are trusted only from configured proxies. |
| M5 | Gateway dizin tablolarına veritabanı yönetici yetkisiyle erişiyordu.The Gateway reached its directory tables with database superuser rights. | Yalnızca bu tablolara erişen, en az yetkili ayrı bir veritabanı rolü; mevcut kurulumlar otomatik taşınıyor.A separate least-privilege database role owns only those tables; existing installs are migrated automatically. |
| M6 | Derleme hattında enjeksiyona açık girdi, sabitlenmemiş bileşenler ve sürüm dışı derlemeleri imzalama riski vardı.The build pipeline had injectable inputs, unpinned components and could sign non-release builds. | Girdiler güvenli aktarılıyor, bileşenler sabitlendi, yalnızca sürüm etiketleri korumalı bir ortamda imzalanıyor.Inputs are passed safely, components are pinned, only release tags are signed, in a protected environment. |
| M7 | Telefondaki Gateway cihaz anahtarı, telefon kilitliyken de onay imzalayabiliyordu.The phone's Gateway device key could sign approvals while the phone was locked. | Yeni cihaz anahtarları yalnızca telefon kilidi açıkken çalışıyor (Enterprise 0.5.3) ve Gateway bunu doğrulamadan okuyup kaydediyor. Her onayı ayrıca biyometriye bağlamak Gateway 1.x'te planlı.New device keys work only while the phone is unlocked (Enterprise 0.5.3), and the Gateway reads and records this from the attestation. Binding each approval to a biometric check is planned for Gateway 1.x. |
DüşükLow
| ID | BulguFinding | DüzeltmeFix |
|---|---|---|
| L1 | Aynı onay isteğine eşzamanlı iki yanıt ikisi de kabul edilebiliyordu.Two simultaneous answers to one challenge could both be accepted. | Yanıt sırasında kayıt kilitleniyor.The challenge is locked while it is answered. |
| L2 | Aralık dışı bir zaman damgası sunucu hatasına yol açıyordu.An out-of-range timestamp caused a server error. | İstek temiz biçimde reddediliyor.The request is refused cleanly. |
| L3 | Sertifika uzantıları, o sertifikanın imzası doğrulanmadan okunuyordu.Certificate extensions were read before that certificate's signature was checked. | Zincir kökten aşağı, önce imza sonra içerik sırasıyla doğrulanıyor.The chain is verified from the root down, signature before content. |
| L4 | Doğrulama ayrıştırıcısı standart dışı kodlamaları ve dışarıdan aktarılmış anahtarları kabul ediyordu.The attestation parser accepted non-canonical encodings and imported keys. | Katı ayrıştırma; donanım seviyesi için anahtarın güvenli donanımda üretilmiş olması şart.Strict parsing; hardware levels require a key generated inside secure hardware. |
| L5 | İptal edilmiş bir cihaza onay isteği gönderilebiliyordu.A challenge could be sent to a revoked device. | Reddediliyor.Refused. |
| L6 | İç hata metinleri API istemcilerine ulaşıyordu.Internal error text reached API clients. | İstemci kısa bir hata kodu alıyor; ayrıntı sunucu kaydında.Clients get a short error code; details stay in the server log. |
| L7 | Docker'ın açtığı portlar UFW gibi sunucu güvenlik duvarlarını atlıyor; yöneticiler bunu beklemeyebilir.Docker-published ports bypass host firewalls such as UFW, which administrators may not expect. | Kılavuzda filtreleme adımları; kurulum uyarı veriyor.Filtering steps documented; the installer warns. |
| L8 | Ad doğrulayıcıları satır sonu karakterini kabul ediyordu; bir güvenlik başlığı eksikti.Name validators accepted a trailing newline; a security header was missing. | Doğrulayıcılar düzeltildi; tüm yanıtlarda nosniff.Validators fixed; nosniff on every response. |
| L9 | QR tarama ekranı ekran görüntüsünde ve son uygulamalar listesinde görünebiliyordu.The QR scanning screen could appear in screenshots and the recent-apps view. | Uygulamanın geri kalanıyla aynı ekran koruması (Enterprise 0.5.3).Same screen protection as the rest of the app (Enterprise 0.5.3). |
İnceleme sırasında eklenen sertleştirmelerHardening added during the review
- Kimliği doğrulanan yedekler.Authenticated backups. Değiştirilmiş bir yedek ya da yanlış parola, hiçbir şey çözülmeden reddediliyor. Eski yedekler geri yüklenmeye devam ediyor.A modified backup or a wrong password is rejected before anything is decrypted. Older backups still restore.
- Bağımlılık taraması.Dependency audit. Her değişiklikte Python bağımlılıkları bilinen açıklara karşı taranıyor; yazım tarihinde açık bulgu yok.Every change checks the Python dependencies against known vulnerabilities; no open findings at the time of writing.
- Uçtan uca testler.End-to-end tests. Yeni bir sunucuya yedekten geri yükleme (16/16) ve geri almalı güncelleme (14/14). Bu testler, bir düzeltmenin yeni sunucuya geri yüklemeyi bozduğunu yakaladı; sürümden önce giderildi.Restore from backup to a new server (16/16) and upgrade with rollback (14/14). These tests caught a fix that broke restoring to a new server; it was corrected before release.
Yük ve dayanıklılık testleriLoad and resilience tests
İncelemenin ardından Gateway, ayrı ve geçici bir kurulumda yük ve hata koşullarında test edildi.After the review, the Gateway was tested under load and failure conditions on a separate, throw-away installation.
| TestTest | SonuçResult |
|---|---|
| DİSK %95DISK 95% | Tüm işlevler normal çalıştı.Everything worked normally. ✓ |
| DİSK %100DISK 100% | Sistem güvenli tarafta kaldı: hiçbir giriş yanlışlıkla kabul edilmedi, yazamadığı istekleri reddetti. Yer açılınca yeniden başlatma gerekmeden kendiliğinden toparlandı; veri kaybı ya da bozulması olmadı.The system failed closed: no sign-in was wrongly accepted; requests it could not record were refused. Once space was freed it recovered without a restart, with no data loss or corruption. ✓ |
| YEDEKBACKUP | 100 kurum: yaklaşık 0,7 MB, 4 saniye. Yaklaşık 300 kurumluk bir kurulum yeni bir sunucuya geri yüklendi; tüm kayıtlar kaynakla birebir eşleşti.100 organisations: about 0.7 MB in 4 seconds. An installation with about 300 organisations was restored to a new server; every record matched the source. ✓ |
| DENETİMAUDIT | 1 milyon olay kaydıyla filtreli sorgular 0,5 saniyenin altında.With 1 million events, filtered queries return in under 0.5 seconds. ✓ |
| ANİ YÜKBURST | Aynı anda başlatılan 500 girişin tamamı kabul edildi (rc1: 36). Paylaşımlı 4 vCPU'luk bir sunucuda, 2 çekirdek işçisiyle dakikada yaklaşık 45 giriş işlendi; yük sırasında telefon onaylarının hepsi başarılı oldu. Kapasiteyi doğrulama çekirdeği belirliyor; işçi sayısı artık ayarlanabiliyor ve kurulum rehberinde bir boyutlandırma tablosu var.All 500 sign-ins started at the same moment were accepted (rc1: 36). On a shared 4-vCPU server with 2 core workers, about 45 sign-ins per minute were processed, and every phone approval during the burst succeeded. Capacity is set by the verification core; its worker count is now configurable and the installation guide has a sizing table. ✓ |
Testlerin bulup düzelttikleriFound and fixed by these tests
- Ani giriş yükünde isteklerin birbirini bekleyip kilitlenmesi.Requests waiting on each other and locking up during a sudden sign-in burst.
- Denetim ekranında eski tarih aralıkları ve kullanıcı aramasının eksik sonuç döndürmesi; eksik veritabanı indeksleri.The audit view returning incomplete results for older date ranges and user searches; missing database indexes.
- Disk doluyken bir hatanın genel bir sunucu hatası olarak dönmesi.One error surfacing as a generic server error while the disk was full.
- Doğrulama çekirdeğine giden isteklerin süresiz beklemesi: artık her isteğin bir son süresi var ve çekirdeğe aynı anda giden istek sayısı sınırlı.Requests to the verification core waiting indefinitely: every request now carries a deadline, and the number in flight to the core is limited.
- Telefon onaylarının yoğun çekirdeği beklemesi: onaylar artık çekirdek meşgulken de tamamlanıyor; belirsiz bir hata durumunda reddediliyor.Phone approvals waiting on a busy core: approvals now complete while the core is busy, and are refused on an unexpected error.
Kapanan maddeClosed item
Çok sayıda cihazın aynı anda kaydında, doğrulama çekirdeği Gateway'de kaydı olmayan etkin token'lar bırakabiliyordu. Bu token'ların gizli anahtarı kimsede olmadığı için kullanılamazlar; yine de H1'in ilkesine aykırıydılar. Artık token seri numarasını Gateway seçiyor, yarım kalan kayıtlar geri alınıyor ve düzenli bir tarama kaydı olmayan token'ları devre dışı bırakıyor.When many devices enrol at once, the verification core could leave active tokens that have no Gateway record. Nobody holds their secret, so they cannot be used; they still went against the principle of H1. The Gateway now chooses the token serial, half-finished enrolments are rolled back, and a periodic sweep disables tokens with no record. rc3'TE DÜZELTİLDİFIXED IN rc3
DoğrulamaVerification
Her düzeltme bir regresyon testiyle geldi; doğrulama zinciriyle ilgili testlerin düzeltme olmadan başarısız olduğu ayrıca kontrol edildi. Gateway'in 265 testi ve yedekleme aracının testleri her değişiklikte otomatik çalışıyor. Gerçek cihazlardan alınmış on donanım doğrulama zinciri yeni, daha katı ayrıştırıcıyla yeniden doğrulandı.Every fix shipped with a regression test; the attestation tests were also checked to fail without the fix. The Gateway's 265 tests and the backup tool's tests run automatically on every change. Ten attestation chains from real devices were re-verified with the stricter parser.
Sırada ne varWhat comes next
- Bağımsız sızma testiIndependent penetration test — Gateway 1.0 öncesi; rapor bu sayfada yayımlanacak.— before Gateway 1.0; the report will be published on this page.
- Ayrılmış donanımda kapasite ölçümüCapacity measured on dedicated hardware — Gateway 1.0 öncesi; yukarıdaki sonuçlar paylaşımlı bir sunucuda alındı.— before Gateway 1.0; the results above come from a shared server.
- Enterprise 0.5.3 — M7 ve L9 ile, cihaz testlerinin ardından.— with M7 and L9, after device testing.
- Biyometriye bağlı onaylarBiometric-bound approvals — Gateway 1.x.— Gateway 1.x.
Bu inceleme hakkında sorular ve güvenlik bildirimleri: partner@veilo.trQuestions about this review and security reports: partner@veilo.tr