CWMP Parse auth header crash

Hey guys,

I have been testing the new GenieACS version in a lab enviroment, but after some days playing with it the CWMP crashed with this particular error:

genieacs-cwmp[776827]: 2021-04-23T18:24:28.712Z [ERROR] Uncaught exception; pid=945292 exceptionName=“Error” exceptionMessage=“Unable to parse auth header” exceptionStack=“Error: Unable to parse auth header\n at /usr/local/lib/node_modules/genieacs/bin/genieacs-cwmp:2:12629\n → /usr/local/lib/node_modules/lib/auth.ts:47:15\n at ve (/usr/local/lib/node_modules/genieacs/bin/genieacs-cwmp:2:12710)\n → /usr/local/lib/node_modules/lib/auth.ts:73:24\n at Dn (/usr/local/lib/node_modules/genieacs/bin/genieacs-cwmp:2:105243)\n → /usr/local/lib/node_modules/lib/cwmp.ts:87:22\n at Mn (/usr/local/lib/node_modules/genieacs/bin/genieacs-cwmp:2:119880)\n → /usr/local/lib/node_modules/lib/cwmp.ts:1135:33\n at processTicksAndRejections (internal/process/task_queues.js:97:5)”
genieacs-cwmp[776827]: 2021-04-23T18:24:28.959Z [ERROR] Worker died; pid=945292 exitCode=0
genieacs-cwmp[776827]: 2021-04-23T18:24:28.960Z [ERROR] Too many crashes, exiting; pid=776827

Any doubts about what did that cause?

In order for this issue to get resolved you will need to provide more information. What version of GenieACS? A tcpdump/wireshark/plaintext capture of the header in question.

Hey there,

Im currently using the 1.2.5 version.
By capturing packets, I could see that a particular equipment was sending some stuff that cause the genie to stop.
I`m still trying to get what was that. By disabling it to send informs to the server, the problem didnt happen again.

What does the Authorization header in the CPE’s request look like?

Do you mean this ?

Authorization: Digest username=“ACS”, realm=“GenieACS”, algorithm=“MD5”, nonce="", uri="/""", response=“c0d920cb968068ccf8851124dc23b3aa”\r\n

The uri attribute has an extra quote so it’s failing to parse. I suggest reporting this issue to the CPE manufacturer.