S608: false positive SQL injection detected
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Python
- Stars
- 8.3k
- Forks
- 835
- Avg merge
- 5d 3h
- Merged PRs (30d)
- 1
Description
print(dedent(
r"""
The local repository has been prepared. The repository can be updated using:
univention-repository-update net
The local host has been modified to use this local repository. Other hosts
must be re-configured by setting the Univention Configuration Registry (UCR)
variable 'repository/online/server' to the FQDN of this host.
ucr set repository/online/server="%(hostname)s.%(domainname)s"
The setting is best set in a domain by defining UCR Policies, which
set this variable on all hosts using this repository server. For example:
udm policies/repositoryserver create \
--position "cn=repository,cn=update,cn=policies,%(ldap/base)s" \
--set name="%(hostname)s repository" \
--set repositoryServer="%(hostname)s.%(domainname)s"
udm container/dc modify \
--dn "%(ldap/base)s" \
--policy-reference "cn=%(hostname)s repository,cn=repository,cn=update,cn=policies,%(ldap/base)s"
""" % configRegistry))
is detected false positively as S608.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the S608 report with the Python snippet in the issue and inspect the code path that detects SQL injection in formatted strings. Done means this example is no longer reported as S608 while genuine findings remain covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- security, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100