Zum Hauptinhalt springen
Intelligence View
⚡ tsecurity.de Intelligence

CodeSOD: Authorized Logger

Gretchen's company recently got purchased by Initech. Specifically, they were bought for their dev team, of all things. They had a few software products that…

Beitrag
0
Seite
0
↗ Quelle (thedailywtf.com)
CVE & Threat-Kontext · 3 Min. Lesezeit
Quelle: thedailywtf.com
Rubrik: Sichere Programmierung

Gretchen's company recently got purchased by Initech. Specifically, they were bought for their dev team, of all things. They had a few software products that were high performers, and Initech wanted that secret sauce. They bought the company, and then split the dev team up and migrated the developers to new products.


That actually worked out okay for Gretchen, most of the time. For a few projects, the dev team was given some requirements and a free hand to figure out how to deliver them. They were free to reuse code that existed or rewrite entirely, based on their own judgement. They were free to pick the tools they wanted to use, and the results worked out well.


But there were some projects that… were a different story. After those successes, Gretchen got moved onto a project that was 90% firefighting. The app had code like this:


req.body.externalId = !!req.body.externalId ? req.body.externalId + "" : "";

How's that for some null handling.


The whole thing can't run on a version of NodeJS newer than 14: a version that last got an update in 2023.


"The code follows no conventions," Gretchen writes, "there's no logging."


exports.create = (req, res) => {
logger.debug('creating new staffClient');
logger.debug(req.body)
// let staffClient = new StaffClient({});

// // run through and create all fields on the model
// for(var k in req.body) {
// if(req.body.hasOwnProperty(k)) {
// staffClient[k] = req.body[k];
// }
// }


StaffClient.query().insert(req.body)
.returning('*')
.then(staffClient => {
if(staffClient) {
res.send({success: true, staffClient})
} else {
res.send({ success: false, message: "Could not save StaffClient"})
}
});
}

Now, you may say to yourself, "What do you mean there's no logging? I see it right there!" There is a logger utility class, and do you know what it prints when you call logger.debug("some message")? It prints DEBUG.


This code handles an HTTP request, and stuffs the body of the request into the database; here's hoping that it's a well formed request. Somebody's got a lot of faith in their front end. WHat's interesting about this one is they've tried two different ways of copying the request object into the database, the first one focusing on making sure they only copied non-inherited properties, and the second just YOLOing the data into the database.


Now, this particular segment goes through their ORM to write data into the database. But not all the code does that. Many places write data through direct SQL, and guess what happens there: SQL injection vulnerabilities.


You may also notice that this function doesn't do any authorization checks, which is fine, that should be configured in the middleware. Should be- but isn't. Most endpoints have no authorization checks at all. Even the endpoints that do, like their admin API, have copies of the same endpoint with no authentication configured.



[Advertisement]
Keep all your packages and Docker containers in one place, scan for vulnerabilities, and control who can access different feeds. ProGet installs in minutes and has a powerful free version with a lot of great features that you can upgrade when ready.Learn more.

Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:
✏️ Information ergänzen
🛡️ Versioniert via CMS-Revisions-Engine (Freigabe-Queue für Gäste)

💬 Dyskusja społeczności i komentarze

🌐 Dołącz do głównego czatu

Rozpocznij dyskusję w strumieniu transmisji Social Chat lub prześlij wyżej wkład ekspercki przez formularz uzupełnień.

🔍 CTI & Forensik

Cyber Threat Intelligence i Kryminalistyka

ATT&CK Navigator · Radar IoC · Dowody Exploitów
MITRE ATT&CK Matrix Navigator
1 belegte Technik
T1190TA0001 · Initial Access
Exploit Public-Facing Application
Mitigation: M1042 Network Segmentation & WAF Rule Enforcement
Quelle: Kontext-Klassifikation des Artikeltextes · Konfidenz 86%
Skanuj publicznie dostępne usługi za pomocą OpenVAS, naostrz zasady WAF, skróć okna łat.
Initial Access
CTI Threat Relationship Graph
Akteure · Techniken · Beziehungen
4 Knoten · 3 Relationen
CVE / Incident Threat Actor Software MITRE ATT&CK CWE Weakness IoC
Security Briefing Bezpłatnie · Wypisanie 1 kliknięciem

