{"answers":{"affected":"3 open source packages ship an affected version, including github.com/go-macaron/csrf. It affects 1 product.","exploited":"There is no known exploitation of CVE-2018-25060 in the wild and no public exploit code.","fix":"Upgrade github.com/go-macaron/csrf to 0.0.0-20180426211050-dadd1711a617 or later.","what":"CVE-2018-25060 is a low-severity vulnerability in Macaron csrf, published on 30 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-25060 and fix it if it is affected.\n\nWhat it is: CVE-2018-25060 is a low-severity vulnerability in Macaron csrf, published on 30 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2018-25060 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/go-macaron/csrf (Go): affected all versions; fixed in 0.0.0-20180426211050-dadd1711a617\n- github.com/go-macaron/csrf (Go): affected all versions; fixed in 0.0.0-20180426211050-dadd1711a617\n- github.com/go-macaron/csrf (Go): affected all versions; fixed in 0.0.0-20180426211050-dadd1711a617\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2018-25060/ (Markdown: https://insights.sbomify.com/CVE-2018-25060/index.md)","id":"CVE-2018-25060","markdown":"https://insights.sbomify.com/CVE-2018-25060/index.md","name":"CVE-2018-25060","record":{"aliases":["DEBIAN-CVE-2018-25060","GHSA-hhxg-px5h-jc32","GO-2022-1213","UBUNTU-CVE-2018-25060"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Go CSRF library","requires_auth":"none","summary":"The Macaron CSRF library fails to set the Secure attribute on cookies, allowing potential interception of CSRF tokens over unencrypted connections.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[{"product":"csrf","vendor":"go-macaron"}],"cvss":{"score":3.7,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-311","name":"Missing Encryption of Sensitive Data"},{"id":"CWE-614","name":"Sensitive Cookie in HTTPS Session Without 'Secure' Attribute"}],"description":"A vulnerability was found in Macaron csrf and classified as problematic. Affected by this issue is some unknown functionality of the file csrf.go. The manipulation of the argument Generate leads to sensitive cookie without secure attribute. The attack may be launched remotely. The complexity of an attack is rather high. The exploitation is known to be difficult. The patch is identified as dadd1711a617000b70e5e408a76531b73187031c. It is recommended to apply a patch to fix this issue. VDB-217058 is the identifier assigned to this vulnerability.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Macaron csrf csrf.go missing secure attribute","id":"CVE-2018-25060","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"security_feature_bypass","year":"2018"},"n_packages":3,"n_references":4,"next":{"headline":"rgb2hex redos","id":"CVE-2018-25061"},"packages":[{"ecosystem":"Go","fixed":["0.0.0-20180426211050-dadd1711a617"],"introduced":["0"],"last_affected":[],"package":"github.com/go-macaron/csrf","purl":null,"source":"GHSA-hhxg-px5h-jc32"},{"ecosystem":"Go","fixed":["0.0.0-20180426211050-dadd1711a617"],"introduced":["0"],"last_affected":[],"package":"github.com/go-macaron/csrf","purl":"pkg:golang/github.com/go-macaron/csrf","source":"GHSA-hhxg-px5h-jc32"},{"ecosystem":"Go","fixed":["0.0.0-20180426211050-dadd1711a617"],"introduced":["0"],"last_affected":[],"package":"github.com/go-macaron/csrf","purl":"pkg:golang/github.com/go-macaron/csrf","source":"GO-2022-1213"}],"prev":{"headline":"pastebinit server.go pasteHandler path traversal","id":"CVE-2018-25059"},"products":["csrf"],"published":"2022-12-30","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["Macaron"]},"summary":"The Macaron CSRF library fails to set the Secure attribute on cookies, allowing potential interception of CSRF tokens over unencrypted connections.","url":"https://insights.sbomify.com/CVE-2018-25060/"}