Connect with us
X
Categories:

Technology

Csurf NPM package has a CSRF issue that was created to guard against similar flaws

Published

on

Csurf NPM package has a CSRF issue that was created to guard against similar flaws
Share this post:

DOWNLOAD MP3 SONG

Pen testers hunting for low-severity bugs found a far more severe cross-site request forgery (CSRF) flaw in the open source csurf software.

Researchers from UK-based cybersecurity firm Fortbridge were called in when a customer asked them to review a penetration testing report. An issue flagged was a CSRF cookie missing a secure flag.

Curious about the finding, the team began digging. According to an August 28 blog post put together by Fortbridge cloud application security consultant Adrian Tiron, the issue was ultimately traced back to a node.js application relying on csurf.

Csurf is a project designed to allow developers to create middleware for CSRF token creation and validation via sessions or cookies. The NPM package is still downloaded approximately 400,000 times per week even though its last formal update was three years ago.

Tiron writes that while the popular package was intended to defend against CSRF, a CSRF bug has lain dormant within the code since the last version release, impacting any application using the open source package.

After exploring the csurf code, the pen testers found several problems. These included secrets stored in clear text within _csrf cookies; the use of the broken SHA-1 cryptographic algorithm; a lack of signature checks for cookies by default, and the validation of header tokens against the secret or GET/POST parameters with different names.

Furthermore, Tiron explained that there was some “weird behavior” in the code. For example, the app would accept empty XSRF tokens and it was possible to create a token from a salt and the secret, allowing attackers to calculate their own CSRF tokens.

Cookie toss

By adding a second cookie with the same name and forcing an app to use a malicious alternative by setting specific Path attributes, in what is known as a cookie toss, the team could pass the CSRF token header as GET, exploiting the software in the process.

RECOMMENDED  Parse Server fixes brute-forcing bug that endangered sensitive user data at risk

“OSS just like commercial software can have vulnerabilities,” Tiron told The Daily Swig. “Companies relying on OSS should realize that people behind it are often volunteers and quite often there’s no budget for security tooling or pen testing.”

Fortbridge submitted its findings to the package developer on June 2. The issue was acknowledged a day later, and after further investigation, the maintainer has reportedly decided to mark the package as deprecated.

“Popular open source libraries are a good target for attackers because they impact a large number of applications that are incorporating it,” Tiron told us. “Even if it’s open source and many eyes are supposedly looking at it, the truth is that sometimes the security skills are lacking or there’s no incentive to look for bugs because there’s no bug bounty involved.”

Tiron concluded: “What we see is that companies are very reactive in this area (they rely just on patching) and we recommend that they should be more proactive and do their own security check.”


Get More Stories Like This On: Facebook: @AllNaijaEntertainment, Twitter: @AllNaijaEntertainment
Chief Oyerigha Echo Toikumoh - The Earlier The Better
Music4 days ago

[Music] Chief Oyerigha Echo Toikumoh – The Earlier The Better

Enzo Maresca and Mikel Arteta stated they will not take Pep Guardiola's place at Manchester City
Sports4 days ago

Enzo Maresca and Mikel Arteta stated they will not take Pep Guardiola’s place at Manchester City

Alan Shearer reckons Liverpool star is ‘not going to get better’
Sports4 days ago

Alan Shearer reckons Liverpool star is ‘not going to get better’

NECO examiners threaten nationwide protest over unpaid entitlements
News4 days ago

NECO examiners threaten nationwide protest over unpaid entitlements

Jonathan congratulates Trump on historic election win
News4 days ago

Jonathan congratulates Trump on historic election win

Peter Obi can become president in 2027 — Yunusa Tanko
News4 days ago

Peter Obi can become president in 2027 — Yunusa Tanko

Dua Lipa forced to cancel show after ‘unforeseen safety issues’
Entertainment5 days ago

Dua Lipa forced to cancel show after ‘unforeseen safety issues’

Uzoamaka Onuoha wins Best Female Performance in a feature at AFRIFF 2024
Entertainment5 days ago