Intelligence Digest - bezpłatnie

Codziennie najważniejsze wiadomości bezpieczeństwa · można pobrać w każdej chwili

Community Rating & Social Proof
⭐ Ocena czytelników
–
Ø / 5.0
Brak recenzji czytelników
Czy ten artykuł był pomocny?
0
Dodaj swoją ocenę
Ocena szczegółowa (opcjonalnie)
Treść i jakość
Źródło i wiarygodność
Aktualność

Powiązany klaster opowieści i źródła (wektor AI)

6 Cluster
21 źródeł
CVE-2026-129373 | Joomla! Project Joomla Extension 1.6.0-5.4.10/6.0.0-6.2.0 Password Reset session expiration (EUVD-2026-134294)
VulDB Updates 31 minut temu
20 kolejnych źródeł
VulDB Updates31 minut temuCVE-2026-129385 | Joomla! Project Joomla! Extension 4.0.0-5.4.10/6.0.0-6.2.0 Mail Template information disclosure (EUVD-2026-134295) VulDB Updates31 minut temuCVE-2026-129381 | Joomla! Project Joomla Extension up to 5.4.10/6.2.0 Install From Web cross-site request forgery (EUVD-2026-134293) VulDB Updates31 minut temuCVE-2026-127299 | Joomla! Project Joomla Extension up to 1.6.0/5.4.10/6.0.0/6.2.0 com_newsfeeds name cross site scripting (EUVD-2026-134290) VulDB Updates31 minut temuCVE-2026-123210 | Joomla! Project Joomla Extension 4.0.0-5.4.10/6.0.0-6.2.0 com_media input validation (EUVD-2026-134291) VulDB Updates21 minut temuCVE-2026-126045 | Joomla! Project Joomla Extension up to 1.6.0/5.4.10/6.0.0/6.2.0 Language Parameter language file inclusion (EUVD-2026-134289) VulDB Updates21 minut temuCVE-2026-129387 | Joomla! Project Joomla! CMS Extension 4.0.0-5.4.10/6.0.0-6.2.0 com_menus privileges management (EUVD-2026-134288) VulDB Updates21 minut temuCVE-2026-127300 | Joomla! Project Joomla CMS Extension 4.3.0-5.4.10/6.0.0-6.2.0 com_guidedtours cross site scripting (EUVD-2026-134285) VulDB Updates21 minut temuCVE-2026-127295 | Joomla! Project Joomla Extension 4.0.0-5.4.10/6.0.0-6.2.0 Webservice Endpoints permission (EUVD-2026-134286) VulDB Updates21 minut temuCVE-2026-129383 | Joomla! Project Joomla Extension 6.2.0 SMTP OAuth2 Settings information disclosure (EUVD-2026-134287) VulDB Updates21 minut temuCVE-2026-129382 | Joomla! Project Joomla Extension up to 5.4.10/6.2.0 com_media permission (EUVD-2026-134284) VulDB Updates21 minut temuCVE-2026-127297 | Joomla! Project Joomla 3.6.0-5.4.10/6.0.0-6.2.0 Formatted Text Logger race condition (EUVD-2026-134282) VulDB Updates21 minut temuCVE-2026-129389 | Joomla! Project Joomla Extension up to 3.8.3/5.4.10/6.0.0/6.2.0 Wrapper cross site scripting (EUVD-2026-134283) VulDB Updates21 minut temuCVE-2026-127296 | Joomla! Project Joomla CMS Extension 4.0.0-5.4.10/6.0.0-6.2.0 com_config information disclosure (EUVD-2026-134281) VulDB Updates1 godzinę temuCVE-2026-127298 | Joomla! Project Joomla Extension up to 1.6.0/5.4.10/6.0.0/6.2.0 com_contact name cross site scripting (EUVD-2026-134302) VulDB Updates1 godzinę temuCVE-2026-129368 | Joomla Extension 1.6.0-5.4.10/6.0.0-6.2.0 Banner cross site scripting (EUVD-2026-134300) VulDB Updates1 godzinę temuCVE-2026-129386 | Joomla! Project Joomla Extension 1.6.0-5.4.10/6.0.0-6.2.0 com_contact privileges management (EUVD-2026-134301) VulDB Updates1 godzinę temuCVE-2026-129388 | Joomla! Project Joomla! Extension 4.0.0-5.4.10/6.0.0-6.2.0 com_media path traversal (EUVD-2026-134298) VulDB Updates1 godzinę temuCVE-2026-127304 | Joomla Extension 3.9.0-5.4.10/6.0.0-6.2.0 Custom Fields showon cross site scripting (EUVD-2026-134299) VulDB Updates1 godzinę temuCVE-2026-123214 | Joomla! Project Joomla Extension 4.0.0-5.4.10/6.0.0-6.2.0 Web Installer missing authentication (EUVD-2026-134297) VulDB Updates1 godzinę temuCVE-2026-129365 | Joomla! Project Joomla Extension up to 2.5.10/5.4.10/6.0.0/6.2.0 com_installer cross site scripting (EUVD-2026-134296)
13 źródeł
Square POS Black Friday deals: save up to $291 on three small business systems at Best Buy
Latest from TechRadar 19 minut temu
12 kolejnych źródeł
13 źródeł
ZDI-26-1078: llama.cpp GGUF File Parsing MINICPM-V Heap-based Buffer Overflow Remote Code Execution Vulnerability
ZDI: Published Advisories 14 godzin temu
12 kolejnych źródeł
ZDI: Published Advisories14 godzin temuZDI-26-1071: llama.cpp GGUF File Parsing Integer Overflow Remote Code Execution Vulnerability ZDI: Published Advisories14 godzin temuZDI-26-1077: llama.cpp GGUF File Parsing HunyuanVL Heap-based Buffer Overflow Remote Code Execution Vulnerability ZDI: Published Advisories14 godzin temuZDI-26-1076: llama.cpp Multimodal GGUF File Parsing Out-Of-Bounds Write Remote Code Execution Vulnerability ZDI: Published Advisories14 godzin temuZDI-26-1075: llama.cpp GGUF File Parsing set_swa_pattern Heap-based Buffer Overflow Remote Code Execution Vulnerability ZDI: Published Advisories14 godzin temuZDI-26-1073: llama.cpp MTMD Multimodal GGUF File Parsing Out-Of-Bounds Read Denial-of-Service Vulnerability ZDI: Published Advisories14 godzin temuZDI-26-1074: llama.cpp GGUF File Parsing GEMMA4A Heap-based Buffer Overflow Remote Code Execution Vulnerability ZDI: Published Advisories14 godzin temuZDI-26-1072: llama.cpp GGUF File Parsing Integer Overflow Denial-of-Service Vulnerability ZDI: Published Advisories14 godzin temuZDI-26-1056: (0Day) PyTorch Foundation PyTorch PT2 File Parsing Exposed Dangerous Method Remote Code Execution Vulnerability ZDI: Published Advisories14 godzin temuZDI-26-1048: (0Day) Soda PDF Desktop PDF File Parsing Memory Corruption Remote Code Execution Vulnerability ZDI: Published Advisories14 godzin temuZDI-26-1050: (0Day) Soda PDF Desktop PDF File Parsing Memory Corruption Remote Code Execution Vulnerability ZDI: Published Advisories14 godzin temuZDI-26-1052: (0Day) PyTorch Foundation PyTorch PT2 File Parsing Code Injection Remote Code Execution Vulnerability ZDI: Published Advisories14 godzin temuZDI-26-1049: (0Day) Soda PDF Desktop PDF File Parsing Out-Of-Bounds Write Remote Code Execution Vulnerability
Podobne wkłady
🔍 Verwandte News

Auch interessante Nachrichten CodeSOD: Authorized Logger

Thematisch verwandte Begriffe: CodeSOD, Authorized, Logger · 6 Treffer

Laden...

Filmy są załadowane...

Laden...

Składki są załadowane...

Laden...

Filmy są załadowane...

Laden...

Składki są załadowane...

Laden...

Filmy są załadowane...

Laden...

Składki są załadowane...

Laden...

Filmy są załadowane...

Uwagi Komentarze są ładowane..
Rysunek do aktualizacji
Widgets & Topics
Loading widgets…
Nächster Beitrag