Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • BIND BIND
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 612
    • Issues 612
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 90
    • Merge requests 90
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source ProjectsISC Open Source Projects
  • BINDBIND
  • Issues
  • #2418
Closed
Open
Issue created Jan 25, 2021 by Michal Nowak@mnowakMaintainer

CID 316512: Untrusted loop bound (TAINTED_SCALAR)

*** CID 316512:    (TAINTED_SCALAR)
/lib/dns/rdata/generic/sig_24.c: 199 in totext_sig()
193     
194     	/*
195     	 * Time signed.
196     	 */
197     	when = uint32_fromregion(&sr);
198     	isc_region_consume(&sr, 4);
>>>     CID 316512:    (TAINTED_SCALAR)
>>>     Passing tainted expression "when" to "dns_time32_totext", which uses it as a loop boundary.
199     	RETERR(dns_time32_totext(when, target));
200     	RETERR(str_totext(" ", target));
201     
202     	/*
203     	 * Footprint.
204     	 */
/lib/dns/rdata/generic/sig_24.c: 187 in totext_sig()
181     
182     	/*
183     	 * Sig exp.
184     	 */
185     	exp = uint32_fromregion(&sr);
186     	isc_region_consume(&sr, 4);
>>>     CID 316512:    (TAINTED_SCALAR)
>>>     Passing tainted expression "exp" to "dns_time32_totext", which uses it as a loop boundary.
187     	RETERR(dns_time32_totext(exp, target));
188     
189     	if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0) {
190     		RETERR(str_totext(" (", target));
191     	}
192     	RETERR(str_totext(tctx->linebreak, target));
Assignee
Assign to
Time tracking