Uzoamaka Onuoha wins Best Female Performance in a feature at AFRIFF 2024

'Phoenix Fury' bags Best Film award at the 13th edition of AFRIFF
Entertainment5 days ago

‘Phoenix Fury’ bags Best Film award at the 13th edition of AFRIFF

Vivo begins teasing new Dimensity 9400 flagships internationally
Technology5 days ago

Vivo begins teasing new Dimensity 9400 flagships internationally

Google Pixel 11 and Pixel 11 Pro may trade performance gains for longer battery life
Technology5 days ago

Google Pixel 11 and Pixel 11 Pro may trade performance gains for longer battery life

Manchester United players warned ‘only one is safe’ under Ruben Amorim
Sports5 days ago

Manchester United players warned ‘only one is safe’ under Ruben Amorim

Austin DeAnda given impromptu makeover after he is forced to have haircut in the middle of fight
Sports5 days ago

Austin DeAnda given impromptu makeover after he is forced to have haircut in the middle of fight

IG orders punishment for errant cops
News6 days ago

IG orders punishment for errant cops

Be ready to recover stolen mandate — Ighodalo tells PDP
News6 days ago

Be ready to recover stolen mandate — Ighodalo tells PDP

No part of Ogun will be ceded under my watch — Dapo Abiodun
News6 days ago

No part of Ogun will be ceded under my watch — Dapo Abiodun

Ruger calls out auto tune and hype culture in music
Entertainment6 days ago

Ruger calls out auto tune and hype culture in music

I hate to play same role repeatedly — Actress Bimbo Akintola
Entertainment6 days ago

I hate to play same role repeatedly — Actress Bimbo Akintola

Fans split on Davido, Wizkid, and Burna Boy's Grammy nominations.
Entertainment6 days ago

Fans split on Davido, Wizkid, and Burna Boy’s Grammy nominations

Samsung Galaxy S25 Slim: Leaker reveals launch details for Samsung's rival iPhone 17 Air
Technology6 days ago

Samsung Galaxy S25 Slim: Leaker reveals launch details for Samsung’s rival iPhone 17 Air

Realme names first smartphone to get Android 15 beta worldwide
Technology6 days ago

Realme names first smartphone to get Android 15 beta worldwide

England interim manager tipped for surprise Premier League job
Sports6 days ago

England interim manager tipped for surprise Premier League job

Hakim Ziyech mocks Israeli supporters attacked in Amsterdam
Sports6 days ago

Hakim Ziyech mocks Israeli supporters attacked in Amsterdam

Court jails seven for internet fraud in Kaduna
News6 days ago

Court jails seven for internet fraud in Kaduna

Edo APC criticizes Obaseki’s last-minute appointments
News6 days ago

Edo APC criticizes Obaseki’s last-minute appointments

Edo PDP announces caretaker committee
News6 days ago

Edo PDP announces caretaker committee

Tems makes history after securing 3 nominations for the 67th Grammys
Entertainment6 days ago

Tems makes history after securing 3 nominations for the 67th Grammys

Beyoncé surpasses Jay-Z to become the most nominated artist in Grammy history
Entertainment6 days ago

Beyoncé surpasses Jay-Z to become the most nominated artist in Grammy history

Davido, Wizkid, Tems, Asake make 2025 Grammy nominations
Entertainment6 days ago

Davido, Wizkid, Tems, Asake make 2025 Grammy nominations

Davido, Wizkid, Tems, Asake make 2025 Grammy nominations
Entertainment6 days ago

2025 GRAMMY: Academy unveils category changes ahead of nomination event

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Final Episode 13)

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Episode 12)

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Episode 11)

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Episode 10)

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Episode 09)

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Episode 08)

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Episode 07)

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Episode 06)

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Episode 05)

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Episode 04)

General7 days ago

[Music] Diddy – Dirty Money – “Coming Home” Feat. Skylar Grey

General7 days ago

[Music] Eminem – “No Love” Feat. Lil Wayne

