bug: .taskrc parser silently truncates values containing '=' characters causing silent authentication failures
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 55/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Estagnada
- Domínio
- authentication, backend
Direção de pesquisa
Leia lib/app/utils/taskserver/parse_taskrc.dart, concentrando-se no parser nas linhas 7-8, e então reproduza o problema por meio da configuração do TaskServer com um valor que contenha '='. O trabalho estará concluído quando o valor analisado mantiver tudo após o primeiro separador, incluindo o padding de base64, enquanto as linhas malformadas forem ignoradas conforme descrito.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Describe your issue
The .taskrc parser in lib/app/utils/taskserver/parse_taskrc.dart
uses line.split('=') to parse key-value pairs. This causes silent
data truncation for any parameter whose value contains one or more =
characters.
This is a critical bug because base64-encoded certificates and other
taskd parameter values routinely contain = padding characters. When
these values are truncated, authentication silently fails with
absolutely no error shown to the user — making it nearly impossible
to diagnose.
Root Cause:
File: lib/app/utils/taskserver/parse_taskrc.dart
Line: 7-8
The parser does:
.map((line) => line.split('='))
and then blindly extracts pair[0] and pair[1]. When a value contains
= (e.g. base64 padding), split('=') produces 3+ parts — everything
from pair[2] onwards is permanently dropped.
Example:
Input: taskd.certificate=abc123==
split result: ['taskd.certificate', 'abc123', '', '']
Stored: 'abc123' ← trailing == silently lost
Steps to reproduce
-
Create a .taskrc file containing any parameter whose value includes
one or more '=' characters, for example:taskd.certificate=LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0t== -
Import this .taskrc into the app during TaskServer configuration setup
-
Tap "Taskrc file is verified" to inspect the parsed configuration
-
Observe: everything after the second '=' in the value is silently
dropped from the stored configuration
What was the expected result?
The parser should split only on the first occurrence of '=' and
preserve the entire remainder of the line as the value.
The correct fix is to replace line.split('=') with a first-occurrence
split:
final index = line.indexOf('=');
if (index == -1) return; // skip malformed lines
final key = line.substring(0, index).trim();
final value = line.substring(index + 1).trim();
This correctly handles all values containing '=' characters including
base64-encoded certificates, credentials, and taskd.trust parameters.
Impact:
- Any user with base64-encoded certificates in their .taskrc is
silently affected - Directly contributes to the root cause of issue #428 (taskd.trust
being ignored) since cert fields with '=' padding are dropped before
reaching the SSL handshake - Authentication silently fails with no error surfaced to the user
- Affects all platforms: Android, Linux, Windows, macOS
Put here any screenshots or videos (optional)
N/A — this is a code-level parser bug reproducible by reading
lib/app/utils/taskserver/parse_taskrc.dart lines 7-8
How can we contact you (optional)
Available on CCExtractor Zulip: Varad Raj Agrawal
Would you like to work on this issue?
Yes
By submitting this issue, I have confirmed that:
- I have starred the repo ⭐ and watched 👀 it on GitHub and followed the contribution guidelines.
- Linguagem predominante
- Dart
- Estrelas
- 246
- Forks
- 184
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de CCExtractor/taskwarrior-flutter
-
Fix misaligned text "Select the directory" in settings tileTalvez livre de novo @alabeddev assumiu há 241 dias e não há nenhum pull request aberto. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
CCExtractor/taskwarrior-flutter#639 · 2 comentários ·
-
bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
-
Drawer should close automatically when navigating to a new screenTalvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
-
enhancement
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 52/100
-
Sensitive Credentials Stored in Plain Text Files Without EncryptionTalvez livre de novo @sahu-virendra-1908 assumiu há 238 dias e não há nenhum pull request aberto. Abertabug
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 45/100
CCExtractor/taskwarrior-flutter#645 · 1 comentário ·
Todas as issues de CCExtractor/taskwarrior-flutter
Issues semelhantes
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 60/100
hiddify/hiddify-app#2668 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
toyota-connected/emb_cli#358 ·
Mantenedores costumam responder em até 1 dia
-
area: import beta cluster: callers box improvements severity: minor status: confirmed type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
ibanner56/CallersCompendium#2366 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
ccch1mneyyy/dsh-Go#1777 ·
Mantenedores costumam responder em até 1 dia
-
area: mobile documentation good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
CommandLineCoding/Elephant#383 ·
Mantenedores costumam responder em até 1 dia