Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

core-complex-client

Latest version: v2.3.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: nibgat
6 Versions
822 Downloads

Scan summary

core-complex-client was last scanned on 24 Nov 2026 at version 2.3.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 6 versions; the latest 5 were published within 2 days (23 and 24 Nov 2026).
  • Findings: No rules fired in version 2.3.0.
  • Downloads: 822 downloads.

Versions

6 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.3.0 LATEST 24 Nov 2026 No rules fired
2.2.2 23 Nov 2026 No rules fired
2.2.1 23 Nov 2026 No rules fired
2.2.0 23 Nov 2026 Not shown
2.1.0 23 Nov 2026 Not shown

No rules fired in 2.3.0

Findings

Findings for v2.3.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 2.3.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Core Complex Client (v2.2.2)

NİBGAT® Core Complex (NAuth, NChar ve StaticData) için resmi Node.js + Tarayıcı / React Native SDK'sı:

  1. NAuthClient & NCharClient (Node.js / Backend / Confidential): app-hybrid-v1 (ncore-app-v1: AES-256-GCM + RSA-OAEP-SHA256) şifreli Direct API, 4 adımlı parola sıfırlama, e-posta doğrulama, 2FA, hesap kilidi açma, profil/iletişim (NChar) ve çevrimdışı RS256 JWKS doğrulama istemcileri.
  2. NAuthSSOClient (core-complex-client/sso): Tarayıcı ve React Native uyumlu gizli anahtarsız OAuth 2.0 Authorization Code + PKCE (S256) + OIDC SSO istemcisi (popup, redirect, tab, saf JS SHA-256 fallback, BroadcastChannel + storage çoklu sekme senkronizasyonu ve yapılandırılabilir Session Monitor).
  3. NAuthSSOPortalClient (core-complex-client/portal veya client.SSOPortal / client.SSO.portal): Tarayıcı ve React Native uyumlu, çerez (withCredentials: true) + CSRF (x-nauth-csrf: 1) korumalı NAuth SSO Portal API istemcisi (/nauth/sso/*, /nauth/oauth/*, 2FA, hesap kilidi açma, oturum yönetimi, dil/çeviri kısayolları ve tip güvenli NAuthApiError).
  4. NCharPortalClient (core-complex-client/nchar-portal veya client.NCharPortal): Tarayıcı ve React Native uyumlu, gizli anahtarsız (/nchar/sso/*), çerez (withCredentials: true) + CSRF (x-nauth-csrf: 1) ve isteğe bağlı Bearer token destekli merkezi profil yönetim istemcisi (me, editUserProfile, changeUserName, getPastUserNameChanges, e-posta ve telefon yönetimi).
  5. StaticDataClient (core-complex-client/static-data veya client.StaticData): Çerezsiz (withCredentials: false) public /static-data/* uç noktaları üzerinden desteklenen dilleri ve servis/ilişki bazlı çeviri paketlerini getiren istemci.
  6. CoreComplexClient: Tüm katmanları (SSO, SSOPortal, NCharPortal, StaticData, NAuth, NChar) ve oturum izleme yardımcılarını tek çatı altında birleştiren birleşik istemci.

Güvenlik Kuralı: privateKey, privateKeyID ve rsaPublicKey bilgileri yalnızca Node.js / backend / confidential ortamlarda kullanılmalıdır. Frontend (SPA / Web / React Native) projelerinde yalnızca clientID ve redirectUri ile core-complex-client/sso, core-complex-client/portal, core-complex-client/nchar-portal veya core-complex-client/static-data alt modüllerini kullanın.


Kurulum

yarn add core-complex-client axios
Paket Alt Giriş Noktaları (Subpath Exports)
Giriş Noktası Hedef Ortam İçerik
core-complex-client Node.js / Backend & Tam Kullanım CoreComplexClient, NAuthClient, NCharClient, NAuthSSOClient, NAuthSSOPortalClient, NCharPortalClient, StaticDataClient, NAuthApiError, sabitler (NCHAR_FRONT_URL dahil), PKCE ve hibrit kripto yardımcıları, tüm tipler
core-complex-client/sso Tarayıcı / SPA / React Native NAuthSSOClient, NAuthSSOPortalClient, NAuthApiError, PKCE yardımcıları, setServerURL / getServerURL ve SSO sabitleri (Node crypto gerektirmez)
core-complex-client/portal Tarayıcı / SPA / React Native NAuthSSOPortalClient ve NAuthApiError
core-complex-client/nchar-portal Tarayıcı / SPA / React Native NCharPortalClient ve NAuthApiError (/nchar/sso/* gizli anahtarsız profil API istemcisi)
core-complex-client/static-data Tarayıcı / React Native / Node.js StaticDataClient (çerezsiz public dil ve çeviri istemcisi)

1. Frontend / Tarayıcı & React Native Kullanımı (NAuthSSOClient)

Örnek .env (Frontend Uygulamanız)

Development (.env):

NAUTH_CLIENT_ID=UYGULAMANIZIN_APP_UUID_DEGERI
NAUTH_REDIRECT_URI=http://localhost:3000/auth/callback
NAUTH_POST_LOGOUT_REDIRECT_URI=http://localhost:3000
NAUTH_FRONT_URL=http://localhost:3200
NAUTH_API_URL=http://localhost:81

Production (.env.production):

NAUTH_CLIENT_ID=UYGULAMANIZIN_APP_UUID_DEGERI
NAUTH_REDIRECT_URI=https://uygulamaniz.com/auth/callback
NAUTH_POST_LOGOUT_REDIRECT_URI=https://uygulamaniz.com
NAUTH_FRONT_URL=https://nauth.nibgat.space
NAUTH_API_URL=https://core.nibgat.space
Temel SSO Giriş / Çıkış Örneği
import {
    NAuthSSOClient
} from "core-complex-client/sso";

const sso = new NAuthSSOClient({
    postLogoutRedirectUri: process.env.NAUTH_POST_LOGOUT_REDIRECT_URI,
    redirectUri: process.env.NAUTH_REDIRECT_URI,
    clientID: process.env.NAUTH_CLIENT_ID,
    frontUrl: process.env.NAUTH_FRONT_URL,
    apiUrl: process.env.NAUTH_API_URL
});

// Popup ile giriş (tarayıcı engellerse loginWithRedirect veya loginWithNewTab kullanılabilir)
const session = await sso.loginWithPopup();
console.log(session.profile, session.accessToken);

// Redirect modunda callback sayfasında çağrılır
const callbackSession = await sso.handleRedirectCallback();

// Mevcut oturumu getir (süresi dolmak üzereyse otomatik refresh yapar)
const activeSession = await sso.getSession(true);

// OIDC UserInfo sorgusu
const userInfo = await sso.getUserInfo();

// OAuth oturum durumunu dinleme (sekmeler arası storage ile senkronize olur)
const unsubscribe = sso.onAuthStateChange((nextSession) => {
    console.log("OAuth oturum durumu:", nextSession);
});

// Portal sayfa URL yardımcıları
const registerUrl = sso.buildRegisterUrl();
const forgotPasswordUrl = sso.buildForgotPasswordUrl();
const accountUrl = sso.buildAccountUrl();

// Çıkış (logoutPortal / logoutAllDevices / revokeAllApps / globalSsoLogout desteklenir)
await sso.logout({
    globalSsoLogout: true,
    logoutPortal: true
});

React Native Notu: NAuthSSOClient yapılandırmasında storage seçeneğine AsyncStorage veya SecureStore uyumlu INAuthSSOStorage (getItem, setItem, removeItem) nesnesi verebilirsiniz. PKCE (S256) hesaplaması Web Crypto / Node Crypto olmayan ortamlarda otomatik olarak dahili saf JavaScript SHA-256 uygulamasına düşer.


2. Oturum İzleme ve Çoklu Sekme Senkronizasyonu (Session Monitor)

NAuthSSOClient ve CoreComplexClient, tarayıcı SSO çerez oturumunu (/nauth/sso/session) ve OAuth token oturumunu tek bir birleşik INAuthSessionSnapshot nesnesinde takip eder:

  • Diff tabanlı bildirim: onSessionChange yalnızca oturum verisi (durum, kaynak, token veya kullanıcı profili) gerçekten değiştiğinde tetiklenir.
  • Sessiz First-Party Token Yükseltme: Kullanıcı merkezi SSO çerezine sahipse ve uygulama ek onay (requiresConsent) gerektirmiyorsa checkSession() arka planda PKCE ile sessizce OAuth erişim token'ı alabilir (enableSilentTokenExchange: true).
  • Çoklu Sekme ve Odak Takibi: BroadcastChannel, storage, window.focus, document.visibilitychange ve periyodik zamanlayıcı desteği dahildir.
  • Framework Bağımsız Odak Kaynağı (focusSource): React Native AppState veya Electron gibi ortamlarda özel odak dinleyicisi bağlanabilir.
watchSession ile Kullanım
import {
    CoreComplexClient
} from "core-complex-client";

const client = new CoreComplexClient({
    sessionMonitor: {
        enableSilentTokenExchange: true,
        enablePeriodicCheck: true,
        focusCooldownMs: 4000,
        intervalMs: 300000
    },
    redirectUri: process.env.NAUTH_REDIRECT_URI,
    clientID: process.env.NAUTH_CLIENT_ID,
    frontUrl: process.env.NAUTH_FRONT_URL,
    apiUrl: process.env.NAUTH_API_URL
});

// İlk kontrolü yapar ve odak / görünürlük / broadcast / periyodik takibi başlatır
const stopWatching = client.watchSession({
    onSessionChange: (event) => {
        console.log("Değişim nedeni:", event.reason);
        console.log("Kaynak:", event.current.authSource); // "none" | "browser-sso-cookie" | "oauth-token" | "browser-sso-and-oauth"
        console.log("Kullanıcı:", event.current.user);
    }
});

// Anlık snapshot okuma veya manuel kontrol
const snapshot = client.getSessionSnapshot();
await client.checkSession("manual");

// Portal login sonrası oturumu anında güncelleme ve diğer sekmelere duyurma
await client.SSO.notifySessionAuthenticated({
    ssoSessionID: "sso-session-id",
    broadcast: true,
    user: snapshot.user
});

// İzlemeyi durdurma (referans sayımlıdır)
stopWatching();
React Native AppState için Özel focusSource Örneği
import {
    AppState
} from "react-native";
import {
    NAuthSSOClient
} from "core-complex-client/sso";

const sso = new NAuthSSOClient({
    sessionMonitor: {
        focusSource: {
            subscribe: (onFocus) => {
                const subscription = AppState.addEventListener("change", (state) => {
                    if(state === "active") {
                        onFocus();
                    }
                });

                return () => {
                    subscription.remove();
                };
            }
        }
    },
    clientID: "UYGULAMA_UUID",
    apiUrl: "https://core.nibgat.space"
});
INAuthSessionMonitorConfig Seçenekleri
Seçenek Varsayılan Açıklama
enablePeriodicCheck true Belirli aralıklarla oturumu otomatik kontrol eder (gizli sekmelerde atlanır).
intervalMs 300000 (5 dk) Periyodik kontrol aralığı (DEFAULT_SESSION_CHECK_INTERVAL_MS).
checkOnFocus true Pencere veya özel focusSource odaklandığında kontrol tetikler.
checkOnVisibilityChange true Tarayıcı sekmesi tekrar görünür olduğunda kontrol tetikler.
focusCooldownMs 4000 (4 sn) Arka arkaya odak tetiklemeleri arasındaki minimum bekleme süresi (DEFAULT_SESSION_FOCUS_COOLDOWN_MS).
checkOnBroadcast true BroadcastChannel üzerinden gelen oturum güncellemelerini dinler.
checkOnStorage true Diğer sekmelerdeki localStorage oturum değişikliklerini dinler.
handleRedirectCallbackOnProbe true checkSession() sırasında URL'de code ve state varsa callback'i otomatik tamamlar.
enableSilentTokenExchange true Aktif SSO çerezi varken onay gerektirmeyen uygulamalarda sessiz PKCE token değişimi dener.
focusSource null Web dışındaki ortamlar için özel { subscribe(onFocus) } odak kaynağı.
autoStart false İstemci oluşturulurken izleyiciyi otomatik başlatır.

3. SSO Portal API İstemcisi (NAuthSSOPortalClient)

Tarayıcı ve React Native ortamlarında doğrudan NAuth SSO Portal uç noktalarıyla konuşmak için kullanılır. Her istekte otomatik olarak x-nauth-csrf: 1 başlığı ve varsayılan withCredentials: true ayarı gönderir; hata durumlarında tip güvenli NAuthApiError (status, message, payload) fırlatır.

core-complex-client/portal üzerinden doğrudan oluşturulabilir veya mevcut istemci üzerinden client.SSOPortal / client.SSO.portal olarak erişilebilir.

import {
    NAuthSSOPortalClient,
    NAuthApiError
} from "core-complex-client/portal";

const portal = new NAuthSSOPortalClient({
    apiUrl: "https://core.nibgat.space"
});

try {
    // E-posta, kullanıcı adı (userName) veya telefon ({ phoneAreaCode, phone }) ile giriş
    const loginRes = await portal.login({
        password: "StrongPassword123!",
        mail: "user@nibgat.space"
    });

    if(loginRes.payload?.requires2FA && loginRes.payload.challengeToken) {
        await portal.twoFactor.verifyChallenge({
            challengeToken: loginRes.payload.challengeToken,
            channel: "totp",
            code: "123456"
        });
    }
} catch(error: unknown) {
    if(error instanceof NAuthApiError) {
        console.error("API Hatası:", error.status, error.message, error.payload);
    }
}

// Aktif oturumları listeleme ve tekil oturum / uygulama izni iptali
const sessionsRes = await portal.listSessions();
await portal.revokeSession({
    targetType: "sso_session",
    targetID: "session-uuid"
});
NAuthSSOPortalClient Metot Grupları

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm core-complex-client

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229