Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • BIND BIND
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 532
    • Issues 532
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 101
    • Merge requests 101
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • 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 Projects
  • BINDBIND
  • Issues
  • #2426

Closed
Open
Created Jan 25, 2021 by Michal Nowak@mnowakOwner

CID 316504: Untrusted loop bound (TAINTED_SCALAR)

*** CID 316504:    (TAINTED_SCALAR)
/lib/dns/rdata/generic/rrsig_46.c: 233 in totext_rrsig()
227     
228     	/*
229     	 * Time signed.
230     	 */
231     	when = uint32_fromregion(&sr);
232     	isc_region_consume(&sr, 4);
>>>     CID 316504:    (TAINTED_SCALAR)
>>>     Passing tainted expression "when" to "dns_time32_totext", which uses it as a loop boundary.
233     	RETERR(dns_time32_totext(when, target));
234     	RETERR(str_totext(" ", target));
235     
236     	/*
237     	 * Footprint.
238     	 */
/lib/dns/rdata/generic/rrsig_46.c: 225 in totext_rrsig()
219     
220     	/*
221     	 * Sig exp.
222     	 */
223     	exp = uint32_fromregion(&sr);
224     	isc_region_consume(&sr, 4);
>>>     CID 316504:    (TAINTED_SCALAR)
>>>     Passing tainted expression "exp" to "dns_time32_totext", which uses it as a loop boundary.
225     	RETERR(dns_time32_totext(exp, target));
226     	RETERR(str_totext(" ", target));
227     
228     	/*
229     	 * Time signed.
230     	 */
Assignee
Assign to
Time tracking