General7 days ago

[Music] African China – Baba God

General7 days ago

Eminem – “No Love” Feat. Lil Wayne [LYRICS]

General7 days ago

African China – Baba God [LYRICS]

Music7 days ago

[Music] Tatiana Manaois – Buzz Kill

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Complete Episodes)

General7 days ago

Diddy – Dirty Money – “Coming Home” Feat. Skylar Grey [LYRICS]

General7 days ago

Machine Gun Kelly (MGK) “Home” Feat X Ambassadors & Bebe Rexha [LYRICS]

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Episode 06)

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Episode 05)

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Episode 01)

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Final Episode 13)

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Episode 09)

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Episode 07)

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Episode 10)

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Episode 12)

Papa Loves His Girls by Opeyemi Ojerinde Akintunde_ANE Stories
ANE Stories7 days ago

[STORY] PAPA LOVES HIS GIRLS (Episode 16)

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Episode 08)

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Episode 11)

Papa Loves His Girls by Opeyemi Ojerinde Akintunde_ANE Stories
ANE Stories7 days ago

[STORY] PAPA LOVES HIS GIRLS (Episode 15)

Papa Loves His Girls by Opeyemi Ojerinde Akintunde_ANE Stories
ANE Stories7 days ago

[STORY] PAPA LOVES HIS GIRLS (Episode 13)

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Episode 03)

Papa Loves His Girls by Opeyemi Ojerinde Akintunde_ANE Stories
ANE Stories7 days ago

[STORY] PAPA LOVES HIS GIRLS (Episode 10)

Papa Loves His Girls by Opeyemi Ojerinde Akintunde_ANE Stories
ANE Stories7 days ago

[STORY] PAPA LOVES HIS GIRLS (Episode 12)

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Episode 02)

Papa Loves His Girls by Opeyemi Ojerinde Akintunde_ANE Stories
ANE Stories7 days ago

[STORY] PAPA LOVES HIS GIRLS (Episode 14)

The Pastor Daughter Story by Miriam Edem _ ANE Story
ANE Stories7 days ago

[STORY] THE PASTOR’S DAUGHTER (Episode 04)

Papa Loves His Girls by Opeyemi Ojerinde Akintunde_ANE Stories
ANE Stories7 days ago

[STORY] PAPA LOVES HIS GIRLS (Episode 11)

Papa Loves His Girls by Opeyemi Ojerinde Akintunde_ANE Stories
ANE Stories7 days ago

[STORY] PAPA LOVES HIS GIRLS (Episode 08)

Papa Loves His Girls by Opeyemi Ojerinde Akintunde_ANE Stories
ANE Stories7 days ago

[STORY] PAPA LOVES HIS GIRLS (Episode 09)

General7 days ago

Passenger – Let Her Go [LYRICS]

General7 days ago

[Music] African China – Amen

General7 days ago

Skylar Grey – Everything I Need [LYRICS]

Davido, Wizkid, Tems, Asake make 2025 Grammy nominations
Entertainment6 days ago

2025 GRAMMY: Academy unveils category changes ahead of nomination event

Tems makes history after securing 3 nominations for the 67th Grammys
Entertainment6 days ago

Tems makes history after securing 3 nominations for the 67th Grammys

Davido, Wizkid, Tems, Asake make 2025 Grammy nominations
Entertainment6 days ago

Davido, Wizkid, Tems, Asake make 2025 Grammy nominations

Beyoncé surpasses Jay-Z to become the most nominated artist in Grammy history
Entertainment6 days ago

Beyoncé surpasses Jay-Z to become the most nominated artist in Grammy history

Realme names first smartphone to get Android 15 beta worldwide
Technology6 days ago

Realme names first smartphone to get Android 15 beta worldwide

Edo PDP announces caretaker committee
News6 days ago

Edo PDP announces caretaker committee

ANE Billboard Hots



Join "ANE sabi" clique

Don't miss a thing, get ogbonge ANE latest updates to fuel your conversation daily.